From a0de356f3d007e58152f257212ed13d8b44fdfc0 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Sun, 1 Nov 2009 10:10:02 -0600 Subject: Move checks for a player or monster's being chaotic into another convenience function in the actor interface. --- crawl-ref/source/player.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/player.cc') diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 299ae43219..7bd1d6dc25 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -42,8 +42,8 @@ #include "macro.h" #include "message.h" #include "misc.h" -#include "monstuff.h" #include "mon-util.h" +#include "monstuff.h" #include "mutation.h" #include "notes.h" #include "ouch.h" @@ -6739,6 +6739,11 @@ bool player::is_unholy() const return (holi == MH_UNDEAD || holi == MH_DEMONIC); } +bool player::is_chaotic() const +{ + return (transform_changed_physiology()); +} + // Output active level of player mutation. // Might be lower than real mutation for non-"Alive" Vampires. int player_mutation_level(mutation_type mut) -- cgit v1.2.3-54-g00ecf