ActionItem subclasses

When i want to make say a healing potion item. Is the idea that I create a new ivnetoryitem, a new class called say healingpotion that inherits from actionitem. class Healingpotion : actionitem. and override its use method to heal the player?

That’s exactly correct. Don’t forget to include the [CreateAssetMenu] tag with an appropriate fileName= and menuName=.

In Shops and Abilities, we’ll show you a more robust method of creating abilities from reusable components.

Privacy & Terms