]> granicus.if.org Git - nethack/commitdiff
monk vs shuriken
authorPatR <rankin@nethack.org>
Mon, 29 Feb 2016 01:42:12 +0000 (17:42 -0800)
committerPatR <rankin@nethack.org>
Mon, 29 Feb 2016 01:42:12 +0000 (17:42 -0800)
One entry among many in #H4216:  make shuriken be a pre-discovered
item for monk role.  The word "shuriken" comes from Japanese and
martial-arts monk is primarily Chinese, but shuriken/throwing-star
is a martial-arts type of weapon and monks get a multi-shot bonus
for it (even though they can't advance its skill beyond basic...).

doc/fixes36.1
src/u_init.c

index dc0c8e9af1bf613a0db32047f61a3e57b61ab2cb..a45bffae8ab9f861446f08a1c0928e2d21275216 100644 (file)
@@ -218,7 +218,8 @@ allow knife and stiletto as possible tin opening tools
 wizard mode #wizintrinsic command
 additional tribute passages for The Colour of Magic, The Light Fantastic,
        Equal Rites, Mort, Sourcery, Wyrd Sisters, Pyramids, Guards! Guards!,
-       Eric, Moving Pictures, Reaper Man, Snuff, and Raising Steam
+       Eric, Moving Pictures, Reaper Man, Witches Abroad, Snuff, and
+       Raising Steam
 compile-time options SIMPLE_MAIL and SERVER_ADMIN_MSG for public server use
 database entries for Cleaver, Sunsword, Frost and Fire brands, and
        polymorph trap
@@ -230,6 +231,7 @@ add extended command #kick
 when choosing an inventory item and '-' for bare-hands/fingers/no-ammo is a
        choice, include that in the inventory menu if player types '?' or '*'
 feedback from probing of long worm now includes number of segments it has
+monk starts with 'shuriken' pre-discovered (despite language issue...)
 
 
 Platform- and/or Interface-Specific New Features
index 50e90d9d7fb04c4a4ae3ec0c76601c56696ae10f..34e3b4cc171bf961f088a176b8e23fd239ac10af 100644 (file)
@@ -701,31 +701,25 @@ u_init()
         ini_inv(Knight);
         knows_class(WEAPON_CLASS);
         knows_class(ARMOR_CLASS);
-        /* give knights chess-like mobility
-         * -- idea from wooledge@skybridge.scl.cwru.edu */
+        /* give knights chess-like mobility--idea from wooledge@..cwru.edu */
         HJumping |= FROMOUTSIDE;
         skill_init(Skill_K);
         break;
-    case PM_MONK:
-        switch (rn2(90) / 30) {
-        case 0:
-            Monk[M_BOOK].trotyp = SPE_HEALING;
-            break;
-        case 1:
-            Monk[M_BOOK].trotyp = SPE_PROTECTION;
-            break;
-        case 2:
-            Monk[M_BOOK].trotyp = SPE_SLEEP;
-            break;
-        }
+    case PM_MONK: {
+        static short M_spell[] = { SPE_HEALING, SPE_PROTECTION, SPE_SLEEP };
+
+        Monk[M_BOOK].trotyp = M_spell[rn2(90) / 30]; /* [0..2] */
         ini_inv(Monk);
         if (!rn2(5))
             ini_inv(Magicmarker);
         else if (!rn2(10))
             ini_inv(Lamp);
         knows_class(ARMOR_CLASS);
+        /* sufficiently martial-arts oriented item to ignore language issue */
+        knows_object(SHURIKEN);
         skill_init(Skill_Mon);
         break;
+    }
     case PM_PRIEST:
         ini_inv(Priest);
         if (!rn2(10))