Add testcase for StanceInit

This commit is contained in:
Oliver Brakmann
2015-05-17 19:44:36 +02:00
parent b096671acb
commit a0fdfc3f79
2 changed files with 6 additions and 3 deletions

View File

@@ -40,7 +40,6 @@ BaseRearAttackWpts = { GroundAttackWpt1.Location, BaseRearAttackWpt1.Location, B
SovietHarvesters = { Harvester1, Harvester2, Harvester3 }
HarvesterGuard = { HarvGuard1, HarvGuard2, HarvGuard3 }
UBoats = { Uboat1, Uboat2, Uboat3, Uboat4, Uboat5, Uboat6 }
UboatPatrolWpts1 = { UboatPatrolWpt1.Location, UboatPatrolWpt2.Location, UboatPatrolWpt3.Location, UboatPatrolWpt4.Location }
UboatPatrolWpts2 = { UboatPatrolWpt4.Location, UboatPatrolWpt2.Location, UboatPatrolWpt1.Location }
UBoatPatrolUnits = { "ss" }
@@ -183,8 +182,6 @@ SetupWorld = function()
end)
end)
Utils.Do(UBoats, function(a) a.Stance = "Defend" end)
Utils.Do(Map.NamedActors, function(actor)
if actor.Owner == soviets and actor.HasProperty("StartBuildingRepairs") then
Trigger.OnDamaged(actor, function(building)

View File

@@ -2053,26 +2053,32 @@ Actors:
Location: 17,92
Owner: Soviets
Facing: 128
Stance: Defend
Uboat2: ss
Location: 20,91
Owner: Soviets
Facing: 128
Stance: Defend
Uboat3: ss
Location: 17,112
Owner: Soviets
Facing: 192
Stance: Defend
Uboat4: ss
Location: 34,120
Owner: Soviets
Facing: 160
Stance: Defend
Uboat5: ss
Location: 24,126
Owner: Soviets
Facing: 160
Stance: Defend
Uboat6: ss
Location: 29,131
Owner: Soviets
Facing: 192
Stance: Defend
WarFactory: weap
Location: 70,72
Owner: Soviets