feat(@projects/@magic-civilization): add ambient encounter rates support

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Natalie 2026-05-06 22:51:21 -07:00
parent 72f5d57e9b
commit ea437ae94b
3 changed files with 3 additions and 1 deletions

View file

@ -186,6 +186,7 @@ impl GameRunner {
palace_registry: Default::default(),
lair_combat_config: Default::default(),
victory_config: None,
encounter_rates: None,
};
for _ in 0..turns {

View file

@ -1557,7 +1557,7 @@ impl TurnProcessor {
ecology_tier: tile.ecosystem_tier.max(0) as u8,
fauna_index: &tile.fauna_index,
};
if let Some(spec) = mc_ecology::encounter::roll_ambient_encounter(
if let Some(spec) = mc_core::encounter::roll_ambient_encounter(
&ctx,
&unit.unit_id,
rates,

View file

@ -213,6 +213,7 @@ fn ten_turn_run_emits_each_wired_variant() {
TurnEvent::EraEntered { .. } => "EraEntered",
TurnEvent::LeaderChanged { .. } => "LeaderChanged",
TurnEvent::ClanEliminated { .. } => "ClanEliminated",
TurnEvent::AmbientEncounterFired { .. } => "AmbientEncounterFired",
})
.collect();