Thread: locked doors?
View Single Post
Old January 31, 2020, 02:53   #7
eastwind
Apprentice
 
Join Date: Dec 2019
Location: Mexico, undisclosed location
Posts: 79
eastwind is on a distinguished road
if ((player->depth == 0) && (j > 90))
{
msgt(MSG_LOCKPICK_FAIL, "The town resident has securely locked his home's door against adventurous burglers.");
return(false);
}

I learned returning false makes it not keep trying, so you only get the message once. This has to go above

/* Extract the difficulty XXX XXX XXX */
j = i - (j * 4);

/* Always have a small chance of success */
if (j < 2) j = 2;
eastwind is offline   Reply With Quote