summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-30 20:02:49 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-10-30 20:02:49 +0000
commit8011d5b9610bd259faa1604db0a4400edf6a3f40 (patch)
treefbd787e2b06ddab5a0642370f7f8cbcc03a4472b /crawl-ref/source/religion.cc
parentafa3bd5cf599e0d3c220866e3eb67c673ffca1b9 (diff)
downloadcrawl-ref-8011d5b9610bd259faa1604db0a4400edf6a3f40.tar.gz
crawl-ref-8011d5b9610bd259faa1604db0a4400edf6a3f40.zip
Add more holy being-related cleanups.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7315 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r--crawl-ref/source/religion.cc23
1 files changed, 12 insertions, 11 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index 5fa56ac0e2..2d2d2e0986 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -3536,29 +3536,26 @@ static bool _tso_retribution()
{
const god_type god = GOD_SHINING_ONE;
- // holy warriors/cleansing theme
+ // holy beings/cleansing theme
int punishment = random2(7);
switch (punishment)
{
case 0:
case 1:
- case 2: // summon holy warriors (3/7)
+ case 2: // summon holy beings (3/7)
{
bool success = false;
int how_many = 1 + random2(you.experience_level / 5) + random2(3);
for (int i = 0; i < how_many; ++i)
{
- if (coinflip())
- {
- if (summon_daeva(100, god, true, true, true))
- success = true;
- }
- else
+ if (create_monster(
+ mgen_data::hostile_at(
+ summon_any_holy_being(HOLY_BEING_RANDOM),
+ you.pos(), 0, 0, true, god)) != -1)
{
- if (summon_angel(100, god, true, true, true))
- success = true;
+ success = true;
}
}
@@ -3650,8 +3647,12 @@ static bool _zin_retribution()
for (int i = 0; i < how_many; ++i)
{
- if (summon_angel(100, god, true, true, true))
+ if (create_monster(
+ mgen_data::hostile_at(MONS_ANGEL,
+ you.pos(), 0, 0, true, god)) != -1)
+ {
success = true;
+ }
}
simple_god_message(success ? " sends the divine host to punish "