LuaGameplay: fix syntax error for Retreat function
authorWuzzy
Wed, 28 Jun 2023 07:41:13 +0000
changeset 2254 6f6f15fb33d5
parent 2253 1bd9936f6b01
child 2255 3b53cfb51850
LuaGameplay: fix syntax error for Retreat function
LuaGameplay.wiki
--- a/LuaGameplay.wiki	Wed Jun 28 06:03:32 2023 +0000
+++ b/LuaGameplay.wiki	Wed Jun 28 07:41:13 2023 +0000
@@ -31,10 +31,10 @@
 
 Normally, a “Coward” taunt may be played and an announcer message may be shown (depending on the situation). Set the optional `noTaunts` parameter to `true` to force the engine to never play a taunt or show a message. `noTaunts` is `false` by default.
 
-=== <tt>Retreat(time [, respectGetAwayTimeFactor)</tt> ===
+=== <tt>Retreat(time [, respectGetAwayTimeFactor])</tt> ===
 Forces the current turn into the retreating phase, as if the hog made an attack. That is, the current hedgehog is unable to attack or select a weapon, only movement is possible until the retreat time is up.
 
-The retreat time must be set with `time` in milliseconds. By default, this time is automatically multiplied with get-away time percentage from the game scheme for seamless integration with schemes. If you want to ignore the game scheme for some reason and set the retreat time no matter what, set `respectGetAwayTimeFactor` to `false`.
+The retreat time must be set with `time` in milliseconds. By default, this time is automatically multiplied with get-away time percentage from the game scheme for seamless integration with schemes. If you want to ignore the game scheme and set the retreat time to a fixed value, set `respectGetAwayTimeFactor` to `false`.
 
 If the current hedgehog was busy doing an attack, the attack is aborted, no shot is made. If this function is called in the ready phase of a turn, the ready phase continues normally, but the turn will begin in the retreat phase instead.