fix contact damage and test with impaler

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

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