issues
search
butterscotchstallion
/
SpiffyRPG
A gluten-free IRC RPG
MIT License
3
stars
1
forks
source link
Using items
#100
Closed
butterscotchstallion
closed
8 years ago
butterscotchstallion
commented
8 years ago
Using an item
If
can_use
is
True
then check
item.effects
and apply them
If
charges
is >= 1, then apply effects
If
charges
is
0
then the item cannot be used
In the case of a
Potion
item type, the effect will be some kind of health point restoration which instantly restores HP through the effects system
Health potions can still be used at full hp but the regeneration mechanism will gradually reduce it back to the max
Item charges
Each item has a variable number of charges which can be restored through a variety of different scenarios
Currently after each battle, the winner will gain a charge on a random potion they have if it has no charges left
Using an item
can_use
isTrue
then checkitem.effects
and apply themcharges
is >= 1, then apply effectscharges
is0
then the item cannot be usedPotion
item type, the effect will be some kind of health point restoration which instantly restores HP through the effects systemItem charges