]> granicus.if.org Git - nethack/commitdiff
more golem stone-to-flesh
authornethack.allison <nethack.allison>
Sun, 9 Mar 2003 22:24:19 +0000 (22:24 +0000)
committernethack.allison <nethack.allison>
Sun, 9 Mar 2003 22:24:19 +0000 (22:24 +0000)
Since all golem statues are stone, make them all become flesh.

doc/fixes35.0
src/trap.c

index 18e9013d3ffa6a95621e5e67f11c52639cceaac6..5444a94d77f031f7542f7722d99120016bb18d2a 100644 (file)
@@ -10,7 +10,7 @@ Never say "It moves only reluctantly"
 expert fireball/cone of cold could not target a monster seen only with
        infravision or ESP
 display "lotus juice", not "lotu juice" for the fruit juice name
-statue of Stone golem hit with stone-to-flesh spell animates as flesh golem
+statue of any golem hit with stone-to-flesh spell animates as flesh golem
 
 
 Platform- and/or Interface-Specific Fixes
index a8febf41e8b4df50a6a64e1976197d6ad787e435..c9f71b5c3830b303d48d7ae2260395d585bd617e 100644 (file)
@@ -417,8 +417,8 @@ int *fail_reason;
            if (mon && mon->mtame && !mon->isminion)
                wary_dog(mon, TRUE);
        } else {
-           /* statue of Stone golem hit with Stone-to-flesh becomes flesh golem */
-           if (statue->corpsenm == PM_STONE_GOLEM && cause == ANIMATE_SPELL)
+           /* statue of any golem hit with stone-to-flesh becomes flesh golem */
+           if (is_golem(&mons[statue->corpsenm]) && cause == ANIMATE_SPELL)
                mptr = &mons[PM_FLESH_GOLEM];
            else
                mptr = &mons[statue->corpsenm];
@@ -454,8 +454,10 @@ int *fail_reason;
        if (mon->m_ap_type) seemimic(mon);
        else mon->mundetected = FALSE;
        if ((x == u.ux && y == u.uy) || cause == ANIMATE_SPELL) {
+           const char *comes_to_life = nonliving(mon->data) ?
+                                       "moves" : "comes to life"; 
            pline_The("statue %s!",
-               canspotmon(mon) ? "comes to life" : "disappears");
+               canspotmon(mon) ? comes_to_life : "disappears");
                if (historic) {
                    You_feel("guilty that the historic statue is now gone.");
                    adjalign(-1);