Skip to content

Commit

Permalink
Don't drop aklys on the floor due to slippery fingers
Browse files Browse the repository at this point in the history
Aklyses uniquely have a tether attached to one's wrist, which would stay
secure even when one's fingers are slippery. Therefore, it doesn't make
for the weapon to be dropped completely, tether and all, when Glib.

However, the game doesn't have a way to model a weapon that's on the
floor at your feet but still attached to your arm. (Technically the
uball and uchain code does do this sort of thing already, but it can't
be used here - what if you have an aklys slipping out of your grasp and
are punished at the same time?) So the next best thing is to give
aklyses immunity to slipping from one's hand.
  • Loading branch information
copperwater authored and paxed committed Apr 16, 2023
1 parent 83ed647 commit fe39a2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/do_wear.c
Expand Up @@ -2421,7 +2421,7 @@ glibr(void)
dropx(otmp);
}
otmp = uwep;
if (otmp && !welded(otmp)) {
if (otmp && otmp->otyp != AKLYS && !welded(otmp)) {
long savequan = otmp->quan;

/* nice wording if both weapons are the same type */
Expand Down

0 comments on commit fe39a2b

Please sign in to comment.