fix contact damage and test with impaler
This commit is contained in:
parent
9d397451c4
commit
e9790f156d
6 changed files with 16 additions and 13 deletions
|
|
@ -10,6 +10,7 @@ avian3d = { workspace = true }
|
|||
state = { path = "../state" }
|
||||
combat = { path = "../combat" }
|
||||
building = { path = "../building" }
|
||||
combat_damagers = { path = "../combat_damagers" }
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ use avian3d::prelude::*;
|
|||
use bevy::prelude::*;
|
||||
use building::Building;
|
||||
use combat::{Defense, Health};
|
||||
use combat_damagers::ContactDamage;
|
||||
use state::GameSystemSet;
|
||||
|
||||
pub struct BuildingImpalerPlugin;
|
||||
|
|
@ -47,6 +48,7 @@ fn spawn(
|
|||
transform.clone(),
|
||||
Health::new(20.0),
|
||||
Defense::new(5.0),
|
||||
ContactDamage { amount: 5.0 },
|
||||
Name::from("Impaler"),
|
||||
));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue