Make only the right warfactory infiltratable. don't break the game if a player manages without infiltration.

This commit is contained in:
Muh-Muh
2018-01-30 00:07:50 +01:00
committed by BadWolf
parent 0a092237d3
commit f34911eeb6
3 changed files with 14 additions and 1 deletions

View File

@@ -240,6 +240,10 @@ InitTriggers = function()
end)
Trigger.OnInfiltrated(Prison, function()
if not greece.IsObjectiveCompleted(infWarfactory) then
Media.DisplayMessage("Good work! But next time skip the heroics!", "Battlefield Control")
greece.MarkCompletedObjective(infWarfactory)
end
Trigger.ClearAll(Spy)
Trigger.AfterDelay(DateTime.Seconds(2), MissInfiltrated)
end)

View File

@@ -1399,7 +1399,7 @@ Actors:
Prison: miss
Location: 25,106
Owner: USSR
Warfactory: weap
Warfactory: weap.infiltratable
Location: 43,50
Owner: USSR
Warfactory2: weap

View File

@@ -82,7 +82,16 @@ SPY:
WEAP:
-InfiltrateForSupportPower:
Targetable:
TargetTypes: Ground, C4, DetonateAttack, Structure
WEAP.infiltratable:
Inherits: WEAP
Buildable:
Prerequisites: ~disabled
Targetable@Spy:
TargetTypes: Ground, C4, DetonateAttack, Structure, Mission Objectives
RenderSprites:
Image: WEAP
MISS:
Tooltip: