ADD_HP(L) NAME add_hp - change the hit points of a living object SYNOPSIS void varargs add_hp(int amount [, ignore_flag]) LOCATION /obj/living_functions.c RETURN VALUE None. DESCRIPTION With this function you can add an amount, positive or negative, to a living's hit points. Checks on limits can be turned off by using the ignore flag. The use of the ignore flag is logged. NOTES Use of this function in weapons and in combat is expressly forbidden. Doing so may be grounds for demotion. Check the rules or ask a 35++ for more current info. The function will not reduce the hit points below 1, thus it will not kill a living object. This could be used to heal hit points alone (as opposed to heal_self(L) which heals hit points and spell points together). Unlike hit_player(L), which adjusts the damage for armour class, this function adds or subtracts an absolute amount from the total hit points. Use this for poisons and the like. BUGS (FEATURES) With the ignore flag, this can be used to raise a living object above its maximum normal hit point range. This must be approved. SEE ALSO add_sp(L), heal_self(L)
Help topics available:
You are guest number 66 since March 2020.
This file was last modified: June 2000.