|
Atrinik Server 2.5
|
#include <global.h>Go to the source code of this file.
Functions | |
| static int | is_susceptible_to_disease (object *victim, object *disease) |
| static void | remove_symptoms (object *disease) |
| static object * | find_symptom (object *disease) |
| static void | check_infection (object *disease) |
| static void | do_symptoms (object *disease) |
| static void | grant_immunity (object *disease) |
| int | move_disease (object *disease) |
| int | infect_object (object *victim, object *disease, int force) |
| void | move_symptom (object *symptom) |
| void | check_physically_infect (object *victim, object *hitter) |
| int | cure_disease (object *sufferer, object *caster) |
| int | reduce_symptoms (object *sufferer, int reduction) |
This file contains all the code implementing diseases, except for odds and ends in attack.c and in living.c.
Diseases may be contagious. They are objects which exist in a player's inventory. They themselves do nothing, except modify symptoms, or spread to other live objects. symptoms are what actually damage the player.
Definition in file disease.c.
| static void check_infection | ( | object * | disease | ) | [static] |
Possibly infect due to direct physical contact.
Called from doing physical attack in hit_player_attacktype().
| victim | The victim. |
| hitter | The hitter. |
Do the cure disease stuff, from the spell "cure disease".
| sufferer | Who is getting cured. |
| caster | Spell object used for curing. If NULL all diseases are removed, otherwise only those of lower level than caster or randomly chosen. |
| static void do_symptoms | ( | object * | disease | ) | [static] |
| static void grant_immunity | ( | object * | disease | ) | [static] |
Try to infect something with a disease. Rules are:
| victim | Victim to try infect. |
| disease | The disease. |
| force | Don't do a random check for infection. Other checks (susceptible to disease, not immune, and so on) are still done. |
| int move_disease | ( | object * | disease | ) |
| void move_symptom | ( | object * | symptom | ) |
| int reduce_symptoms | ( | object * | sufferer, |
| int | reduction | ||
| ) |
1.7.4