Add 'pickup_stolen' option
Add pickup_stolen option to autopick items stolen from you by a nymph or monkey, even if they don't match your normal autopickup settings. Replace was_dropped, was_thrown with a 2-bit bitfield that can contain values LOST_DROPPED, LOST_THROWN, and LOST_STOLEN (or 0), since they should all be mutually exclusive anyway as they track the most recent way the item left the hero's inventory. [Rebase/merge conflict fixed up. PR]
This commit is contained in:
@@ -534,6 +534,9 @@ static int optfn_##a(int, int, boolean, char *, char *);
|
||||
NHOPTC(pickup_burden, Advanced, 20, opt_in, set_in_game,
|
||||
No, Yes, No, Yes, NoAlias,
|
||||
"maximum burden picked up before prompt")
|
||||
NHOPTB(pickup_stolen, Behavior, 0, opt_out, set_in_game,
|
||||
On, Yes, No, No, NoAlias, &flags.pickup_stolen, Term_False,
|
||||
"autopickup thrown items")
|
||||
NHOPTB(pickup_thrown, Behavior, 0, opt_out, set_in_game,
|
||||
On, Yes, No, No, NoAlias, &flags.pickup_thrown, Term_False,
|
||||
"autopickup thrown items")
|
||||
|
||||
Reference in New Issue
Block a user