# HG changeset patch # User Wuzzy # Date 1493752567 -7200 # Node ID c051ac2544f2446c15397f2e414ca8b04b4b4ff4 # Parent 605a7c85a798329ea744c5ecaef1888fa29f3d93 Add note in Diver scenario that jetpack only has 50% fuel diff -r 605a7c85a798 -r c051ac2544f2 share/hedgewars/Data/Missions/Scenario/User_Mission_-_Diver.lua --- a/share/hedgewars/Data/Missions/Scenario/User_Mission_-_Diver.lua Tue May 02 19:38:21 2017 +0200 +++ b/share/hedgewars/Data/Missions/Scenario/User_Mission_-_Diver.lua Tue May 02 21:16:07 2017 +0200 @@ -6,6 +6,8 @@ local GameOver = false +local jetpackFuel = 1000 + function onGameInit() -- Things we don't modify here will use their default values. @@ -53,6 +55,8 @@ loc("Mines time: 1 second"), -amFirePunch, 0); --SetTag(AddGear(0, 0, gtATSmoothWindCh, 0, 0, 0, 1), -70) + SetAmmoDescriptionAppendix(amJetpack, string.format(loc("In this mission you get %d%% fuel."), div(jetpackFuel, 20))) + SetWind(-100) end @@ -86,7 +90,7 @@ function onGearAdd(gear) if GetGearType(gear) == gtJetpack then - SetHealth(gear,1000) + SetHealth(gear, jetpackFuel) end end