mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-23 05:05:53 +12:00
fix money related bugs and crashes.
This commit is contained in:
parent
99d9b401a2
commit
e600554555
21 changed files with 151 additions and 83 deletions
|
@ -471,7 +471,7 @@ namespace HISP.Game
|
|||
int moneyLost = GameServer.RandomNumberGenerator.Next(0, 100);
|
||||
if (moneyLost > user.Money)
|
||||
moneyLost = user.Money;
|
||||
user.Money -= moneyLost;
|
||||
user.TakeMoney(moneyLost);
|
||||
return Messages.FormatVenusFlyTrapMeta(moneyLost);
|
||||
}
|
||||
public static string buildInn(Inn inn)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue