From 87a245b87fd2617932fa914e2bd5d60d5fe976ec Mon Sep 17 00:00:00 2001 From: Xyk Date: Sun, 6 Aug 2023 19:32:22 -0700 Subject: [PATCH] She cast ints on my ints til I index was out of the bounds array Fixed a dumb mistake --- CalPlayer/CalamityPlayer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index c062ea4821..443da481a2 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -4898,13 +4898,13 @@ namespace CalamityMod.CalPlayer if (crawCarapace) { - npc.AddBuff(ModContent.BuffType(), (int)720); + npc.AddBuff(ModContent.BuffType(), 720); SoundEngine.PlaySound(SoundID.NPCHit33 with { Volume = 0.5f }, Player.Center); } if (crabClaw) { - npc.AddBuff(ModContent.BuffType(), (int)1800); + npc.AddBuff(ModContent.BuffType(), 1800); SoundEngine.PlaySound(CrabClawHit, Player.Center); Vector2 bloodSpawnPosition = Player.Center + Main.rand.NextVector2Circular(Player.width, Player.height) * 0.04f; Vector2 splatterDirection = (Player.Center - bloodSpawnPosition).SafeNormalize(Vector2.UnitY);