public LootResult(ItemHolder itemHolder, int amount) { if (itemHolder != null) { this.item = itemHolder.item; } this.amount = amount; }
public Loot() { this.item = new ItemHolder(); this.amount = 1; this.weight = 1; }
public Loot(ItemHolder item, int amount, int weight) { this.item = item ?? new ItemHolder(); this.amount = amount; this.weight = weight; }