#include "enum.h"#include "externs.h"#include "ouch.h"#include "mon-iter.h"#include "player.h"#include "religion-enum.h"

Go to the source code of this file.
Defines | |
| #define | MAX_PIETY 200 |
| #define | HALF_MAX_PIETY (MAX_PIETY / 2) |
| #define | MAX_PENANCE 200 |
Functions | |
| bool | is_evil_god (god_type god) |
| bool | is_good_god (god_type god) |
| bool | is_chaotic_god (god_type god) |
| bool | is_unavailable_god (god_type god) |
| void | simple_god_message (const char *event, god_type which_deity=you.religion) |
| int | piety_breakpoint (int i) |
| std::string | god_name (god_type which_god, bool long_name=false) |
| std::string | god_name_jiyva (bool second_name=false) |
| god_type | str_to_god (const std::string name, bool exact=true) |
| std::string | get_god_powers (god_type which_god) |
| std::string | get_god_likes (god_type which_god, bool verbose=false) |
| std::string | get_god_dislikes (god_type which_god, bool verbose=false) |
| void | dec_penance (int val) |
| void | dec_penance (god_type god, int val) |
| void | excommunication (god_type new_god=GOD_NO_GOD) |
| void | gain_piety (int pgn, int denominator=1, bool force=false, bool should_scale_piety=true) |
| void | dock_piety (int pietyloss, int penance) |
| void | god_speaks (god_type god, const char *mesg) |
| void | lose_piety (int pgn) |
| void | handle_god_time (void) |
| int | god_colour (god_type god) |
| uint8_t | god_message_altar_colour (god_type god) |
| bool | player_can_join_god (god_type which_god) |
| bool | transformed_player_can_join_god (god_type which_god) |
| void | god_pitch (god_type which_god) |
| int | piety_rank (int piety=-1) |
| int | piety_scale (int piety_change) |
| bool | god_hates_your_god (god_type god, god_type your_god=you.religion) |
| std::string | god_hates_your_god_reaction (god_type god, god_type your_god=you.religion) |
| bool | god_hates_cannibalism (god_type god) |
| bool | god_hates_killing (god_type god, const monster *mon) |
| bool | god_likes_fresh_corpses (god_type god) |
| bool | god_likes_butchery (god_type god) |
| bool | god_likes_spell (spell_type spell, god_type god) |
| bool | god_hates_spell (spell_type spell, god_type god) |
| harm_protection_type | god_protects_from_harm (god_type god, bool actual=true) |
| bool | jiyva_is_dead () |
| bool | fedhas_protects (const monster *target) |
| bool | fedhas_protects_species (int mc) |
| bool | fedhas_neutralises (const monster *target) |
| void | print_sacrifice_message (god_type, const item_def &, piety_gain_t, bool=false) |
| void | nemelex_death_message () |
| bool | tso_unchivalric_attack_safe_monster (const monster *mon) |
| void | mons_make_god_gift (monster *mon, god_type god=you.religion) |
| bool | mons_is_god_gift (const monster *mon, god_type god=you.religion) |
| int | yred_random_servants (unsigned int threshold, bool force_hostile=false) |
| bool | is_undead_slave (const monster *mon) |
| bool | is_yred_undead_slave (const monster *mon) |
| bool | is_orcish_follower (const monster *mon) |
| bool | is_fellow_slime (const monster *mon) |
| bool | is_neutral_plant (const monster *mon) |
| bool | is_follower (const monster *mon) |
| bool | bless_follower (monster *follower=NULL, god_type god=you.religion, bool(*suitable)(const monster *mon)=is_follower, bool force=false) |
| bool | god_hates_attacking_friend (god_type god, const actor *fr) |
| bool | god_hates_attacking_friend (god_type god, int species) |
| bool | god_likes_item (god_type god, const item_def &item) |
| bool | god_likes_items (god_type god) |
| void | get_pure_deck_weights (int weights[]) |
| void | religion_turn_start () |
| void | religion_turn_end () |
| int | get_tension (god_type god=you.religion) |
| int | get_monster_tension (const monster *mons, god_type god=you.religion) |
| bool | do_god_gift (bool prayed_for=false, bool forced=false) |
| std::vector< god_type > | temple_god_list () |
| std::vector< god_type > | nontemple_god_list () |
| std::string | adjust_abil_message (const char *pmsg, bool allow_upgrades=true) |
Variables | |
| const char * | god_gain_power_messages [NUM_GODS][MAX_GOD_ABILITIES] |
| #define HALF_MAX_PIETY (MAX_PIETY / 2) |
| #define MAX_PENANCE 200 |
| #define MAX_PIETY 200 |
| std::string adjust_abil_message | ( | const char * | pmsg, | |
| bool | allow_upgrades = true | |||
| ) |

