#1011 closed bug (fixed (in master))
Gain-one-lose-one potions behave funny on failure
Reported by: | MarbleDice | Owned by: | MarbleDice |
---|---|---|---|
Milestone: | 3.1.2 beta | Keywords: | items |
Cc: |
Description
If they fail to drain a stat (because the randomly selected stat is at a minimum), they do not raise a stat, the potion is not consumed, no message is generated, and the flavor remains unknown.
Change History (3)
comment:1 Changed 10 years ago by MarbleDice
comment:2 Changed 10 years ago by MarbleDice
- Resolution set to fixed
- Status changed from new to closed
[1189cd8] (SVN r1773). The potions behave thusly:
Attempt to lower a random stat (not the one the potion raises), and if successful identify the kind and attempt to raise the appropriate stat.
The potion/turn is always consumed.
comment:3 Changed 10 years ago by MarbleDice
- Milestone changed from Triage to 3.1.2 beta
Note: See
TracTickets for help on using
tickets.
The two obvious solutions would be:
1) Attempt to raise the designated stat, pick a random stat and attempt to lower it.
2) Pick a random stat, attempt to lower it, and if successful attempt to raise the designated stat.
I think I like the second one better, but practically I don't think it makes much difference.