LuaAPI.wiki
changeset 1191 40698f589acb
parent 1190 0d33477246bc
child 1211 b228006249f8
equal deleted inserted replaced
1190:0d33477246bc 1191:40698f589acb
   807             SetHealth(gear, 0)
   807             SetHealth(gear, 0)
   808        end
   808        end
   809     end</code>
   809     end</code>
   810 
   810 
   811 === `HealHog(gearUid, healthBoost[, showMessage[, tint]])` (0.9.24) ===
   811 === `HealHog(gearUid, healthBoost[, showMessage[, tint]])` (0.9.24) ===
   812 Convenience function to heal hedgehogs.
   812 Convenience function to increase the health of hogs with default effects.
   813 
   813 
   814 Increases the health of the hedgehog gear with the given ID `gearUid` by `healthBoost`, displays some healing particles at the hedgehog and shows the health increae as a message. This is similar to the behavour after taking a health crate, or getting a health boost from vampirism.
   814 Increases the health of the hedgehog gear with the given ID `gearUid` by `healthBoost`, displays some healing particles at the hedgehog and shows the health increae as a message. This is similar to the behavour after taking a health crate, or getting a health boost from vampirism.
   815 
   815 
   816 If `showMessage` is false, no message is shown. With `tint` you can set the RGBA color of the particles (default: `0x00FF00FF`).
   816 If `showMessage` is false, no message is shown. With `tint` you can set the RGBA color of the particles (default: `0x00FF00FF`).
       
   817 
       
   818 This function does not affect the poison state, however (see `SetEffect`).
   817 
   819 
   818 === <tt>!SetEffect(gearUid, effect, effectState)</tt> ===
   820 === <tt>!SetEffect(gearUid, effect, effectState)</tt> ===
   819 Sets the state for one of the effects <tt>heInvulnerable, heResurrectable, hePoisoned, heResurrected, heFrozen</tt> for the specified hedgehog gear.
   821 Sets the state for one of the effects <tt>heInvulnerable, heResurrectable, hePoisoned, heResurrected, heFrozen</tt> for the specified hedgehog gear.
   820 A value of 0 usually means the effect is disabled, values other than that indicate that it is enabled and in some cases specify e.g. the remaining time of that effect.
   822 A value of 0 usually means the effect is disabled, values other than that indicate that it is enabled and in some cases specify e.g. the remaining time of that effect.
   821 
   823