wizkit messages for gold
This prevents wizkit items that aren't objects from having their names printed on the screen if they are gold pieces, traps, or similar. (Note that the only one of those that actually works is gold. For some reason if you put "a hole" (for instance) in the wizkit, the hole will not get created, even though it will, even on the stairs, if the wizard wishes for it in-game.)
This commit is contained in:
@@ -4035,12 +4035,12 @@ retry:
|
||||
* has been denied. Wishing for "nothing" requires a separate
|
||||
* value to remain distinct.
|
||||
*/
|
||||
otmp = readobjnam(buf, ¬hing);
|
||||
otmp = readobjnam(buf, ¬hing, TRUE);
|
||||
if (!otmp) {
|
||||
pline("Nothing fitting that description exists in the game.");
|
||||
if (++tries < 5) goto retry;
|
||||
pline(thats_enough_tries);
|
||||
otmp = readobjnam((char *)0, (struct obj *)0);
|
||||
otmp = readobjnam((char *)0, (struct obj *)0, TRUE);
|
||||
if (!otmp) return; /* for safety; should never happen */
|
||||
} else if (otmp == ¬hing) {
|
||||
/* explicitly wished for "nothing", presumeably attempting
|
||||
|
||||
Reference in New Issue
Block a user