LuaAPI.wiki
changeset 1720 fca8c324b341
parent 1718 49d91eb0c2c0
child 1724 63af61779c9d
equal deleted inserted replaced
1719:b3b6ed1c822f 1720:fca8c324b341
   238 
   238 
   239 === <tt>onSkipTurn()</tt> (0.9.24) ===
   239 === <tt>onSkipTurn()</tt> (0.9.24) ===
   240 This function calls when a hog skips its turn.
   240 This function calls when a hog skips its turn.
   241 
   241 
   242 === <tt>onGameResult(winningClan)</tt> (0.9.25) ===
   242 === <tt>onGameResult(winningClan)</tt> (0.9.25) ===
   243 This function calls when the game ends with a winner or in a draw. If a clan wins, `winningClan` is the clan ID of the winning clan. If the game ends in a draw, `winningClan` is set to -1f.
   243 This function calls when the game ends with a winner or in a draw. If a clan wins, `winningClan` is the clan ID of the winning clan. If the game ends in a draw, `winningClan` is set to -1.
   244 
   244 
   245 === <tt>onSuddenDeath()</tt> ===
   245 === <tt>onSuddenDeath()</tt> ===
   246 This function is called on the start of Sudden Death.
   246 This function is called on the start of Sudden Death.
   247 
   247 
   248 === <tt>onGearAdd(gearUid)</tt> ===
   248 === <tt>onGearAdd(gearUid)</tt> ===