diff options
author | Neil Moore <neil@s-z.org> | 2014-07-05 21:58:50 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-07-05 21:58:50 -0400 |
commit | 359a1cb40b85dee48bc7f34a4d096bfb457dc7ad (patch) | |
tree | 6029c407a22dd1e85be546403c9774a9de568a6b | |
parent | 321f440eda7bcfdd9bd292f57ef2c3df78115033 (diff) | |
download | crawl-ref-359a1cb40b85dee48bc7f34a4d096bfb457dc7ad.tar.gz crawl-ref-359a1cb40b85dee48bc7f34a4d096bfb457dc7ad.zip |
Check genus in deporkalation.
Rather than listing all the porcine monster types.
-rw-r--r-- | crawl-ref/source/mon-death.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/crawl-ref/source/mon-death.cc b/crawl-ref/source/mon-death.cc index 1c5485db15..7bb75ee4a1 100644 --- a/crawl-ref/source/mon-death.cc +++ b/crawl-ref/source/mon-death.cc @@ -2995,12 +2995,8 @@ void hogs_to_humans() for (monster_iterator mi; mi; ++mi) { - if (!(mi->type == MONS_HOG - || mi->type == MONS_HELL_HOG - || mi->type == MONS_HOLY_SWINE)) - { + if (mons_genus(mi->type) != MONS_HOG) continue; - } if (!mi->props.exists("kirke_band") && !mi->props.exists(ORIG_MONSTER_KEY)) |