# HG changeset patch # User Wuzzy # Date 1479902904 -3600 # Node ID 46bd207d1b177bd26692e94a19b4e88018f48fdc # Parent 279b3ba8d3bd88103f54dd3607089dd6583872be Update outdated onGameInit variables in HedgeEditor map export, fixes various bugs diff -r 279b3ba8d3bd -r 46bd207d1b17 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("")