# HG changeset patch # User Wuzzy # Date 1518114277 0 # Node ID 700fccda9e4db6ede3fca4442f57565d45e3e33b # Parent e739aecb013a591ee7bc6e21900e4108fd31e8f8 LuaAPI: Clarify globals diff -r e739aecb013a -r 700fccda9e4d LuaAPI.wiki --- a/LuaAPI.wiki Thu Feb 08 18:23:14 2018 +0000 +++ b/LuaAPI.wiki Thu Feb 08 18:24:37 2018 +0000 @@ -84,12 +84,12 @@ || `CursorX` || The X position of the cursor if the player is choosing a target. Otherwise, this is `-2147483648` || || `CursorY` || The Y position of the cursor if the player is choosing a target. Otherwise, this is `-2147483648` || || `WaterLine` || The y position of the water, used to determine at which position stuff drowns. Use `SetWaterLine` to change. || -|| `ClansCount` || Number of clans in the game, including defeated ones (a clan is a group of teams with same color) || -|| `TeamsCount` || Total number of teams, including defeated ones || +|| `ClansCount` || Number of clans, including defeated ones (a clan is a group of teams with same color) || +|| `TeamsCount` || Number of teams, including defeated ones || || `TurnTimeLeft` || Number of game ticks (milliseconds) left until the current turn ends. You can change this variable directly. || || `ReadyTimeLeft` || Remaining ready time in millseconds, 0 if turn in progress. Can be set in onNewTurn. In other places, it should only be read, not written. || || `GameTime` || Number of total game ticks || -|| `TotalRounds` || Number of rounds that have passed || +|| `TotalRounds` || Number of rounds that have passed. Is `-1` if game has not started yet, or hog are still being placed || || `CurrentHedgehog` || The hedgehog gear that is currently in play || || `AmmoTypeMax` || Maximum ammo type ID (useful to iterate through all ammo types, starting by 0) ||