public virtual void ProduceEnergy(ResourcesStorage storage) { if (storage.SubtractProduct(Resource, ConsumedResources) is var subtractProduct && subtractProduct) { storage.StoreProducts(ProducedUnitType, ProducedUnit); } }
public override void ResourcesMining(ResourcesStorage storage) { storage.StoreProducts(Resource, ProduceResources / 7); }
public virtual void ResourcesMining(ResourcesStorage storage) { storage.StoreProducts(Resource, ProduceResources); }