public override void Consume(Colony colony) { if (Consumes) { var inventory = colony.GetInventory(Key); inventory.Consume(Amount); } }
public override bool Check(Colony colony) { var inv = colony.GetInventory(Key); return(inv != null && inv.Quantity >= Amount); }