| bool bless_follower | ( | monster * | follower = NULL, |
|
| god_type | god = you.religion, |
|||
| bool(*)(const monster *mon) | suitable = is_follower, |
|||
| bool | force = false | |||
| ) |

| void dec_penance | ( | god_type | god, | |
| int | val | |||
| ) |

| void dec_penance | ( | int | val | ) |

| bool do_god_gift | ( | bool | prayed_for = false, |
|
| bool | forced = false | |||
| ) |

| void dock_piety | ( | int | pietyloss, | |
| int | penance | |||
| ) |

| void excommunication | ( | god_type | new_god = GOD_NO_GOD |
) |

| bool fedhas_neutralises | ( | const monster * | target | ) |

| bool fedhas_protects | ( | const monster * | target | ) |

| bool fedhas_protects_species | ( | int | mc | ) |

| void gain_piety | ( | int | pgn, | |
| int | denominator = 1, |
|||
| bool | force = false, |
|||
| bool | should_scale_piety = true | |||
| ) |

| std::string get_god_dislikes | ( | god_type | which_god, | |
| bool | verbose = false | |||
| ) |

| std::string get_god_likes | ( | god_type | which_god, | |
| bool | verbose = false | |||
| ) |

| std::string get_god_powers | ( | god_type | which_god | ) |


| void get_pure_deck_weights | ( | int | weights[] | ) |
| int get_tension | ( | god_type | god = you.religion |
) |

| int god_colour | ( | god_type | god | ) |
| bool god_hates_attacking_friend | ( | god_type | god, | |
| int | species | |||
| ) |


| bool god_hates_cannibalism | ( | god_type | god | ) |


| bool god_hates_spell | ( | spell_type | spell, | |
| god_type | god | |||
| ) |


| std::string god_hates_your_god_reaction | ( | god_type | god, | |
| god_type | your_god = you.religion | |||
| ) |

| bool god_likes_butchery | ( | god_type | god | ) |
| bool god_likes_fresh_corpses | ( | god_type | god | ) |


| bool god_likes_items | ( | god_type | god | ) |

| bool god_likes_spell | ( | spell_type | spell, | |
| god_type | god | |||
| ) |

| uint8_t god_message_altar_colour | ( | god_type | god | ) |

| std::string god_name | ( | god_type | which_god, | |
| bool | long_name = false | |||
| ) |

| std::string god_name_jiyva | ( | bool | second_name = false |
) |
| void god_pitch | ( | god_type | which_god | ) |

| harm_protection_type god_protects_from_harm | ( | god_type | god, | |
| bool | actual = true | |||
| ) |

| void god_speaks | ( | god_type | god, | |
| const char * | mesg | |||
| ) |

| void handle_god_time | ( | void | ) |

| bool is_chaotic_god | ( | god_type | god | ) |
| bool is_evil_god | ( | god_type | god | ) |
| bool is_fellow_slime | ( | const monster * | mon | ) |

| bool is_follower | ( | const monster * | mon | ) |

| bool is_good_god | ( | god_type | god | ) |
| bool is_neutral_plant | ( | const monster * | mon | ) |

| bool is_orcish_follower | ( | const monster * | mon | ) |

| bool is_unavailable_god | ( | god_type | god | ) |

| bool is_undead_slave | ( | const monster * | mon | ) |

| bool is_yred_undead_slave | ( | const monster * | mon | ) |

| bool jiyva_is_dead | ( | ) |
| void lose_piety | ( | int | pgn | ) |


| void nemelex_death_message | ( | ) |

| std::vector<god_type> nontemple_god_list | ( | ) |
| int piety_breakpoint | ( | int | i | ) |
| int piety_rank | ( | int | piety = -1 |
) |
| int piety_scale | ( | int | piety_change | ) |

| bool player_can_join_god | ( | god_type | which_god | ) |

| void print_sacrifice_message | ( | god_type | , | |
| const item_def & | , | |||
| piety_gain_t | , | |||
| bool | = false | |||
| ) |

| void religion_turn_end | ( | ) |
| void religion_turn_start | ( | ) |

| void simple_god_message | ( | const char * | event, | |
| god_type | which_deity = you.religion | |||
| ) |

| god_type str_to_god | ( | const std::string | name, | |
| bool | exact = true | |||
| ) |

| std::vector<god_type> temple_god_list | ( | ) |
| bool transformed_player_can_join_god | ( | god_type | which_god | ) |

| bool tso_unchivalric_attack_safe_monster | ( | const monster * | mon | ) |

| int yred_random_servants | ( | unsigned int | threshold, | |
| bool | force_hostile = false | |||
| ) |

| const char* god_gain_power_messages[NUM_GODS][MAX_GOD_ABILITIES] |
1.5.6