monk vs shuriken

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...).
This commit is contained in:
PatR
2016-02-28 17:42:12 -08:00
parent 850ed0cba6
commit be084392d5
2 changed files with 11 additions and 15 deletions

View 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))