Polished soviet-01

- Made buildings unsellable
- Let the mission fail, if all airfields are destroyed
- Removed NPC fake objective
This commit is contained in:
abcdefg30
2015-01-11 21:15:02 +01:00
parent 25abdfbcd6
commit dbde7e7a27
2 changed files with 11 additions and 5 deletions

View File

@@ -667,6 +667,11 @@ Rules:
ChargeTime: 60 ChargeTime: 60
DropItems: E1,E1,E1,E2,E2 DropItems: E1,E1,E1,E2,E2
#-RallyPoint: # TODO https://github.com/OpenRA/OpenRA/issues/6818 #-RallyPoint: # TODO https://github.com/OpenRA/OpenRA/issues/6818
-Sellable:
DOME:
-Sellable:
POWR:
-Sellable:
Sequences: Sequences:

View File

@@ -17,6 +17,7 @@ JeepDemolishingBridge = function()
StartJeep.Move(StartJeepMovePoint.Location) StartJeep.Move(StartJeepMovePoint.Location)
Trigger.OnIdle(StartJeep, function() Trigger.OnIdle(StartJeep, function()
Trigger.ClearAll(StartJeep)
if not BridgeBarrel.IsDead then if not BridgeBarrel.IsDead then
BridgeBarrel.Kill() BridgeBarrel.Kill()
end end
@@ -45,8 +46,12 @@ WorldLoaded = function()
Media.DisplayMessage(p.GetObjectiveDescription(id), "Objective failed") Media.DisplayMessage(p.GetObjectiveDescription(id), "Objective failed")
end) end)
CivilProtectionObjective = france.AddPrimaryObjective("Protect the civilians.")
VillageRaidObjective = player.AddPrimaryObjective("Raze the village.") VillageRaidObjective = player.AddPrimaryObjective("Raze the village.")
Trigger.OnAllRemovedFromWorld(Airfields, function()
player.MarkFailedObjective(VillageRaidObjective)
end)
JeepDemolishingBridge() JeepDemolishingBridge()
Trigger.OnPlayerWon(player, function() Trigger.OnPlayerWon(player, function()
@@ -64,8 +69,4 @@ Tick = function()
if france.HasNoRequiredUnits() and germany.HasNoRequiredUnits() then if france.HasNoRequiredUnits() and germany.HasNoRequiredUnits() then
player.MarkCompletedObjective(VillageRaidObjective) player.MarkCompletedObjective(VillageRaidObjective)
end end
if player.HasNoRequiredUnits() then
france.MarkCompletedObjective(CivilProtectionObjective)
end
end end