generalised item use system

This commit is contained in:
Llywelwyn 2023-07-07 22:39:44 +01:00
parent f26adf352e
commit 65d728b75a
4 changed files with 96 additions and 33 deletions

View file

@ -70,7 +70,7 @@ impl SufferDamage {
pub struct Item {}
#[derive(Component, Debug)]
pub struct Potion {
pub struct ProvidesHealing {
pub heal_amount: i32,
}
@ -91,6 +91,9 @@ pub struct WantsToDropItem {
}
#[derive(Component, Debug)]
pub struct WantsToDrinkPotion {
pub potion: Entity,
pub struct WantsToUseItem {
pub item: Entity,
}
#[derive(Component, Debug)]
pub struct Consumable {}