more #H4407 - #loot vs cockatrice corpse
Previous fix was 'me' to eat from inventory without checking current location for edible items. The report describing the need for that also mentioned that you could #loot while blind and without gloves and not touch any objects except for the container you pick to loot. This adds a corpse touch check, plus `m#loot' to skip floor containers and go directly to using #loot for adjacent saddled creature. That, as well as the open command, will reveal adjacent container in some circumstances but I'm going to pretend that that doesn't matter. doloot() has turned into spaghetti. We should probably add #unsaddle or something of the sort and return #loot to container-access only.
This commit is contained in:
@@ -3455,6 +3455,9 @@ int NDECL((*cmd_func));
|
||||
an item on floor or in invent; 'm' skips picking from floor
|
||||
(ie, inventory only) rather than request use of menu operation */
|
||||
|| cmd_func == doeat || cmd_func == dosacrifice || cmd_func == doapply
|
||||
/* 'm' for removing saddle from adjacent monster without checking
|
||||
for containers at <u.ux,u.uy> */
|
||||
|| cmd_func == doloot
|
||||
/* 'm' prefix allowed for some extended commands */
|
||||
|| cmd_func == doextcmd || cmd_func == doextlist)
|
||||
return TRUE;
|
||||
|
||||
Reference in New Issue
Block a user