add pickup_thrown option (trunk only)
This patch by <email deleted> was released when 3.4.1 was current and has been incorporated into slash'em. It is extremely useful while using ranged weapons. When both autopickup and pickup_thrown are enabled, walking across previously thrown objects will pick them up even if they don't match the current pickup_types list. [See cvs log for patchlevel.h for longer description.]
This commit is contained in:
@@ -38,7 +38,7 @@ struct flag {
|
||||
boolean null; /* OK to send nulls to the terminal */
|
||||
boolean perm_invent; /* keep full inventories up until dismissed */
|
||||
boolean pickup; /* whether you pickup or move and look */
|
||||
|
||||
boolean pickup_thrown; /* auto-pickup items you threw */
|
||||
boolean pushweapon; /* When wielding, push old weapon into second slot */
|
||||
boolean rest_on_space; /* space means rest */
|
||||
boolean safe_dog; /* give complete protection to the dog */
|
||||
|
||||
@@ -99,7 +99,7 @@ struct obj {
|
||||
#endif
|
||||
Bitfield(greased,1); /* covered with grease */
|
||||
Bitfield(nomerge,1); /* set temporarily to prevent merging */
|
||||
/* 1 free bit */
|
||||
Bitfield(was_thrown,1); /* thrown by hero since last picked up */
|
||||
|
||||
Bitfield(in_use,1); /* for magic items before useup items */
|
||||
Bitfield(bypass,1); /* mark this as an object to be skipped by bhito() */
|
||||
|
||||
Reference in New Issue
Block a user