Hi,
I’ve got Item() Class wich stores item id name and description and i have ConsumableItem() with extends Item().
This second item is supoused to be items wich after an use may be deleted from invetory (because the player ran out of them) and obviously they can be used.
So when i want to use a Potion, i add this:
effect = 1; // Where 1 = id of the add hp effect.
quantity = 50; // Recuperable amount of the effect.
time = 0; // In case of being a buff potion, how much time would it last. 0 is the default value and the program ignores it
The case is, that I’d like to add potions wich has more than 1 effect.
Example: Elixir wich adds 100hp and 100mp
How could i do this? Adding a new effect value would fix it but i dont think thats the best because it would be redundance in the database.
THank you