hag icon indicating copy to clipboard operation
hag copied to clipboard

Support potion warnings

Open JohnathonNow opened this issue 5 years ago • 3 comments

Right now you can attempt to identify a potion. I believe that if you ever drink a negative potion for a stat, then if you successfully identify a future negative potion for that same stat, the game should display some flavortext along the lines of "Something tells you not to drink this."

JohnathonNow avatar Oct 01 '20 05:10 JohnathonNow

can u please give example of some potions

ritamganguli avatar Oct 01 '20 05:10 ritamganguli

https://github.com/a3qz/hag/blob/7eaeaf5c0a01260ce606f40aaac880bbee5ddbcf/src/logic/item.c#L102-L195

Basically the game has Strength, Dexterity, Intelligence, Luck, Health, and Experience potions. Each potion can be either positive or negative. For example, you could drink a potion that adds 3 to strength, or one that removes 4 intelligence.

JohnathonNow avatar Oct 01 '20 15:10 JohnathonNow

@a3qz does it make sense to move potions out of the item module into their own? Then we can add things like a bitset representing what kinds of potions have been identified/consumed.

JohnathonNow avatar Oct 08 '20 04:10 JohnathonNow