Mention overwritten fuel in ammo description of UFO in TechRacer
authorWuzzy <almikes@aol.com>
Tue, 02 May 2017 19:38:21 +0200
changeset 12394 605a7c85a798
parent 12393 0eb1457f7b94
child 12395 c051ac2544f2
Mention overwritten fuel in ammo description of UFO in TechRacer
share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua	Mon May 01 00:04:28 2017 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/TechRacer.lua	Tue May 02 19:38:21 2017 +0200
@@ -702,6 +702,12 @@
 		activationStage = 200
 		--runOnHogs(RestoreHog)
 
+		if ufoFuel == 2000 then
+			SetAmmoDescriptionAppendix(amJetpack, loc("On this map you get infinite fuel."))
+		elseif ufoFuel ~= nil and ufoFuel ~= 0 then
+			SetAmmoDescriptionAppendix(amJetpack, string.format(loc("On this map you get %d%% fuel."), div(ufoFuel, 20)))
+		end
+
 	end
 
 end