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 0000000000..e53f5bf722 Binary files /dev/null and b/Items/Fishing/Xerocodile.png differ diff --git a/Projectiles/Magic/HadopelagicEchoSoundwave.cs b/Projectiles/Magic/HadopelagicEchoSoundwave.cs index 4975d1804a..89464c6319 100644 --- a/Projectiles/Magic/HadopelagicEchoSoundwave.cs +++ b/Projectiles/Magic/HadopelagicEchoSoundwave.cs @@ -81,6 +81,11 @@ namespace CalamityMod.Projectiles.Magic damage = (int)((double)damage * (double)projectile.localAI[0]); } + public override void ModifyHitPvp(Player target, ref int damage, ref bool crit) + { + damage = (int)((double)damage * (double)projectile.localAI[0]); + } + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.AddBuff(ModContent.BuffType(), 600);