/* sub_59AA0 */ internal static void PickupCoins(int money_slot, int num_coins, Player player) { if (willOverload(num_coins, player) == true) { ovr025.string_print01("Overloaded"); } else { if (num_coins > gbl.pooled_money.GetCoins(money_slot)) { num_coins = gbl.pooled_money.GetCoins(money_slot); } gbl.pooled_money.AddCoins(money_slot, -num_coins); player.Money.AddCoins(money_slot, num_coins); player.AddWeight(num_coins); } }
/* add_object */ internal static void trade_money(int money_slot, short num_coins, Player dest, Player source) { if ((dest.weight + num_coins) <= get_max_load(dest)) { source.Money.AddCoins(money_slot, -num_coins); source.RemoveWeight(num_coins); dest.Money.AddCoins(money_slot, num_coins); dest.AddWeight(num_coins); } else { ovr025.string_print01("Overloaded"); } }