From e9a6a3afc5cd9b694344ea5d89f03058989177bf Mon Sep 17 00:00:00 2001 From: Smittytron Date: Mon, 8 Feb 2021 22:38:12 -0600 Subject: [PATCH] Add clarifying objective to Monster Tank Madness --- .../monster-tank-madness.lua | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/mods/ra/maps/monster-tank-madness/monster-tank-madness.lua b/mods/ra/maps/monster-tank-madness/monster-tank-madness.lua index 399c5d7760..e2e04913ab 100644 --- a/mods/ra/maps/monster-tank-madness/monster-tank-madness.lua +++ b/mods/ra/maps/monster-tank-madness/monster-tank-madness.lua @@ -120,7 +120,11 @@ SendAlliedUnits = function() if unit.Type == "e6" then Engineer = unit Trigger.OnKilled(unit, LandingPossible) - end + elseif unit.Type == "thf" then + Trigger.OnKilled(unit, function() + player.MarkFailedObjective(StealMoney) + end) + end end) end) end) @@ -296,6 +300,7 @@ InitObjectives = function() end) EliminateSuperTanks = player.AddPrimaryObjective("Eliminate these super tanks.") + StealMoney = player.AddPrimaryObjective("Steal money from the nearby outpost with the Thief.") CrossRiver = player.AddPrimaryObjective("Secure transport to the mainland.") FindOutpost = player.AddPrimaryObjective("Find our outpost and start repairs on it.") RescueCivilians = player.AddSecondaryObjective("Evacuate all civilians from the hospital.") @@ -376,6 +381,17 @@ InitTriggers = function() end end) + Trigger.OnInfiltrated(USSROutpostSilo, function() + MoneyStolen = true + player.MarkCompletedObjective(StealMoney) + end) + + Trigger.OnKilledOrCaptured(USSROutpostSilo, function() + if not MoneyStolen then + player.MarkFailedObjective(StealMoney) + end + end) + beachReached = false Trigger.OnEnteredFootprint(BeachTrigger, function(a, id) if not beachReached and a.Owner == player then