From 86c6db2394fc5c56347e718d8bc2fb3ac8bfcad5 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Thu, 23 Jan 2020 18:03:23 -0500 Subject: [PATCH] xerocodile (and hadopelagic tweak) --- Items/Fishing/Xerocodile.cs | 48 ++++++++++++++++++ Items/Fishing/Xerocodile.png | Bin 0 -> 780 bytes Projectiles/Magic/HadopelagicEchoSoundwave.cs | 5 ++ 3 files changed, 53 insertions(+) create mode 100644 Items/Fishing/Xerocodile.cs create mode 100644 Items/Fishing/Xerocodile.png diff --git a/Items/Fishing/Xerocodile.cs b/Items/Fishing/Xerocodile.cs new file mode 100644 index 0000000000..9dea592038 --- /dev/null +++ b/Items/Fishing/Xerocodile.cs @@ -0,0 +1,48 @@ +using Terraria; +using Terraria.ModLoader; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Accessories; + +namespace CalamityMod.Items.Fishing +{ + public class Xerocodile : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Xerocodile"); + Tooltip.SetDefault("Right click to extract blood orbs"); + } + + public override void SetDefaults() + { + item.width = 30; + item.height = 28; + item.maxStack = 999; + item.value = Item.sellPrice(silver: 10); + item.rare = 2; + } + + public override bool CanRightClick() + { + return true; + } + + public override void RightClick(Player player) + { + DropHelper.DropItem(player, ModContent.ItemType(), 5, 15); + } + + /*public override void RightClick(Player player) + { + if (Main.rand.NextBool(3)) + DropHelper.DropItem(player, ModContent.ItemType(), 1, 1); + else if (Main.rand.NextBool(2)) + DropHelper.DropItem(player, ModContent.ItemType(), 1, 1); + else + { + DropHelper.DropItem(player, ModContent.ItemType(), 1, 1); + DropHelper.DropItem(player, ModContent.ItemType(), 1, 1); + } + }*/ + } +} diff --git a/Items/Fishing/Xerocodile.png b/Items/Fishing/Xerocodile.png new file mode 100644 index 0000000000000000000000000000000000000000..e53f5bf722e421213f5f7db4098b60bdfb42ad69 GIT binary patch literal 780 zcmV+n1M~ceP)Px%#z{m$R9J=Gm)%PgQ5c7x)lWDtH)w$g67=EqJK@4QVj&ZbKWr~TdR&N*jh&Uxnjz2`lK zT~c2<3qWUi9f00c69C1q0v8lT-@=S zz_knVd+#v-ci$BOIFp(MU}#dVYlp}t0j*Jj3i?UhJ$ zBq9bNSCG784Urvl&0w3vh`J%DC*xlLco2<+zS|li{}LkxpxIsF$ikFM$nPGF86|Nd znJ@qog=HVnnjiweYP>9e#03Ij><)xE=x98LZ5eJ}D zTm_)#;voR~TaN(n{PRZuuFpyxf||w6#6kT(M1u84yr}{3NZh`wPwmG`@VJF)P(), 600);