LuaAPI: GetVampirism, GetLaserSight, IsHogHidden
authorWuzzy
Tue, 31 Jul 2018 00:04:52 +0100
changeset 1498 17a55d9cc7b9
parent 1497 7a5b840a3dd4
child 1499 798c1cf9de65
LuaAPI: GetVampirism, GetLaserSight, IsHogHidden
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).