Update outdated onGameInit variables in HedgeEditor map export, fixes various bugs
authorWuzzy <almikes@aol.com>
Wed, 23 Nov 2016 13:08:24 +0100
changeset 11988 46bd207d1b17
parent 11987 279b3ba8d3bd
child 11989 a6f4e4265d2e
Update outdated onGameInit variables in HedgeEditor map export, fixes various bugs
share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua	Wed Nov 23 03:02:37 2016 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua	Wed Nov 23 13:08:24 2016 +0100
@@ -115,8 +115,6 @@
 
 -- check if we lose a mission when the enemy collects our crate (we should)
 
--- try and find out why we can't save the Theme, that feels really dumb
-
 -- How about a weapons profile tool that is used with team ammo
 -- and then hog identity tool would only be available if gfPerHogAmmo is set
 
@@ -1990,7 +1988,12 @@
 	WriteLnToConsole(temp .. ")")
 
 	WriteLnToConsole("	Map = \"" .. Map .. "\"")
-	WriteLnToConsole("	Theme = \"" .. "Nature" .. "\"")
+	WriteLnToConsole("	Seed = \"" .. Seed .. "\"")
+	WriteLnToConsole("	Theme = " .. Theme .. "\"")
+	WriteLnToConsole("	MapGen = " .. MapGen)
+	WriteLnToConsole("	MapFeatureSize = " .. MapFeatureSize)
+	WriteLnToConsole("	TemplateFilter = " .. TemplateFilter)
+	WriteLnToConsole("	TemplateNumber = " .. TemplateNumber)
 	WriteLnToConsole("	TurnTime = " .. TurnTime)
 	WriteLnToConsole("	Explosives = " .. Explosives)
 	WriteLnToConsole("	MinesNum = " .. MinesNum)
@@ -2000,16 +2003,17 @@
 	WriteLnToConsole("	HealthCaseProb = " .. HealthCaseProb)
 	WriteLnToConsole("	HealthCaseAmount = " .. HealthCaseAmount)
 	WriteLnToConsole("	DamagePercent = " .. DamagePercent)
+	WriteLnToConsole("	RopePercent = " .. RopePercent)
 	WriteLnToConsole("	MinesTime = " .. MinesTime)
 	WriteLnToConsole("	MineDudPercent  = " .. MineDudPercent)
 	WriteLnToConsole("	SuddenDeathTurns = " .. SuddenDeathTurns)
 	WriteLnToConsole("	WaterRise = " .. WaterRise)
 	WriteLnToConsole("	HealthDecrease = " .. HealthDecrease)
 
-	--WriteLnToConsole("	Ready = " .. Ready)
-	--WriteLnToConsole("	AirMinesNum = " .. AirMinesNum)
+	WriteLnToConsole("	Ready = " .. Ready)
+	WriteLnToConsole("	AirMinesNum = " .. AirMinesNum)
 	--WriteLnToConsole("	ScriptParam = " .. ScriptParam)
-	--WriteLnToConsole("	GetAwayTime = " .. GetAwayTime)
+	WriteLnToConsole("	GetAwayTime = " .. GetAwayTime)
 
 	WriteLnToConsole("")