From d6b51523703ea99114579e19192f239cdb186b11 Mon Sep 17 00:00:00 2001 From: Xuc Pan Date: Fri, 10 May 2024 19:14:45 +0800 Subject: [PATCH] fix: :bug: money value not same as doc --- logic/Gaming/ShipManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logic/Gaming/ShipManager.cs b/logic/Gaming/ShipManager.cs index d2314942..7c15eac2 100755 --- a/logic/Gaming/ShipManager.cs +++ b/logic/Gaming/ShipManager.cs @@ -90,7 +90,7 @@ public void BeAttacked(Ship ship, Bullet bullet) ShipManagerLogging.logger.ConsoleLogDebug( LoggingFunctional.ShipLogInfo(ship) + " is destroyed!"); - var money = ship.GetCost(); + var money = (long)(ship.GetCost() * 0.2); bullet.Parent.AddMoney(money); ShipManagerLogging.logger.ConsoleLogDebug( LoggingFunctional.ShipLogInfo((Ship)bullet.Parent)