Atrinik Server  4.0
Functions
disease.h File Reference

Go to the source code of this file.

Functions

bool disease_infect (object *op, object *victim, bool force)
 
void disease_physically_infect (object *op, object *hitter)
 
bool disease_cure (object *op, object *caster)
 
bool disease_reduce_symptoms (object *op, int reduction)
 

Detailed Description

Disease related header file.

Definition in file disease.h.

Function Documentation

bool disease_cure ( object op,
object caster 
)

Do the cure disease stuff, from the spell "cure disease".

Parameters
opWho is getting cured.
casterSpell object used for curing. If NULL all diseases are removed, otherwise only those of lower level than caster or randomly chosen.
Returns
True if at least one disease was cured, false otherwise.

Definition at line 507 of file disease.c.

bool disease_infect ( object op,
object victim,
bool  force 
)

Try to infect something with a disease. Rules are:

  • Objects with immunity aren't infectable.
  • Objects already infected aren't infectable.
  • Dead objects aren't infectable.
  • Undead objects are infectable only if specifically named.
Parameters
victimVictim to try infect.
diseaseThe disease.
forceDon't do a random check for infection. Other checks (susceptible to disease, not immune, and so on) are still done.
Returns
True if the victim was infected, false otherwise.

Definition at line 396 of file disease.c.

void disease_physically_infect ( object op,
object hitter 
)

Possibly infect due to direct physical contact.

Parameters
opThe victim.
hitterThe hitter.

Definition at line 483 of file disease.c.

bool disease_reduce_symptoms ( object op,
int  reduction 
)

Reduces disease progression.

Parameters
opThe sufferer.
reductionHow much to reduce the disease progression.
Returns
True if we actually reduce a disease, false otherwise.

Definition at line 585 of file disease.c.