Exemple #1
0
        /* sub_59A19 */
        internal static void DropCoins(int money_slot, int num_coins, Player player)
        {
            player.Money.AddCoins(money_slot, -num_coins);
            player.RemoveWeight(num_coins);

            if (gbl.game_state == GameState.AfterCombat ||
                gbl.game_state == GameState.Shop)
            {
                gbl.pooled_money.AddCoins(money_slot, num_coins);
            }
        }
Exemple #2
0
        /* 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");
            }
        }