public QuestRewardStatBonus ( Stat stat, int amount ) : Aura.Data | ||
stat | Stat | |
amount | int | |
Результат | Aura.Data |
public QuestRewardStatBonus(Stat stat, int amount)
{
if (stat != Stat.Str && stat != Stat.Dex && stat != Stat.Int && stat != Stat.Will && stat != Stat.Luck)
throw new ArgumentException("Unsupported stat '" + stat + "'");
if (amount <= 0)
throw new ArgumentException("Amount must be a positive value.");
this.Stat = stat;
this.Amount = amount;
}