Add village defense campaign and breakthrough reports

Co-Authored-By: Codex <noreply@openai.com>
This commit is contained in:
2026-11-26 01:12:38 +03:00
parent aa842d8a1f
commit 7e6d9d8b9a
13 changed files with 1225 additions and 12 deletions
+9
View File
@@ -605,6 +605,14 @@ impl Sim {
out.sound("minecraft:event.raid.horn", plan.centre, 64.0, 1.0);
}
/// Start a new scenario with a fresh enemy picture while preserving the player's layout.
pub fn reset_raid_intelligence(&mut self) {
self.intel = ew::Intel::default();
self.recon = recon::Recon::default();
self.bearing = ew::BearingReport::default();
self.refresh = None;
}
/// Whether a raid is still being planned.
pub fn planning(&self) -> bool {
self.plan.is_some()
@@ -993,6 +1001,7 @@ impl Sim {
out.particles("minecraft:large_smoke", d.pos - dir * 2.5, 0.5, DVec3::new(0.0, 0.05, 0.0), 0.02, 4);
}
}
self.breakthroughs.begin(d.id, true);
self.drones.push(d);
self.launched += 1;
}