|
Atrinik Server 2.5
|
#include <global.h>Go to the source code of this file.
Functions | |
| static int | lookup_god_by_name (const char *name) |
| static int | worship_forbids_use (object *op, object *exp_obj, uint32 flag, char *string) |
| static void | stop_using_item (object *op, int type, int number) |
| static void | update_priest_flag (object *god, object *exp_ob, uint32 flag) |
| static int | god_gives_present (object *op, object *god, treasure *tr) |
| static int | god_examines_priest (object *op, object *god) |
| static int | god_examines_item (object *god, object *item) |
| static void | lose_priest_exp (object *pl, int loss) |
| static void | god_intervention (object *op, object *god) |
| object * | find_god (const char *name) |
| void | pray_at_altar (object *pl, object *altar) |
| static int | get_spell_number (object *op) |
| static void | check_special_prayers (object *op, object *god) |
| void | become_follower (object *op, object *new_god) |
| const char * | determine_god (object *op) |
| archetype * | determine_holy_arch (object *god, const char *type) |
| static int | god_removes_curse (object *op, int remove_damnation) |
| static int | follower_level_to_enchantments (int level, int difficulty) |
| static int | god_enchants_weapon (object *op, object *god, object *tr) |
| static int | same_string (const char *s1, const char *s2) |
| static int | follower_has_similar_item (object *op, object *item) |
Handles god related code.
Definition in file gods.c.
This function is called whenever a player has switched to a new god. It basically handles all the stat changes that happen to the player, including the removal of god-given items (from the former cult).
| op | Player switching cults. |
| new_god | New god to worship. |
| const char* determine_god | ( | object * | op | ) |
Determines the archetype for holy servant and god avatar.
Possible monsters are stored as invisible books in god's inventory, one having the right name is selected.
| god | God for which we want something. |
| type | What the summon type is. |
| object* find_god | ( | const char * | name | ) |
Returns pointer to specified god's object through pntr_to_god_obj().
| name | God's name. |
| static int follower_level_to_enchantments | ( | int | level, |
| int | difficulty | ||
| ) | [static] |
| static int get_spell_number | ( | object * | op | ) | [static] |
God wants to enchant weapon.
Affected weapon is the applied one (weapon or bow). It's checked to make sure it isn't a weapon for another god. If all is all right, update weapon with attacktype, slaying and such.
| op | Player. |
| god | God enchanting weapon. |
| tr | Treasure list item for enchanting weapon, contains the enchantment level. |
Checks and maybe punishes someone praying.
All applied items are examined, if player is using more items of other gods, s/he loses experience in praying or general experience if no praying.
| op | Player the god examines. |
| god | God examining the player. |
| static int god_removes_curse | ( | object * | op, |
| int | remove_damnation | ||
| ) | [static] |
| static int lookup_god_by_name | ( | const char * | name | ) | [static] |
| static void lose_priest_exp | ( | object * | pl, |
| int | loss | ||
| ) | [static] |
| static int same_string | ( | const char * | s1, |
| const char * | s2 | ||
| ) | [static] |
| static void stop_using_item | ( | object * | op, |
| int | type, | ||
| int | number | ||
| ) | [static] |
1.7.4