public void Store(OriItem item, ulong amount = 1) { for (ulong i = 0; i < amount; i++) { Items.Add(item); } }
public Reward(RewardType type, ulong amount, OriItem item = null) { Type = type; switch (type) { case RewardType.Item: if (item == null) { throw new Exception("RewardType.Item requires that an item be specified to reward."); } else { Item = item; } break; } Amount = amount; }