Mudlib hit_points

Documentation for the health-hit_points functions for the mudlib in /std/adversary/health/hit_points.c.

Functions

void set_max_health(int x)

void set_max_health(int x); Set the maximum number of hit points of a monster, and also set it’s hit points to the new max.

void kill_us()

void kill_us() Call this function to kill an adversary completely.

void set_health(int x)

void set_health(int x); Set the hit points of a monster. Usually, you want to use heal_us() or set_max_health instead. see also: set_max_health

varargs int hurt_us(int x, string unused)

varargs int hurt_us(int x, string unused); Hurt us a specified amount.

void heal_us(int x)

void heal_us(int x); Heal us a specified amount, truncating at max_health.

void reincarnate()

void reincarnate(); Makes us alive again!

void update_health()

Correct the health if necessary

varargs int query_health(string unused)

varargs int query_health(string unused); Find the current number of hitpoints of a monster

int query_max_health()

int query_max_health(); Find the maximum number of hitpoints of a monster.

void heal_all()

void heal_all(); Heal us completely.

string badly_wounded()

Returns 1 if we’re nearing death.

File generated by Lima 1.1a4 reStructured Text daemon.