share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/shadow.lua
changeset 12512 b1c2b0a8a43e
parent 12263 2c8e7e73ef58
child 12546 5b51257c4122
equal deleted inserted replaced
12511:15e9ef8be44f 12512:b1c2b0a8a43e
    84 
    84 
    85 
    85 
    86 --------------------------Anim skip functions--------------------------
    86 --------------------------Anim skip functions--------------------------
    87 function AfterRefusedAnim()
    87 function AfterRefusedAnim()
    88   SpawnUtilityCrate(2045, 1575, amSwitch)
    88   SpawnUtilityCrate(2045, 1575, amSwitch)
    89   SpawnUtilityCrate(2365, 1495, amShotgun)
    89   SpawnAmmoCrate(2365, 1495, amShotgun)
    90   SpawnUtilityCrate(2495, 1519, amGrenade)
    90   SpawnAmmoCrate(2495, 1519, amGrenade)
    91   SpawnUtilityCrate(2620, 1524, amRope)
    91   SpawnUtilityCrate(2620, 1524, amRope)
    92   ShowMission(loc("The Shadow Falls"), loc("The Showdown"), loc("Save Leaks A Lot!|Hint: The switch hedgehog utility might be of help to you."), 1, 6000)
    92   ShowMission(loc("The Shadow Falls"), loc("The Showdown"), loc("Save Leaks A Lot!|Hint: The switch hedgehog utility might be of help to you."), 1, 6000)
    93   RemoveEventFunc(CheckDenseDead)
    93   RemoveEventFunc(CheckDenseDead)
    94   AddEvent(CheckStronglingsDead, {}, DoStronglingsDeadRefused, {}, 0)
    94   AddEvent(CheckStronglingsDead, {}, DoStronglingsDeadRefused, {}, 0)
    95   AddAmmo(cannibals[6], amGrenade, 1)
    95   AddAmmo(cannibals[6], amGrenade, 1)
   213 end
   213 end
   214 
   214 
   215 
   215 
   216 function AfterAcceptedAnim()
   216 function AfterAcceptedAnim()
   217   stage = acceptedReturnStage
   217   stage = acceptedReturnStage
   218   SpawnAmmoCrate(1370, 810, amGirder)
   218   SpawnUtilityCrate(1370, 810, amGirder)
   219   SpawnAmmoCrate(1300, 810, amParachute)
   219   SpawnUtilityCrate(1300, 810, amParachute)
   220   ShowMission(loc("The Shadow Falls"), loc("The walk of Fame"), loc("Return to Leaks A Lot! If you get stuck, press [Precise] to try again!"), 1, 6000)
   220   ShowMission(loc("The Shadow Falls"), loc("The walk of Fame"), loc("Return to Leaks A Lot! If you get stuck, press [Precise] to try again!"), 1, 6000)
   221   AddEvent(CheckTookWeapons, {}, DoTookWeapons, {}, 0)
   221   AddEvent(CheckTookWeapons, {}, DoTookWeapons, {}, 0)
   222   AddEvent(CheckNeedGirder, {}, DoNeedGirder, {}, 0)
   222   AddEvent(CheckNeedGirder, {}, DoNeedGirder, {}, 0)
   223   AddEvent(CheckNeedWeapons, {}, DoNeedWeapons, {}, 0)
   223   AddEvent(CheckNeedWeapons, {}, DoNeedWeapons, {}, 0)
   224   AddEvent(CheckRestartReturnAccepted, {}, RestartReturnAccepted, {}, 1)
   224   AddEvent(CheckRestartReturnAccepted, {}, RestartReturnAccepted, {}, 1)