Delayed unloading. Remove LocalStorage from proc.

This commit is contained in:
Paul Chote
2011-01-02 15:27:29 +13:00
parent 3674accd0c
commit de5d9abec3
6 changed files with 37 additions and 14 deletions

View File

@@ -56,6 +56,14 @@ namespace OpenRA.Mods.RA
return self.World.Queries.WithTrait<Harvester>()
.Where(a => a.Trait.LinkedProc == self);
}
public bool CanGiveOre(int amount)
{
if (!Info.LocalStorage)
return PlayerResources.CanGiveOre(amount);
else
return Ore + amount <= Info.Capacity;
}
public void GiveOre (int amount)
{