Example #1
0
 public override void Consume(Colony colony)
 {
     if (Consumes)
     {
         var inventory = colony.GetInventory(Key);
         inventory.Consume(Amount);
     }
 }
Example #2
0
        public override bool Check(Colony colony)
        {
            var inv = colony.GetInventory(Key);

            return(inv != null && inv.Quantity >= Amount);
        }