1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-07-28 16:32:27 +01:00

Merge pull request #2110 from mason-arteles/patch-1

Bugfix: lock.c
This commit is contained in:
Chris-plus-alphanumericgibberish 2023-05-08 19:38:24 -04:00 committed by GitHub
commit 38362856e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -431,7 +431,7 @@ pick_lock(pick_p) /* pick a lock with a given object */
return MOVE_CANCELLED;
}
if(!freehand()){
You_cant("hold %s -- you have no free hands!", doname(pick));
You_cant("hold %s -- you have no free %s!", doname(pick), makeplural(body_part(HAND)));
return MOVE_CANCELLED;
}
@ -863,7 +863,7 @@ int x, y;
return MOVE_CANCELLED;
}
if(!freehand()){
You_cant("open anything -- you have no free hands!");
You_cant("open anything -- you have no free %s!", makeplural(body_part(HAND)));
return MOVE_CANCELLED;
}
@ -976,7 +976,7 @@ doclose() /* try to close a door */
return MOVE_CANCELLED;
}
if(!freehand()){
You_cant("close anything -- you have no free hands!");
You_cant("close anything -- you have no free %s!", makeplural(body_part(HAND)));
return MOVE_CANCELLED;
}