show range indicator when placing tower, cleanup tower info stats

This commit is contained in:
Jim 2025-09-01 21:37:18 -04:00
parent e6b04bbdd1
commit 3a25a1bd87
Signed by: jim
GPG key ID: 3D7D94BA53088BF4
9 changed files with 106 additions and 49 deletions

View file

@ -63,6 +63,8 @@ fn register(
unlocked: true,
},
Cost(Quantity { souls: 5, bones: 0 }),
Health::new(20.0),
Defense::new(5.0),
Name::new("Impaler"),
));
commands.insert_resource(ImpalerResources {
@ -82,8 +84,6 @@ fn populate(
}
commands.entity(trigger.target()).insert((
Impaler,
Health::new(20.0),
Defense::new(5.0),
ContactDamage::new(5.0),
Mesh3d(res.mesh.clone()),
MeshMaterial3d(res.material.clone()),