Apply the new ground_level method.
[crawl.git] / crawl-ref / source / goditem.h
blob0b2814794b4b88c83c29ce30a1cddb6715debdcc
1 #ifndef GODITEM_H
2 #define GODITEM_H
4 #include "enum.h"
5 #include "externs.h"
7 #include "player.h"
9 bool is_holy_item(const item_def& item);
10 bool is_potentially_unholy_item(const item_def& item);
11 bool is_unholy_item(const item_def& item);
12 bool is_potentially_evil_item(const item_def& item);
13 bool is_corpse_violating_item(const item_def& item);
14 bool is_evil_item(const item_def& item);
15 bool is_unclean_item(const item_def& item);
16 bool is_chaotic_item(const item_def& item);
17 bool is_potentially_hasty_item(const item_def& item);
18 bool is_hasty_item(const item_def& item);
19 bool is_poisoned_item(const item_def& item);
20 bool is_holy_discipline(int discipline);
21 bool is_evil_discipline(int discipline);
22 bool is_holy_spell(spell_type spell, god_type god = GOD_NO_GOD);
23 bool is_unholy_spell(spell_type spell, god_type god = GOD_NO_GOD);
24 bool is_corpse_violating_spell(spell_type spell, god_type = GOD_NO_GOD);
25 bool is_evil_spell(spell_type spell, god_type god = GOD_NO_GOD);
26 bool is_unclean_spell(spell_type spell, god_type god = GOD_NO_GOD);
27 bool is_chaotic_spell(spell_type spell, god_type god = GOD_NO_GOD);
28 bool is_hasty_spell(spell_type spell, god_type god = GOD_NO_GOD);
29 bool is_any_spell(spell_type spell, god_type god = GOD_NO_GOD);
30 bool is_spellbook_type(const item_def& item, bool book_or_rod,
31 bool (*suitable)(spell_type spell, god_type god) =
32 is_any_spell,
33 god_type god = you.religion);
34 bool is_holy_spellbook(const item_def& item);
35 bool is_unholy_spellbook(const item_def& item);
36 bool is_evil_spellbook(const item_def& item);
37 bool is_unclean_spellbook(const item_def& item);
38 bool is_chaotic_spellbook(const item_def& item);
39 bool is_hasty_spellbook(const item_def& item);
40 bool is_corpse_violating_spellbook(const item_def & item);
41 bool god_hates_spellbook(const item_def& item);
42 bool is_holy_rod(const item_def& item);
43 bool is_unholy_rod(const item_def& item);
44 bool is_evil_rod(const item_def& item);
45 bool is_unclean_rod(const item_def& item);
46 bool is_chaotic_rod(const item_def& item);
47 bool is_hasty_rod(const item_def& item);
48 bool is_corpse_violating_rod(const item_def & item);
49 bool god_hates_rod(const item_def& item);
50 conduct_type good_god_hates_item_handling(const item_def &item);
51 conduct_type god_hates_item_handling(const item_def &item);
53 // NOTE: As of now, these two functions only say if a god won't give a
54 // spell/school when giving a gift.
55 bool god_dislikes_spell_type(spell_type spell, god_type god = you.religion);
56 bool god_dislikes_spell_discipline(int discipline, god_type god = you.religion);
57 #endif