handedness fix

This commit is contained in:
PatR
2024-02-05 13:06:22 -08:00
parent 163fb7613f
commit 3466575fa1
+6 -4
View File
@@ -482,12 +482,14 @@ steal(struct monst* mtmp, char* objnambuf)
ostuck = ((otmp->cursed && otmp->owornmask) ostuck = ((otmp->cursed && otmp->owornmask)
/* nymphs can steal rings from under /* nymphs can steal rings from under
cursed weapon but animals can't */ cursed weapon but animals can't */
|| (otmp == uright && welded(uwep)) || (otmp == RING_ON_PRIMARY && welded(uwep))
|| (otmp == uleft && welded(uwep) && bimanual(uwep))); || (otmp == RING_ON_SECONDARY && welded(uwep)
&& bimanual(uwep)));
if (ostuck || can_carry(mtmp, otmp) == 0) { if (ostuck || can_carry(mtmp, otmp) == 0) {
static const char *const how[] = { "steal", "snatch", "grab", static const char *const how[] = {
"take" }; "steal", "snatch", "grab", "take"
};
cant_take: cant_take:
pline("%s tries to %s %s%s but gives up.", Monnambuf, pline("%s tries to %s %s%s but gives up.", Monnambuf,
ROLL_FROM(how), ROLL_FROM(how),