From 471d640379d432ecf7aaff3fd8ebabd4610bb2f8 Mon Sep 17 00:00:00 2001 From: Storm2103 Date: Mon, 13 May 2024 19:23:50 -0600 Subject: [PATCH] double the money (calculation) --- Projectiles/Rogue/SlickCaneProjectile.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Projectiles/Rogue/SlickCaneProjectile.cs b/Projectiles/Rogue/SlickCaneProjectile.cs index 6c7d751b4d..5e325c56e6 100644 --- a/Projectiles/Rogue/SlickCaneProjectile.cs +++ b/Projectiles/Rogue/SlickCaneProjectile.cs @@ -146,12 +146,12 @@ namespace CalamityMod.Projectiles.Rogue if (Projectile.Calamity().stealthStrike) { Player player = Main.player[Projectile.owner]; - long money = Utils.CoinsCount(out bool overflow, player.inventory); + double money = Utils.CoinsCount(out bool overflow, player.inventory); if (money >= 2000000) money = 2000000; if (money != 0) { - modifiers.SourceDamage *= money / 500000 + 1; + modifiers.SourceDamage *= (float)(money / 500000 + 1); SoundEngine.PlaySound(TheSevensStriker.JackpotSound, Projectile.Center); for (int j = 0; j < 8; j++) {