Add note in Diver scenario that jetpack only has 50% fuel
authorWuzzy <almikes@aol.com>
Tue, 02 May 2017 21:16:07 +0200
changeset 12395 c051ac2544f2
parent 12394 605a7c85a798
child 12396 832a1d22bfe8
Add note in Diver scenario that jetpack only has 50% fuel
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