share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/shadow.lua
changeset 14500 dbf704b00762
parent 14486 f8c2b995c009
child 14660 aa4f99b96c6d
equal deleted inserted replaced
14499:c20cc536f3da 14500:dbf704b00762
   145 
   145 
   146 hogNr = {}
   146 hogNr = {}
   147 cannibalDead = {}
   147 cannibalDead = {}
   148 isHidden = {}
   148 isHidden = {}
   149 
   149 
   150 local grenadeHint = loc("Grenade hint: Set timer with the [Timer] controls, aim with [Up]/[Down].") .. "|" ..
       
   151                     loc("Hold [Attack] pressed to throw with more power.")
       
   152 if INTERFACE == "touch" then
       
   153   grenadeHint = grenadeHint .. "|" ..
       
   154                 loc("Change detonation timer: Tap the [Clock]") .. "|" ..
       
   155                 loc("Attack: Tap the [Bomb]")
       
   156 else
       
   157   grenadeHint = grenadeHint .. "|" ..
       
   158                 loc("Set detonation timer: [1]-[5]") .. "|" ..
       
   159                 loc("Attack: [Space]")
       
   160 end
       
   161 
       
   162 --------------------------Anim skip functions--------------------------
   150 --------------------------Anim skip functions--------------------------
   163 function AfterRefusedAnim()
   151 function AfterRefusedAnim()
   164   if stage == loseStage then
   152   if stage == loseStage then
   165     return
   153     return
   166   end
   154   end
   328 function AfterAttackedAnim()
   316 function AfterAttackedAnim()
   329   if stage == loseStage then
   317   if stage == loseStage then
   330     return
   318     return
   331   end
   319   end
   332   stage = aloneStage
   320   stage = aloneStage
   333   ShowMission(loc("The Shadow Falls"), loc("The Individualist"), loc("Defeat the cannibals!") .. "|" .. grenadeHint, 1, 12000)
   321   ShowMission(loc("The Shadow Falls"), loc("The Individualist"), loc("Defeat the cannibals!"), 1, 12000)
   334   AddAmmo(cannibals[6], amGrenade, 1)
   322   AddAmmo(cannibals[6], amGrenade, 1)
   335   AddAmmo(cannibals[6], amFirePunch, 0)
   323   AddAmmo(cannibals[6], amFirePunch, 0)
   336   AddAmmo(cannibals[6], amBaseballBat, 0)
   324   AddAmmo(cannibals[6], amBaseballBat, 0)
   337   AddAmmo(cannibals[7], amGrenade, 1)
   325   AddAmmo(cannibals[7], amGrenade, 1)
   338   AddAmmo(cannibals[7], amFirePunch, 0)
   326   AddAmmo(cannibals[7], amFirePunch, 0)
   893 function DoReadyForStronglings()
   881 function DoReadyForStronglings()
   894   if stage == loseStage then
   882   if stage == loseStage then
   895     return
   883     return
   896   end
   884   end
   897 
   885 
   898   ShowMission(loc("The Shadow Falls"), loc("The guardian"), loc("Defeat the cannibals!") .."|".. loc("Leaks A Lot must survive!") .. "|" .. grenadeHint, 1, 12000)
   886   ShowMission(loc("The Shadow Falls"), loc("The guardian"), loc("Defeat the cannibals!") .."|".. loc("Leaks A Lot must survive!"), 1, 12000)
   899   AddAmmo(dense, amSkip, 100)
   887   AddAmmo(dense, amSkip, 100)
   900   AddAmmo(dense, amSwitch, 100)
   888   AddAmmo(dense, amSwitch, 100)
   901   AddAmmo(leaks, amSkip, 100)
   889   AddAmmo(leaks, amSkip, 100)
   902   AddAmmo(leaks, amSwitch, 100)
   890   AddAmmo(leaks, amSwitch, 100)
   903   stage = duoStage
   891   stage = duoStage