diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-26 14:21:54 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-26 14:21:54 +0000 |
commit | 7dd20bb5af17f48ca9a2ff5e4d63cd494e0498de (patch) | |
tree | f1e8c3db06ac0b2f1bacb6b219b63a0ada727db6 /crawl-ref | |
parent | d6db41124871b21f6da082e80d976a71495b6996 (diff) | |
download | crawl-ref-7dd20bb5af17f48ca9a2ff5e4d63cd494e0498de.tar.gz crawl-ref-7dd20bb5af17f48ca9a2ff5e4d63cd494e0498de.zip |
Make mummy death curses only happen if the mummy wasn't summoned.
(BR 2002296)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6148 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/monstuff.cc | 45 | ||||
-rw-r--r-- | crawl-ref/source/newgame.cc | 14 |
2 files changed, 30 insertions, 29 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index 42c67aa419..e9397e4982 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -1201,27 +1201,7 @@ void monster_die(monsters *monster, killer_type killer, int i, bool silent) break; } - if (monster->type == MONS_MUMMY) - { - if (YOU_KILL(killer) && killer != KILL_YOU_CONF) - curse_an_item(true); - } - else if (monster->type == MONS_GUARDIAN_MUMMY - || monster->type == MONS_GREATER_MUMMY - || monster->type == MONS_MUMMY_PRIEST) - { - if (YOU_KILL(killer) && killer != KILL_YOU_CONF) - { - mpr("You feel extremely nervous for a moment...", - MSGCH_MONSTER_SPELL); - - miscast_effect( SPTYP_NECROMANCY, - 3 + (monster->type == MONS_GREATER_MUMMY) * 8 - + (monster->type == MONS_MUMMY_PRIEST) * 5, - random2avg(88, 3), 100, "a mummy death curse" ); - } - } - else if (monster->type == MONS_BORIS && !in_transit) + if (monster->type == MONS_BORIS && !in_transit) { // XXX: Actual blood curse effect for Boris? -- bwr @@ -1237,6 +1217,29 @@ void monster_die(monsters *monster, killer_type killer, int i, bool silent) // creation again. -- bwr you.unique_creatures[ monster->type ] = false; } + else if (!mons_is_summoned(monster)) + { + if (monster->type == MONS_MUMMY) + { + if (YOU_KILL(killer) && killer != KILL_YOU_CONF) + curse_an_item(true); + } + else if (monster->type == MONS_GUARDIAN_MUMMY + || monster->type == MONS_GREATER_MUMMY + || monster->type == MONS_MUMMY_PRIEST) + { + if (YOU_KILL(killer) && killer != KILL_YOU_CONF) + { + mpr("You feel extremely nervous for a moment...", + MSGCH_MONSTER_SPELL); + + miscast_effect( SPTYP_NECROMANCY, + 3 + (monster->type == MONS_GREATER_MUMMY) * 8 + + (monster->type == MONS_MUMMY_PRIEST) * 5, + random2avg(88, 3), 100, "a mummy death curse" ); + } + } + } if (killer != KILL_RESET && killer != KILL_DISMISSED) { diff --git a/crawl-ref/source/newgame.cc b/crawl-ref/source/newgame.cc index 06e30a2c70..b7483afdcc 100644 --- a/crawl-ref/source/newgame.cc +++ b/crawl-ref/source/newgame.cc @@ -3411,18 +3411,16 @@ spec_query: cprintf(EOL); textcolor( BROWN ); - + cprintf(EOL EOL); if (you.char_class == JOB_UNKNOWN) { - cprintf(EOL - "SPACE - Choose class first; * - Random species" EOL + cprintf("Space - Choose class first; * - Random species" EOL "! - Random character; # - Good random character; X - Quit" EOL); } else { - cprintf(EOL - "* - Random; + - Good random; " + cprintf("* - Random; + - Good random; " "Bksp - Back to class selection; X - Quit" EOL); } @@ -3436,7 +3434,7 @@ spec_query: } if (_prev_startup_options_set()) { - cprintf("%sTAB - %s", + cprintf("%sTab - %s", prevraceok? "; " : "", _prev_startup_description().c_str()); } @@ -3661,7 +3659,7 @@ job_query: if (you.species == SP_UNKNOWN) { cprintf(EOL - "SPACE - Choose species first; * - Random class; " + "Space - Choose species first; * - Random class; " "+ - Good random" EOL "! - Random character; # - Good random character; X - Quit" EOL); @@ -3683,7 +3681,7 @@ job_query: } if (_prev_startup_options_set()) { - cprintf("%sTAB - %s", + cprintf("%sTab - %s", prevclassok? "; " : "", _prev_startup_description().c_str()); } |