rubber hose attacks

Give similar feedback for attacking with a rubber hose as for bullwhip:
the wielder "lashes" rather than "swings".
This commit is contained in:
PatR
2022-02-03 04:42:19 -08:00
parent 8a722ea949
commit fffa9d58b7
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -98,7 +98,8 @@ mswings_verb(
{ {
const char *verb; const char *verb;
int otyp = mwep->otyp, int otyp = mwep->otyp,
lash = (otyp == BULLWHIP), /* (monsters don't actually wield towels, wet or otherwise) */
lash = (objects[otyp].oc_skill == P_WHIP || is_wet_towel(mwep)),
/* some weapons can have more than one strike type; for those, /* some weapons can have more than one strike type; for those,
give a mix of thrust and swing (caller doesn't care either way) */ give a mix of thrust and swing (caller doesn't care either way) */
thrust = ((objects[otyp].oc_dir & PIERCE) != 0 thrust = ((objects[otyp].oc_dir & PIERCE) != 0
+1 -1
View File
@@ -1374,7 +1374,7 @@ hmon_hitmon(
You("%s %s%s", You("%s %s%s",
(obj && (is_shield(obj) (obj && (is_shield(obj)
|| obj->otyp == HEAVY_IRON_BALL)) ? "bash" || obj->otyp == HEAVY_IRON_BALL)) ? "bash"
: (obj && (obj->otyp == BULLWHIP : (obj && (objects[obj->otyp].oc_skill == P_WHIP
|| is_wet_towel(obj))) ? "lash" || is_wet_towel(obj))) ? "lash"
: Role_if(PM_BARBARIAN) ? "smite" : Role_if(PM_BARBARIAN) ? "smite"
: "hit", : "hit",