share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/united.lua
changeset 12263 2c8e7e73ef58
parent 12224 d62d6f8ebef1
child 12363 6ad1f86e0c81
equal deleted inserted replaced
12262:2c11b8f5fa4d 12263:2c8e7e73ef58
   191   table.insert(startAnim, {func = AnimCustomFunction, args = {chief, RestoreWave, {1}}})
   191   table.insert(startAnim, {func = AnimCustomFunction, args = {chief, RestoreWave, {1}}})
   192   for i = 1, 4 do
   192   for i = 1, 4 do
   193     table.insert(startAnim, {func = AnimOutOfNowhere, args = {cannibals[i], unpack(cannibalPos[i])}})
   193     table.insert(startAnim, {func = AnimOutOfNowhere, args = {cannibals[i], unpack(cannibalPos[i])}})
   194   end
   194   end
   195   table.insert(startAnim, {func = AnimWait, args = {chief, 1500}})
   195   table.insert(startAnim, {func = AnimWait, args = {chief, 1500}})
   196   table.insert(startAnim, {func = AnimSay, args = {leaks, loc("HOW DO THEY KNOW WHERE WE ARE???"), SAY_SHOUT, 5000}})
   196   table.insert(startAnim, {func = AnimSay, args = {leaks, loc("HOW DO THEY KNOW WHERE WE ARE?"), SAY_SHOUT, 5000}})
   197   table.insert(startAnim, {func = AnimSay, args = {chief, loc("We have to protect the village!"), SAY_SAY, 5000}})
   197   table.insert(startAnim, {func = AnimSay, args = {chief, loc("We have to protect the village!"), SAY_SAY, 5000}})
   198   table.insert(startAnim, {func = AnimSwitchHog, args = {leaks}})
   198   table.insert(startAnim, {func = AnimSwitchHog, args = {leaks}})
   199   AddSkipFunction(startAnim, SkipStartAnim, {})
   199   AddSkipFunction(startAnim, SkipStartAnim, {})
   200 
   200 
   201   table.insert(wave2Anim, {func = AnimCustomFunction, args = {leaks, RestoreWave, {2}}, swh = false})
   201   table.insert(wave2Anim, {func = AnimCustomFunction, args = {leaks, RestoreWave, {2}}, swh = false})
   212 function SetupHogDeadAnim(gear)
   212 function SetupHogDeadAnim(gear)
   213   hogDeadAnim = {}
   213   hogDeadAnim = {}
   214   if nativesNum == 0 then
   214   if nativesNum == 0 then
   215     return
   215     return
   216   end
   216   end
   217   local hogDeadStrings = {loc("They killed ") .. gear ..loc("! You bastards!"), 
   217   local hogDeadStrings = {string.format(loc("They killed %s! You bastards!"), gear), 
   218                           gear .. loc("! Why?!"), 
   218                           string.format(loc("%s! Why?!"), gear), 
   219                           loc("That was just mean!"), 
   219                           loc("That was just mean!"), 
   220                           loc("Oh no, not ") .. gear .. "!"}
   220                           string.format(loc("Oh no, not %s!"), gear)}
   221   table.insert(hogDeadAnim, {func = AnimSay, args = {CurrentHedgehog, hogDeadStrings[nativesNum], SAY_SHOUT, 4000}})
   221   table.insert(hogDeadAnim, {func = AnimSay, args = {CurrentHedgehog, hogDeadStrings[nativesNum], SAY_SHOUT, 4000}})
   222 end
   222 end
   223 
   223 
   224 function SetupFinalAnim()
   224 function SetupFinalAnim()
   225   local found = 0
   225   local found = 0