# HG changeset patch # User Wuzzy # Date 1532991892 -3600 # Node ID 17a55d9cc7b9fcfc5080c6106167d75af98bdd5f # Parent 7a5b840a3dd483245449d2287303dfda506059af LuaAPI: GetVampirism, GetLaserSight, IsHogHidden diff -r 7a5b840a3dd4 -r 17a55d9cc7b9 LuaAPI.wiki --- a/LuaAPI.wiki Tue Jul 24 17:31:33 2018 +0100 +++ b/LuaAPI.wiki Tue Jul 31 00:04:52 2018 +0100 @@ -509,6 +509,9 @@ === <tt>!GetHogName(gearUid)</tt> === Returns the name of the specified hedgehog gear. +=== <tt>!IsHogHidden(gearUid)</tt> (0.9.25) === +Returns true if hedgehog gear is hidden (via `HideHog` or the !TimeBox, false if it isn't, nil if that hedgehog never existed. + === <tt>!GetEffect(gearUid, effect)</tt> === Returns the state of given effect for the given hedgehog gear. @@ -1266,9 +1269,15 @@ ==== `SetVampiric(bool)` (0.9.24) ==== Toggles vampirism mode for this turn. Set `bool` to `true` to enable (same effect as if the hedgehog has used Vampirism), `false` to disable. +==== `GetVampiric()` (0.9.25) ==== +Returns true if vampirism mode is currently active. + ==== `SetLaserSight(bool)` (0.9.24) ==== Toggles laser sight for this turn. Set `bool` to `true` to enable (same effect as if the hedgehog has used Laser Sight), `false` to disable. +==== `GetLaserSight()` (0.9.25) ==== +Returns true if laser sight (as utility) is currently active. The sniper rifle's built-in laser sight does not count. + ==== `EnableSwitchHog()` (0.9.25) ==== Enable hog switching mode for the current hedgehog. This function should be called while the hedgehog is standing on solid ground (`GetFlightTime` returns 0).