update money when buy item and manufacturing, pethatch, petrec

This commit is contained in:
VuNgocHaiC7
2026-03-24 16:11:43 +07:00
parent de0fc2b0ee
commit 5b52e17ef4
4 changed files with 376 additions and 16 deletions
@@ -215,6 +215,9 @@ namespace BrewMonster.Scripts.Managers
/// </summary>
public void UpdateMoney(ulong amount, ulong maxAmount)
{
s_pendingMoneyAmount = amount;
s_pendingMoneyMaxAmount = maxAmount;
s_hasPendingMoney = true;
string text = amount.ToString();
if (moneyTextsLegacy != null)
{
@@ -241,6 +244,8 @@ namespace BrewMonster.Scripts.Managers
/// </summary>
public void UpdateCash(int amount)
{
s_pendingCashAmount = amount;
s_hasPendingCash = true;
string text = amount.ToString();
if (cashTextsLegacy != null)
{