Fix D2k objectives, alerts in Ha2, Or4, At5
This commit is contained in:
@@ -251,7 +251,7 @@ Tick = function()
|
||||
end
|
||||
|
||||
if LastHarkonnenArrived and not Atreides.IsObjectiveCompleted(KillHarkonnen) and Harkonnen.HasNoRequiredUnits() then
|
||||
Media.DisplayMessage(UserInterface.Translate("atreides-05"), Mentat)
|
||||
Media.DisplayMessage(UserInterface.Translate("harkonnen-annihilated"), Mentat)
|
||||
Atreides.MarkCompletedObjective(KillHarkonnen)
|
||||
end
|
||||
|
||||
@@ -330,8 +330,8 @@ WorldLoaded = function()
|
||||
Atreides.MarkFailedObjective(DefendStarport)
|
||||
end
|
||||
end)
|
||||
Trigger.OnDamaged(Starport, function()
|
||||
if Starport.Owner ~= Smuggler then
|
||||
Trigger.OnDamaged(Starport, function(_, attacker)
|
||||
if Starport.Owner ~= Smuggler or attacker.IsDead or attacker.Owner ~= Atreides then
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ WorldLoaded = function()
|
||||
|
||||
InitObjectives(Harkonnen)
|
||||
KillHarkonnen = AddPrimaryObjective(Atreides, "")
|
||||
KillAtreides = AddSecondaryObjective(Harkonnen, "destroy-atreides-forces")
|
||||
KillAtreides = AddPrimaryObjective(Harkonnen, "destroy-atreides-forces")
|
||||
|
||||
Camera.Position = HConyard.CenterPosition
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ WorldLoaded = function()
|
||||
|
||||
InitObjectives(Harkonnen)
|
||||
KillHarkonnen = AddPrimaryObjective(Atreides, "")
|
||||
KillAtreides = AddSecondaryObjective(Harkonnen, "destroy-atreides-forces")
|
||||
KillAtreides = AddPrimaryObjective(Harkonnen, "destroy-atreides-forces")
|
||||
|
||||
Camera.Position = HConyard.CenterPosition
|
||||
|
||||
|
||||
@@ -318,16 +318,16 @@ Actors:
|
||||
Actor92: spicebloom.spawnpoint
|
||||
Location: 23,24
|
||||
Owner: Neutral
|
||||
HGunTurret3: wind_trap
|
||||
HPower3: wind_trap
|
||||
Location: 44,24
|
||||
Owner: Harkonnen
|
||||
HPower3: wind_trap
|
||||
HPower4: wind_trap
|
||||
Location: 46,24
|
||||
Owner: Harkonnen
|
||||
Actor95: wall
|
||||
Location: 46,29
|
||||
Owner: Harkonnen
|
||||
HGunTurret4: medium_gun_turret
|
||||
HGunTurret3: medium_gun_turret
|
||||
Location: 47,29
|
||||
Owner: Harkonnen
|
||||
Actor97: wall
|
||||
@@ -345,7 +345,7 @@ Actors:
|
||||
Actor101: wall
|
||||
Location: 10,32
|
||||
Owner: Harkonnen
|
||||
HGunTurret5: medium_gun_turret
|
||||
HGunTurret4: medium_gun_turret
|
||||
Location: 11,32
|
||||
Owner: Harkonnen
|
||||
Actor103: light_inf
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
Base =
|
||||
{
|
||||
Harkonnen = { HConyard, HRefinery, HHeavyFactory, HLightFactory, HGunTurret1, HGunTurret2, HGunTurret3, HGunTurret4, HGunTurret5, HBarracks, HPower1, HPower2, HPower3, HPower4 },
|
||||
Harkonnen = { HConyard, HRefinery, HHeavyFactory, HLightFactory, HGunTurret1, HGunTurret2, HGunTurret3, HGunTurret4, HBarracks, HPower1, HPower2, HPower3, HPower4 },
|
||||
Smugglers = { SOutpost, SHeavyFactory, SLightFactory, SGunTurret1, SGunTurret2, SGunTurret3, SGunTurret4, SBarracks, SPower1, SPower2, SPower3 }
|
||||
}
|
||||
|
||||
@@ -139,8 +139,8 @@ WorldLoaded = function()
|
||||
Smuggler.MarkFailedObjective(DefendOutpost)
|
||||
end)
|
||||
end)
|
||||
Trigger.OnDamaged(SOutpost, function()
|
||||
if SOutpost.Owner ~= Smuggler then
|
||||
Trigger.OnDamaged(SOutpost, function(_, attacker)
|
||||
if SOutpost.Owner ~= Smuggler or attacker.IsDead or attacker.Owner ~= Ordos then
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user