Potions are a pain in the arse to implement. Not so much the instant effect ones like Healing, but time-limited ones like Might/Confusion and so on. I was tempted to hack in quick counter attributes for each potion on each PC class, but I should really do the full object-orientated method outlined here instead.
That said, I like Mario's suggestion in the comments of just using an array of counters, and it would mean actually getting code out quicker.
No comments:
Post a Comment