src/DiscordBot/Core/UserAccounts/Currency.cs
/// <summary>
/// Transfers currency between two user accounts.
/// </summary>
/// <param name="amount">Must be a positive number.</param>
Transfers currency between two user accounts.
Transfers currency between two user accounts .
public static void MoveCurrency(UserAccount accountToGive, UserAccount accountToTake, int amount)
        {
            if (amount < 1)
            {
                Console.WriteLine("An invalid amount of currency attempted to be transfered. Returning...");
                return;
            }
            accountToGive.AddCurrency(amount * -1);
            accountToTake.AddCurrency(amount);
        }
public static void MoveCurrency ( UserAccount accountToGive , UserAccount accountToTake , int amount ) { if ( amount < 1 ) { Console . WriteLine ( " " ) ; return ; } accountToGive . AddCurrency ( amount * - 1 ) ; accountToTake . AddCurrency ( amount ) ; }
Transfers currency between two user accounts.
Transfers currency between two user accounts .
accountToGive
UserAccount
accountToTake
UserAccount
amount
int
Must be a positive number.
Must be a positive number .