magic missile, fireball scrolls

This commit is contained in:
Llywelwyn 2023-07-09 09:12:21 +01:00
parent 2266998e80
commit 06c3d40c65
7 changed files with 315 additions and 50 deletions

View file

@ -71,7 +71,22 @@ pub struct Item {}
#[derive(Component, Debug)]
pub struct ProvidesHealing {
pub heal_amount: i32,
pub amount: i32,
}
#[derive(Component, Debug)]
pub struct InflictsDamage {
pub amount: i32,
}
#[derive(Component, Debug)]
pub struct Ranged {
pub range: i32,
}
#[derive(Component, Debug)]
pub struct AOE {
pub radius: i32,
}
#[derive(Component, Debug, Clone)]
@ -93,6 +108,7 @@ pub struct WantsToDropItem {
#[derive(Component, Debug)]
pub struct WantsToUseItem {
pub item: Entity,
pub target: Option<rltk::Point>,
}
#[derive(Component, Debug)]