Twoweapon update

Make two-weapon combat dependant on the hero's current form.
Adds the macro could_twoweap() and performs some housekeeping
in monst.c.
This commit is contained in:
kmhugo
2002-02-13 17:31:07 +00:00
parent 4497d8e4e3
commit 38e91a320d
3 changed files with 63 additions and 62 deletions

View File

@@ -407,8 +407,8 @@ can_twoweapon()
struct obj *otmp;
#define NOT_WEAPON(obj) (!is_weptool(obj) && obj->oclass != WEAPON_CLASS)
if (Upolyd)
You("can only use two weapons in your normal form.");
if (!could_twoweap(youmonst.data))
You_cant("use two weapons in your current form.");
else if (!uwep || !uswapwep)
Your("%s%s%s empty.", uwep ? "left " : uswapwep ? "right " : "",
body_part(HAND), (!uwep && !uswapwep) ? "s are" : " is");