# HG changeset patch # User Wuzzy # Date 1460054924 -3600 # Node ID d06141c36428cb78b8ff0efb5f3d4c33a029a1ae # Parent ccbc115e68ada2ddec329d143be3f671bb3706ad LuaAPI: Sudden Death disable diff -r ccbc115e68ad -r d06141c36428 LuaAPI.wiki --- a/LuaAPI.wiki Thu Apr 07 19:40:46 2016 +0100 +++ b/LuaAPI.wiki Thu Apr 07 19:48:44 2016 +0100 @@ -166,12 +166,14 @@ || `MineDudPercent` || `0` || Chance of mine being a dud, in percent || || `Explosives` || `2` || Number of barrels being placed on a medium-sized map || || `SuddenDeathTurns` || `15` || Turns until Sudden Death begins || -|| `WaterRise` || `47` || Height of water rise each turn in Sudden Death, in pixels || +|| `WaterRise` || `47` || Height of water rise in pixels for each Sudden Death turn || || `HealthDecrease` || `5` || Amount of health decreased on each turn in Sudden Death || || `Goals` || `""` || Use this to add additional text to the goal text popup shown at the beginning and when using the quit or pause keys. The text is added to the default text which usually explains the game modifiers and does not replace it. Use `|` for line breaks. Also, all text before and including a `:` in a line will be highlighted. See also `ShowMission`. || || `ScreenWidth` || _N/A_ || Width of the Hedgewars window or screen || || `ScreenHeigth` || _N/A_ || Heigth of the Hedgewars window or screen || +The proper way to disable Sudden Death is by setting both `WaterRise` and `HealthDecrease` to `0`. + If you want to add teams or hogs manually, you have to do it here. If you want to draw your own map using `AddPoint` and `FlushPoints`, you have to do this within this function as well. === onGameStart() ===