diff options
author | abrahamwl <abrahamwl@gmail.com> | 2009-10-30 18:06:32 -0700 |
---|---|---|
committer | Steven Noonan <steven@uplinklabs.net> | 2009-10-30 21:37:19 -0700 |
commit | ef456d5cbf1a159010d28f0ab5bd9ef3e35143c7 (patch) | |
tree | 2c4da965a411cf78b4c5a58fdd7546e435fd3f2b /crawl-ref/source/beam.cc | |
parent | 9e0fc66a0d3b9bdf502d0726828ba1ed89302816 (diff) | |
download | crawl-ref-ef456d5cbf1a159010d28f0ab5bd9ef3e35143c7.tar.gz crawl-ref-ef456d5cbf1a159010d28f0ab5bd9ef3e35143c7.zip |
Combine mons_is_sleeping(monsters *m) into monsters::asleep()
...and replace all references to mons_is_sleeping with asleep.
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r-- | crawl-ref/source/beam.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index c77a23f447..c129785ddc 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -4368,7 +4368,7 @@ void bolt::enchantment_affect_monster(monsters* mon) if (you.religion == GOD_BEOGH && mons_species(mon->type) == MONS_ORC - && mons_is_sleeping(mon) && !player_under_penance() + && mon->asleep() && !player_under_penance() && you.piety >= piety_breakpoint(2) && mons_near(mon)) { hit_woke_orc = true; @@ -4652,7 +4652,7 @@ void bolt::affect_monster(monsters* mon) } if (you.religion == GOD_BEOGH && mons_species(mon->type) == MONS_ORC - && mons_is_sleeping(mon) && YOU_KILL(thrower) + && mon->asleep() && YOU_KILL(thrower) && !player_under_penance() && you.piety >= piety_breakpoint(2) && mons_near(mon)) { |