equal
deleted
inserted
replaced
3 |
3 |
4 local player = nil -- This variable will point to the hog's gear |
4 local player = nil -- This variable will point to the hog's gear |
5 local enemy = nil |
5 local enemy = nil |
6 |
6 |
7 local GameOver = false |
7 local GameOver = false |
|
8 |
|
9 local jetpackFuel = 1000 |
8 |
10 |
9 function onGameInit() |
11 function onGameInit() |
10 |
12 |
11 -- Things we don't modify here will use their default values. |
13 -- Things we don't modify here will use their default values. |
12 |
14 |
51 loc("Eliminate the enemy before the time runs out.") .. "|" .. |
53 loc("Eliminate the enemy before the time runs out.") .. "|" .. |
52 loc("Unlimited Attacks: Attacks don't end your turn") .. "|" .. |
54 loc("Unlimited Attacks: Attacks don't end your turn") .. "|" .. |
53 loc("Mines time: 1 second"), -amFirePunch, 0); |
55 loc("Mines time: 1 second"), -amFirePunch, 0); |
54 --SetTag(AddGear(0, 0, gtATSmoothWindCh, 0, 0, 0, 1), -70) |
56 --SetTag(AddGear(0, 0, gtATSmoothWindCh, 0, 0, 0, 1), -70) |
55 |
57 |
|
58 SetAmmoDescriptionAppendix(amJetpack, string.format(loc("In this mission you get %d%% fuel."), div(jetpackFuel, 20))) |
|
59 |
56 SetWind(-100) |
60 SetWind(-100) |
57 |
61 |
58 end |
62 end |
59 |
63 |
60 |
64 |
84 |
88 |
85 |
89 |
86 function onGearAdd(gear) |
90 function onGearAdd(gear) |
87 |
91 |
88 if GetGearType(gear) == gtJetpack then |
92 if GetGearType(gear) == gtJetpack then |
89 SetHealth(gear,1000) |
93 SetHealth(gear, jetpackFuel) |
90 end |
94 end |
91 |
95 |
92 end |
96 end |
93 |
97 |
94 function onGearDelete(gear) |
98 function onGearDelete(gear) |