# HG changeset patch
# User Wuzzy
# Date 1685019845 0
# Node ID f00c578955f7e4cfc525e567811118a4ee0f400a
# Parent 61645d84f13e0070f7e7452b2995ec6c3e265a91
LuaEvents: remove version numbers
diff -r 61645d84f13e -r f00c578955f7 LuaEvents.wiki
--- a/LuaEvents.wiki Fri May 12 20:53:35 2023 +0000
+++ b/LuaEvents.wiki Thu May 25 13:04:05 2023 +0000
@@ -83,7 +83,7 @@
=== onSkipTurn() ===
This function calls when a hog skips its turn.
-=== onCaseDrop(gear) (1.0.0) ===
+=== onCaseDrop(gear) ===
This function calls between two turns right after the moment at which the game *might* drop a crate according to the game scheme settings. It does not matter if it actually wants to drop a crate.
If a crate was dropped, `gear` is the crate gear that was dropped, if no crate was dropped, `gear` is `nil`.
@@ -93,7 +93,7 @@
=== onSuddenDeath() ===
This function is called on the start of Sudden Death.
-=== onGameResult(winningClan) (1.0.0) ===
+=== onGameResult(winningClan) ===
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.
=== onAchievementsDeclaration() ===
@@ -104,7 +104,7 @@
Note: If you want to detect when a turn was skipped, use `onSkipTurn()`. There is no guarantee that `onHogAttack(amSkip)` is called in such an event.
-=== onHogSwitch(oldHog) (1.0.0) ===
+=== onHogSwitch(oldHog) ===
Called when hogs have been switched using the “switch hedgehog” utility. `oldHog` is the gear ID of the previous hedgehog and the current hedgehog gear ID is stored in `CurrentHedgehog`.
Note: If you want to detect when a turn was skipped, use `onSkipTurn()`. There is no guarantee that `onHogAttack(amSkip)` is called in such an event.