diff options
author | Neil Moore <neil@s-z.org> | 2012-12-16 21:06:07 -0500 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2012-12-16 22:42:27 -0500 |
commit | 251c4eefad2ecb921549c0920a1de381aa801ce7 (patch) | |
tree | 943d7bfcf88e0a0b360cfcd0ae6c64312fecd954 /crawl-ref/source/misc.h | |
parent | 64abc101d999d4d937e519d7acf787a5da99be88 (diff) | |
download | crawl-ref-251c4eefad2ecb921549c0920a1de381aa801ce7.tar.gz crawl-ref-251c4eefad2ecb921549c0920a1de381aa801ce7.zip |
Refactor amulet and equipment-checking functions.
Move most of the player_* functions related to amulets, and all of the
player_effect_* functions, into class actor, with some overridden in
class player. Likewise, move player_equip(), player_equip_ego_type(),
and scan_artefacts() into class player, with pure virtuals in class
actor and corresponding implementations in class monster. Also remove a
few now-redundant functions.
This commit doesn't actually make any kinds of equipment have an effect
on monsters that didn't already, but it should be much easier to do so
now, since the relevant methods are there now. Monster gourmand,
conservation, faith don't necessarily make sense, but those methods are
in actor anyway for consistency with the rest.
Fixes #6172. We now check for innate gourmand (etc.) without reference
to suppression.
Diffstat (limited to 'crawl-ref/source/misc.h')
-rw-r--r-- | crawl-ref/source/misc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/misc.h b/crawl-ref/source/misc.h index 90dc66ddd3..caa11ab142 100644 --- a/crawl-ref/source/misc.h +++ b/crawl-ref/source/misc.h @@ -125,6 +125,7 @@ void swap_with_monster(monster* mon_to_swap); void wear_id_type(item_def &item); void maybe_id_ring_TC(); void maybe_id_ring_hunger(); +void maybe_id_clarity(); void maybe_id_resist(beam_type flavour); bool maybe_id_weapon(item_def &item, const char *msg = 0); |