Ejemplo n.º 1
0
        public static string GetStringReport(this RpgAccount account)
        {
            var gold = account.GetGoldAmount();

            return($@"```
Gold: {gold}

[N/A] Health: ..... {account.Health} / {account.MaxHealth}
[STR] Strength: ... {account.Strength} | {JustineCore.Utilities.GetGeneralCurveCost(account.Strength + 1)} gold to upgrade.
[SPD] Speed: ...... {account.Speed} | {JustineCore.Utilities.GetGeneralCurveCost(account.Speed + 1)} gold to upgrade.
[INT] Intelligence: {account.Intelligence} | {JustineCore.Utilities.GetGeneralCurveCost(account.Intelligence + 1)} gold to upgrade.
[END] Endurance: .. {account.Endurance} | {JustineCore.Utilities.GetGeneralCurveCost(account.Endurance + 1)} gold to upgrade.
[LCK] Luck: ....... {account.Luck} | {JustineCore.Utilities.GetGeneralCurveCost(account.Luck + 1)} gold to upgrade.
```");
        }
Ejemplo n.º 2
0
 public static bool HasEnoughGold(this RpgAccount account, uint minimum)
 {
     return(account.GetGoldAmount() >= minimum);
 }