fix contact damage and test with impaler

This commit is contained in:
Jim 2025-08-26 08:26:59 -04:00
parent 9d397451c4
commit 5460785348
Signed by: jim
GPG key ID: 3236D2F059A7C0AC
6 changed files with 15 additions and 12 deletions

View file

@ -10,6 +10,7 @@ avian3d = { workspace = true }
state = { path = "../state" }
combat = { path = "../combat" }
building = { path = "../building" }
combat_damagers = { path = "../combat_damagers" }
[lints]
workspace = true

View file

@ -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"),
));
}