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:
@@ -205,7 +205,7 @@ struct obj *wep; /* uwep for attack(), null for kick_monster() */
|
||||
}
|
||||
if (canspotmon(mtmp)) {
|
||||
Sprintf(qbuf, "Really attack %s?", mon_nam(mtmp));
|
||||
if (yn(qbuf) != 'y') {
|
||||
if (!paranoid_query(ParanoidHit, qbuf)) {
|
||||
context.move = 0;
|
||||
return(TRUE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user