Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#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


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 11 years ago by MarbleDice

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.

comment:2 Changed 11 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 11 years ago by MarbleDice

  • Milestone changed from Triage to 3.1.2 beta
Note: See TracTickets for help on using tickets.