Add testcase for StanceInit
This commit is contained in:
@@ -40,7 +40,6 @@ BaseRearAttackWpts = { GroundAttackWpt1.Location, BaseRearAttackWpt1.Location, B
|
|||||||
SovietHarvesters = { Harvester1, Harvester2, Harvester3 }
|
SovietHarvesters = { Harvester1, Harvester2, Harvester3 }
|
||||||
HarvesterGuard = { HarvGuard1, HarvGuard2, HarvGuard3 }
|
HarvesterGuard = { HarvGuard1, HarvGuard2, HarvGuard3 }
|
||||||
|
|
||||||
UBoats = { Uboat1, Uboat2, Uboat3, Uboat4, Uboat5, Uboat6 }
|
|
||||||
UboatPatrolWpts1 = { UboatPatrolWpt1.Location, UboatPatrolWpt2.Location, UboatPatrolWpt3.Location, UboatPatrolWpt4.Location }
|
UboatPatrolWpts1 = { UboatPatrolWpt1.Location, UboatPatrolWpt2.Location, UboatPatrolWpt3.Location, UboatPatrolWpt4.Location }
|
||||||
UboatPatrolWpts2 = { UboatPatrolWpt4.Location, UboatPatrolWpt2.Location, UboatPatrolWpt1.Location }
|
UboatPatrolWpts2 = { UboatPatrolWpt4.Location, UboatPatrolWpt2.Location, UboatPatrolWpt1.Location }
|
||||||
UBoatPatrolUnits = { "ss" }
|
UBoatPatrolUnits = { "ss" }
|
||||||
@@ -183,8 +182,6 @@ SetupWorld = function()
|
|||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
Utils.Do(UBoats, function(a) a.Stance = "Defend" end)
|
|
||||||
|
|
||||||
Utils.Do(Map.NamedActors, function(actor)
|
Utils.Do(Map.NamedActors, function(actor)
|
||||||
if actor.Owner == soviets and actor.HasProperty("StartBuildingRepairs") then
|
if actor.Owner == soviets and actor.HasProperty("StartBuildingRepairs") then
|
||||||
Trigger.OnDamaged(actor, function(building)
|
Trigger.OnDamaged(actor, function(building)
|
||||||
|
|||||||
@@ -2053,26 +2053,32 @@ Actors:
|
|||||||
Location: 17,92
|
Location: 17,92
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Facing: 128
|
Facing: 128
|
||||||
|
Stance: Defend
|
||||||
Uboat2: ss
|
Uboat2: ss
|
||||||
Location: 20,91
|
Location: 20,91
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Facing: 128
|
Facing: 128
|
||||||
|
Stance: Defend
|
||||||
Uboat3: ss
|
Uboat3: ss
|
||||||
Location: 17,112
|
Location: 17,112
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Facing: 192
|
Facing: 192
|
||||||
|
Stance: Defend
|
||||||
Uboat4: ss
|
Uboat4: ss
|
||||||
Location: 34,120
|
Location: 34,120
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Facing: 160
|
Facing: 160
|
||||||
|
Stance: Defend
|
||||||
Uboat5: ss
|
Uboat5: ss
|
||||||
Location: 24,126
|
Location: 24,126
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Facing: 160
|
Facing: 160
|
||||||
|
Stance: Defend
|
||||||
Uboat6: ss
|
Uboat6: ss
|
||||||
Location: 29,131
|
Location: 29,131
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
Facing: 192
|
Facing: 192
|
||||||
|
Stance: Defend
|
||||||
WarFactory: weap
|
WarFactory: weap
|
||||||
Location: 70,72
|
Location: 70,72
|
||||||
Owner: Soviets
|
Owner: Soviets
|
||||||
|
|||||||
Reference in New Issue
Block a user