]> granicus.if.org Git - nethack/commitdiff
Use appropriate place description for drum of earthquake shake
authorPasi Kallinen <paxed@alt.org>
Wed, 6 Jan 2016 01:17:32 +0000 (03:17 +0200)
committerPasi Kallinen <paxed@alt.org>
Wed, 6 Jan 2016 01:17:36 +0000 (03:17 +0200)
Fix via Dynahack by Tung Nguyen

src/music.c

index 89ff06127fe74c5f5ce3b2eb34d01a5970991ea2..73b855bc13e0b302c217e5af93628ad82da00e1a 100644 (file)
@@ -426,6 +426,23 @@ int force;
         }
 }
 
+const char *
+generic_lvl_desc()
+{
+    if (Is_astralevel(&u.uz))
+        return "astral plane";
+    else if (In_endgame(&u.uz))
+        return "plane";
+    else if (Is_sanctum(&u.uz))
+        return "sanctum";
+    else if (In_sokoban(&u.uz))
+        return "puzzle";
+    else if (In_V_tower(&u.uz))
+        return "tower";
+    else
+        return "dungeon";
+}
+
 /*
  * The player is trying to extract something from his/her instrument.
  */
@@ -537,7 +554,8 @@ struct obj *instr;
             consume_obj_charge(instr, TRUE);
 
             You("produce a heavy, thunderous rolling!");
-            pline_The("entire dungeon is shaking around you!");
+            pline_The("entire %s is shaking around you!",
+                      generic_lvl_desc());
             do_earthquake((u.ulevel - 1) / 3 + 1);
             /* shake up monsters in a much larger radius... */
             awaken_monsters(ROWNO * COLNO);