From d9169c4749bc103ad99468b45d9c81b63e0099ed Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Sun, 17 Nov 2019 19:06:02 -0500 Subject: [PATCH 1/2] removed astral sand being ammo because fuck bugs --- Items/Placeables/AstralSand.cs | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/Items/Placeables/AstralSand.cs b/Items/Placeables/AstralSand.cs index 836173a8f4..15ef6d1f59 100644 --- a/Items/Placeables/AstralSand.cs +++ b/Items/Placeables/AstralSand.cs @@ -1,4 +1,5 @@ using CalamityMod.Projectiles.Ranged; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.Placeables { @@ -11,19 +12,21 @@ namespace CalamityMod.Items.Placeables public override void SetDefaults() { - item.createTile = ModContent.TileType(); - item.useStyle = 1; - item.useTurn = true; - item.useAnimation = 15; - item.useTime = 10; - item.autoReuse = true; - item.consumable = true; item.width = 16; item.height = 16; item.maxStack = 999; - item.shoot = ModContent.ProjectileType(); - item.shootSpeed = 15f; - item.ammo = 169; + //item.ammo = AmmoID.Sand; + //item.shoot = ModContent.ProjectileType(); + //item.notAmmo = true; + //item.shootSpeed = 15f; + item.useStyle = 1; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.autoReuse = true; + item.consumable = true; + item.createTile = ModContent.TileType(); + item.noMelee = true; } } } From af6c89f9a0e551919bf84ce7f8d15cf6dba416e2 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Sun, 17 Nov 2019 19:06:23 -0500 Subject: [PATCH 2/2] added aldebaran alewife --- CalPlayer/CalamityPlayer.cs | 34 ++++++++++++------ .../Fishing/AstralCatches/AldebaranAlewife.cs | 23 ++++++++++++ .../AstralCatches/AldebaranAlewife.png | Bin 0 -> 914 bytes Items/Potions/GravityNormalizerPotion.cs | 2 +- 4 files changed, 48 insertions(+), 11 deletions(-) create mode 100644 Items/Fishing/AstralCatches/AldebaranAlewife.cs create mode 100644 Items/Fishing/AstralCatches/AldebaranAlewife.png diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index e9aaf2aac9..ea9ce614c8 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -7485,7 +7485,7 @@ namespace CalamityMod.CalPlayer } if (ZoneAstral) { - fishList.Add(ModContent.ItemType()); + fishList.Add(ModContent.ItemType()); } if (ZoneSunkenSea) { @@ -7532,6 +7532,20 @@ namespace CalamityMod.CalPlayer if (chanceForRareItems < 6) chanceForRareItems = 6; + if (lava) + { + if (Main.rand.Next(100) < chanceForCrates) + { + if (Main.rand.NextBool(chanceForRareItems) && enchantedPearl && fishingStation && player.cratePotion) + { + if (ZoneCalamity) + { + caughtType = ModContent.ItemType(); + } + } + } + } + if (water) { if (Main.rand.Next(100) < chanceForCrates) @@ -7625,10 +7639,6 @@ namespace CalamityMod.CalPlayer { biomeCrateList.Add(ModContent.ItemType()); } - if (ZoneCalamity) - { - biomeCrateList.Add(ModContent.ItemType()); - } if (player.ZoneCorrupt) { biomeCrateList.Add(ItemID.CorruptFishingCrate); @@ -7704,19 +7714,23 @@ namespace CalamityMod.CalPlayer { caughtType = ItemID.ZephyrFish; } - else if (astralFish >= 75) //25% + else if (astralFish >= 85) //15% { caughtType = ModContent.ItemType(); } - else if (astralFish <= 74 && astralFish >= 60) //15% + else if (astralFish <= 84 && astralFish >= 70) //15% { caughtType = ModContent.ItemType(); } - else if (player.cratePotion && astralFish <= 9 && astralFish >= 28) //20% + else if (astralFish <= 69 && astralFish >= 55) //15% + { + caughtType = ModContent.ItemType(); + } + else if (player.cratePotion && astralFish <= 28 && astralFish >= 9) //20% { caughtType = ModContent.ItemType(); } - else if (!player.cratePotion && astralFish <= 9 && astralFish >= 18) //10% + else if (!player.cratePotion && astralFish <= 18 && astralFish >= 9) //10% { caughtType = ModContent.ItemType(); } @@ -7732,7 +7746,7 @@ namespace CalamityMod.CalPlayer { caughtType = ModContent.ItemType(); } - else //41% w/o crate pot, 31% w/ crate pot + else //31% w/o crate pot, 21% w/ crate pot { caughtType = ModContent.ItemType(); } diff --git a/Items/Fishing/AstralCatches/AldebaranAlewife.cs b/Items/Fishing/AstralCatches/AldebaranAlewife.cs new file mode 100644 index 0000000000..3d3828dc51 --- /dev/null +++ b/Items/Fishing/AstralCatches/AldebaranAlewife.cs @@ -0,0 +1,23 @@ +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Fishing.AstralCatches +{ + public class AldebaranAlewife : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Aldebaran Alewife"); + Tooltip.SetDefault("A star-struck entity in the form of a fish"); + } + + public override void SetDefaults() + { + item.width = 38; + item.height = 36; + item.maxStack = 999; + item.value = Item.sellPrice(silver: 8); + item.rare = 1; + } + } +} diff --git a/Items/Fishing/AstralCatches/AldebaranAlewife.png b/Items/Fishing/AstralCatches/AldebaranAlewife.png new file mode 100644 index 0000000000000000000000000000000000000000..c40ffec7f7d3b515c3983518ddc86ad64b70aef4 GIT binary patch literal 914 zcmV;D18w|?P)Px#AY({UO#lFTCIA3{ga82g0001h=l}q9FaQARU;qF* zm;eA5aGbhPJOBUy24YJ`L;(K){{a7>y{D4^00Q7iL_t(o!_}BiNEA^V$3LUH1TOx; zbT~||>{a%LOyqVwp<}<(dd%t-ayQGGiR>juJy#N@286%zhvvw=6 z|CP2=j?yKxr~9Ji{R`tk0CMj<0&Gmov0Wl&t(Ulk!`ZMACzX;=UH@Cf9<17{*qKXA zlJdE$0q}?4Th1!SY#4y$3oQT?Rp`pN%%Ro~a{zR?t^m*(yJ`8{%p;~3SBhhfPa$=+ zz88S|VL_nXtt<9i#j+(SNzfT_3R2T5sYust0Dk$(HCq!)TE`?YzyP>)=Akm)mgNCp z;P*TLeQgt#ekzXV1K_^lw;W%a7DVq3K2T!Hd}3ym>19BoPMLEl8L8`$b|5huC8;v6 zt^s_T5q@k-ES<`4rfL9`9=-;^__%d$nMui9;o6eKkdqKDVJp)F|!t)Z!h~Vse!2;#a?%vRcx6{Ql7#h z4PZX9ApD0^(#d37VvcIP9)J=5Go|k`_giMk+-Yi7iOH@bx)j|ODccj%^x{g(4psK> zQ=htlM6O-FcM1USz9SldGy6xfy$Gc)ZB@1gp=6{T$j%wk7rttV=-F@#v`?*IS*07*qoM6N<$f>-~OGXMYp literal 0 HcmV?d00001 diff --git a/Items/Potions/GravityNormalizerPotion.cs b/Items/Potions/GravityNormalizerPotion.cs index 93f4fed544..47fe871041 100644 --- a/Items/Potions/GravityNormalizerPotion.cs +++ b/Items/Potions/GravityNormalizerPotion.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Items.Potions ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ItemID.GravitationPotion); recipe.AddIngredient(ModContent.ItemType()); - recipe.AddIngredient(ModContent.ItemType()); + recipe.AddIngredient(ModContent.ItemType()); recipe.AddTile(TileID.AlchemyTable); recipe.SetResult(this); recipe.AddRecipe();