specify some things in rules; defaults work but are not discoverable

This commit is contained in:
Chris Forbes
2010-01-28 22:05:07 +13:00
parent 493ec984bf
commit 9c27651475
3 changed files with 7 additions and 1 deletions

View File

@@ -57,7 +57,7 @@ namespace OpenRa.Traits
var cargo = a.traits.Get<Cargo>(); var cargo = a.traits.Get<Cargo>();
foreach (var p in self.Info.Traits.Get<ParatroopersPowerInfo>().DropItems) foreach (var p in self.Info.Traits.Get<ParatroopersPowerInfo>().DropItems)
cargo.Load(a, new Actor(self.World, p.ToLowerInvariant(), a.Location, a.Owner)); cargo.Load(a, new Actor(self.World, p.ToLowerInvariant(), new int2(int.MaxValue, int.MaxValue), a.Owner));
}); });
FinishActivate(); FinishActivate();

View File

@@ -143,7 +143,10 @@ DOME:
CRATE: CRATE:
Crate: Crate:
Lifetime: 5
SpeedUpgradeCrateAction: SpeedUpgradeCrateAction:
Multiplier: 1.7
SelectionShares: 10
Unit: Unit:
HP: 1 HP: 1
RenderUnit: RenderUnit:

View File

@@ -432,7 +432,10 @@ DOME:
CRATE: CRATE:
Crate: Crate:
Lifetime: 5
SpeedUpgradeCrateAction: SpeedUpgradeCrateAction:
Multiplier: 1.7
SelectionShares: 10
Unit: Unit:
HP: 1 HP: 1
RenderUnit: RenderUnit: