]> granicus.if.org Git - nethack/commitdiff
Balsa wands break easily
authorPasi Kallinen <paxed@alt.org>
Sat, 28 Mar 2015 15:20:57 +0000 (17:20 +0200)
committerPasi Kallinen <paxed@alt.org>
Sat, 28 Mar 2015 15:20:57 +0000 (17:20 +0200)
src/apply.c

index ae7565f17b9b6ff61b8c226e542bb2a3b422066c..9bba1518698a8db4b3a1eee724c783011e6850d4 100644 (file)
@@ -2891,6 +2891,7 @@ do_break_wand(obj)
     boolean fillmsg = FALSE;
     int expltype = EXPL_MAGICAL;
     char confirm[QBUFSZ], buf[BUFSZ];
+    boolean is_fragile = (!strcmp(OBJ_DESCR(objects[obj->otyp]), "balsa"));
 
     if (yn(safe_qbuf(confirm, "Are you really sure you want to break ", "?",
                     obj, yname, ysimple_name, "the wand")) == 'n')
@@ -2899,7 +2900,7 @@ do_break_wand(obj)
     if (nohands(youmonst.data)) {
        You_cant("break %s without hands!", yname(obj));
        return 0;
-    } else if (ACURR(A_STR) < 10) {
+    } else if (ACURR(A_STR) < (is_fragile ? 5 : 10)) {
        You("don't have the strength to break %s!", yname(obj));
        return 0;
     }