Skip to content

Add consuming preset#31

Open
Shuquan5512 wants to merge 3 commits into
mainfrom
logan/consume-preset
Open

Add consuming preset#31
Shuquan5512 wants to merge 3 commits into
mainfrom
logan/consume-preset

Conversation

@Shuquan5512

Copy link
Copy Markdown
Collaborator
  • Adds Consumable(Component). Attach to any food/item entity with an on_consume callable that defines the effect (heal, poison, etc.)
  • Adds Consume(Action). Valid when the target is in the actor's inventory and has a Consumable component; triggers the effect then removes and destroys the item

@Shuquan5512 Shuquan5512 changed the title add consuming preset Add consuming preset Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant