Lockpicking limit choices to pick-holding PCs

This commit is contained in:
2025-03-21 10:36:57 -05:00
parent 629d92601f
commit 1702f795cf
5 changed files with 52 additions and 17 deletions

View File

@@ -1145,6 +1145,8 @@ void pick_lock(location where,short pc_num) {
terrain = univ.town->terrain(where.x,where.y);
cInvenSlot which_item = univ.party[pc_num].has_abil_equip(eItemAbil::LOCKPICKS);
// This should no longer ever happen:
if(!which_item) {
add_string_to_buf(" Need lockpick equipped.");
return;