mirror of
https://github.com/islehorse/HISP.git
synced 2025-06-20 09:45:19 +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
|
@ -182,9 +182,10 @@ namespace HISP.Game
|
|||
user.Inventory.Remove(itm.ItemInstances[0]);
|
||||
|
||||
}
|
||||
user.Money -= quest.MoneyCost;
|
||||
// Take Money
|
||||
user.TakeMoney(quest.MoneyCost);
|
||||
// Give money
|
||||
user.Money += quest.MoneyEarned;
|
||||
user.AddMoney(quest.MoneyEarned);
|
||||
// Give items
|
||||
foreach (QuestItemInfo itemInfo in quest.ItemsEarned)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue