# HG changeset patch # User Wuzzy # Date 1465473450 -3600 # Node ID 74b9c19e4b505daa11c7fdd192fabd45558a2236 # Parent 43cb59d498eab4930f50613b321c2e7b7e715685 LuaAPI: fix typos diff -r 43cb59d498ea -r 74b9c19e4b50 LuaAPI.wiki --- a/LuaAPI.wiki Thu May 12 12:34:48 2016 +0100 +++ b/LuaAPI.wiki Thu Jun 09 12:57:30 2016 +0100 @@ -138,7 +138,7 @@ More constants are at at [GearTypes Gear Types] , [AmmoTypes Ammo Types], [Sounds], [States], [Sprites], [VisualGearTypes Visual Gear Types]. == Event handlers == -Lua scripts are supposed to _define_ these functions to do something. The functions are then _called_ by Hedgewars when a certain even has occoured. +Lua scripts are supposed to _define_ these functions to do something. The functions are then _called_ by Hedgewars when a certain event has occoured. === onGameInit() === This function is called before the game loads its resources. One can read and modify various game variables here. These variables will become globally available after `onGameInit` has been invoked, but changing them has only an effect in `onGameInit`. @@ -172,7 +172,7 @@ || `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 || +|| `ScreenHeight` || _N/A_ || Height of the Hedgewars window or screen || The proper way to disable Sudden Death is by setting both `WaterRise` and `HealthDecrease` to `0`.