try to balance a bit

This commit is contained in:
Jim 2025-09-02 17:36:22 -04:00
parent 6cea0e97e9
commit d35344f910
Signed by: jim
GPG key ID: 3D7D94BA53088BF4
10 changed files with 141 additions and 48 deletions

View file

@ -59,6 +59,7 @@ fn spawn(
phase: Res<State<BasePhaseState>>,
res: Res<CoranthResources>,
) {
let phase = phase.get().phase_count();
for SpawnCoranth { transform } in reader.read() {
commands
.spawn((
@ -69,8 +70,8 @@ fn spawn(
MaxLinearSpeed(25.),
Coranth,
transform.clone(),
Health::new(1.0 + phase.get().phase_count() as f32),
ContactDamage::new(5.0),
Health::new(1.0 + phase as f32),
ContactDamage::new(if phase < 8 { 4.0 } else { 5.0 }),
Name::from("Coranth"),
Team::Inhabitant.collision_layers(),
))