paranoid_confirmation [expanded user patch] (trunk only; 2 of 2)
[Short writeup; see 'cvs log' of flag.h or options.c for the long one.]
This is a reworking of user contributed patch known as Paranoid_Quit.
Add a new compound option, paranoid_confirmation, accepting a space
separated list of values "quit die attack pray Remove"; default is "pray".
paranoid:quit - yes vs y for "really quit?" and "enter explore mode?"
paranoid:die - yes vs y for "die?" in explore mode or wizard mode
paranoid:attack - yes vs y for "really attack <peacful monster>?"
paranoid:pray - y to pray; supersedes prayconfirm boolean; on by default
paranoid:Remove - always issue an inventory prompt for 'R' an 'T', even
when only one applicable item is currently worn.
This commit is contained in:
@@ -1648,9 +1648,8 @@ int
|
||||
dopray()
|
||||
{
|
||||
/* Confirm accidental slips of Alt-P */
|
||||
if (flags.prayconfirm)
|
||||
if (yn("Are you sure you want to pray?") == 'n')
|
||||
return 0;
|
||||
if (ParanoidPray && yn("Are you sure you want to pray?") != 'y')
|
||||
return 0;
|
||||
|
||||
u.uconduct.gnostic++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user