Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add translation markers for delta patrol duty scenario #2236

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 23 additions & 23 deletions scripts/scenario_54_PatrolDuty.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6588,54 +6588,54 @@ function patrolAsimovUtopiaPlanitiaArmstrong(delta)
nuisanceSpawned = "ready"
nuisanceTimer = random(30,90)
plot2 = nuisance
removeGMFunction("Start plot 2 sick Kojak")
removeGMFunction(_("buttonGM", "Start plot 2 sick Kojak"))
end
end
if highestPatrolLeg == 3 and missionLength > 1 then
if attack3spawned == nil then
attack3spawned = "ready"
attack3Timer = random(15,40)
plot8 = attack3
removeGMFunction("Strt plot 8 Sheila dies")
removeGMFunction(_("buttonGM", "Strt plot 8 Sheila dies"))
end
end
if highestPatrolLeg == 4 and missionLength > 1 then
if attack4spawned == nil then
attack4spawned = "ready"
attack4Timer = random(20,50)
plot9 = attack4
removeGMFunction("Start plot 9 ambush")
removeGMFunction(_("buttonGM", "Start plot 9 ambush"))
end
end
if highestPatrolLeg == 5 then
if incursionSpawned == nil then
incursionSpawned = "ready"
incursionTimer = random(30,90)
plot3 = incursion
removeGMFunction("Start p 3 McNabbit ride")
removeGMFunction(_("buttonGM", "Start p 3 McNabbit ride"))
end
end
if highestPatrolLeg == 6 and missionLength > 1 then
if attack5spawned == nil then
attack5spawned = "ready"
attack5Timer = random(20,50)
plot10 = attack5
removeGMFunction("Start plot 10 ambush")
removeGMFunction(_("buttonGM", "Start plot 10 ambush"))
end
end
if highestPatrolLeg == 7 then
if attack1spawned == nil then
attack1spawned = "ready"
attack1Timer = random(40,120)
plot4 = attack1
removeGMFunction("St p4 Lisbon's stowaway")
removeGMFunction(_("buttonGM", "St p4 Lisbon's stowaway"))
end
end
if highestPatrolLeg == 8 then
if attack2spawned == nil then
attack2spawned = "ready"
plot5 = attack2
removeGMFunction("Start plot 5")
removeGMFunction(_("buttonGM", "Start plot 5"))
end
end
if patrolComplete then
Expand Down Expand Up @@ -6762,7 +6762,7 @@ function afterPatrol(delta)
waveDelayTimer = 120
longWave = 0
plot1 = defendUtopia
removeGMFunction("Skip to defend U.P.")
removeGMFunction(_("buttonGM", "Skip to defend U.P."))
else
playSoundFile("audio/scenario/54/sa_54_AuthMBVictory.ogg")
victory("Human Navy")
Expand Down Expand Up @@ -6896,7 +6896,7 @@ function defendUtopia(delta)
if wave3count + wave4count + wave5count == 0 then
if difficulty > 1 then
plot1 = destroyEnemyStronghold
removeGMFunction("Skip to destroy S.C.")
removeGMFunction(_("buttonGM", "Skip to destroy S.C."))
else
victory("Human Navy")
end
Expand Down Expand Up @@ -7282,7 +7282,7 @@ function minerWeaponsDecide(delta)
end
plot2 = nil
minerUpgrade = true
removeGMFunction("Start plot 2 sick Kojak")
removeGMFunction(_("buttonGM", "Start plot 2 sick Kojak"))
end
end
function insightToBase()
Expand Down Expand Up @@ -7369,7 +7369,7 @@ function nabbitRideRequest()
plot3 = getNabbit
else
plot3 = nil
removeGMFunction("Start p 3 McNabbit ride")
removeGMFunction(_("buttonGM", "Start p 3 McNabbit ride"))
end
end

Expand All @@ -7389,7 +7389,7 @@ function getNabbit(delta)
else
plot3 = nil
plot3reminder = nil
removeGMFunction("Start p 3 McNabbit ride")
removeGMFunction(_("buttonGM", "Start p 3 McNabbit ride"))
end
end
end
Expand All @@ -7413,7 +7413,7 @@ function dropNabbit(delta)
nabbitShip:addReputationPoints(5)
plot3 = nil
plot3reminder = nil
removeGMFunction("Start p 3 McNabbit ride")
removeGMFunction(_("buttonGM", "Start p 3 McNabbit ride"))
if playNabbitTuneMsgButton == nil then
playNabbitTuneMsgButton = "playNabbitTuneMsgButton"
nabbitShip:addCustomButton("Relay",playNabbitTuneMsgButton,_("Nabbit3Audio-buttonRelay", "|> ASTGDN038"),playNabbitTune)
Expand Down Expand Up @@ -8109,39 +8109,39 @@ function initiatePlot2()
nuisanceSpawned = "ready"
nuisanceTimer = random(30,90)
plot2 = nuisance
removeGMFunction("Start plot 2 sick Kojak")
removeGMFunction(_("buttonGM", "Start plot 2 sick Kojak"))
end
function initiatePlot3()
incursionSpawned = "ready"
incursionTimer = random(30,90)
plot3 = incursion
removeGMFunction("Start p 3 McNabbit ride")
removeGMFunction(_("buttonGM", "Start p 3 McNabbit ride"))
end
function initiatePlot4()
attack1spawned = "ready"
attack1Timer = random(40,120)
plot4 = attack1
removeGMFunction("St p4 Lisbon's stowaway")
removeGMFunction(_("buttonGM", "St p4 Lisbon's stowaway"))
end
function initiatePlot5()
attack2spawned = "ready"
plot5 = attack2
removeGMFunction("Start plot 5")
removeGMFunction(_("buttonGM", "Start plot 5"))
end
function initiatePlot8()
attack3spawned = "ready"
plot8 = attack3
removeGMFunction("Strt plot 8 Sheila dies")
removeGMFunction(_("buttonGM", "Strt plot 8 Sheila dies"))
end
function initiatePlot9()
attack4spawned = "ready"
plot9 = attack4
removeGMFunction("Start plot 9 ambush")
removeGMFunction(_("buttonGM", "Start plot 9 ambush"))
end
function initiatePlot10()
attack5spawned = "ready"
plot10 = attack5
removeGMFunction("Start plot 10 ambush")
removeGMFunction(_("buttonGM", "Start plot 10 ambush"))
end
function skipToDefendUP()
artAnchorUpgrade = true
Expand All @@ -8151,7 +8151,7 @@ function skipToDefendUP()
lisbonUpgrade = true
waveDelayTimer = 120
plot1 = defendUtopia
removeGMFunction("Skip to defend U.P.")
removeGMFunction(_("buttonGM", "Skip to defend U.P."))
end
function skipToDestroySC()
artAnchorUpgrade = true
Expand All @@ -8161,7 +8161,7 @@ function skipToDestroySC()
lisbonUpgrade = true
waveDelayTimer = 120
plot1 = destroyEnemyStronghold
removeGMFunction("Skip to destroy S.C.")
removeGMFunction(_("buttonGM", "Skip to destroy S.C."))
end
------------------------------------
-- Generic or utility functions --
Expand Down Expand Up @@ -8623,4 +8623,4 @@ function update(delta)
plotRS(delta)
end
expirePlayButtons(delta)
end
end
Loading