xerocodile (and hadopelagic tweak)

This commit is contained in:
termigator1359 committed 2020-01-23 18:03:23 -05:00
1 parent 37e41c9c47
commit 86c6db2394
3 files changed
+53

No files matched your search

+48
View File
@@ -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<BloodOrb>(), 5, 15);
}
/*public override void RightClick(Player player)
{
if (Main.rand.NextBool(3))
DropHelper.DropItem(player, ModContent.ItemType<TheCamper>(), 1, 1);
else if (Main.rand.NextBool(2))
DropHelper.DropItem(player, ModContent.ItemType<CheatTestThing>(), 1, 1);
else
{
DropHelper.DropItem(player, ModContent.ItemType<CheatTestThing>(), 1, 1);
DropHelper.DropItem(player, ModContent.ItemType<TheCamper>(), 1, 1);
}
}*/
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 780 B

@@ -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<CrushDepth>(), 600);