Function active_law_attribute_deltas

Source
pub fn active_law_attribute_deltas(
    config: &GameConfig,
    cores: &CoresState,
    active_side: WorldSide,
    charges: &LawBridgeCharges,
) -> BTreeMap<String, i64>
Expand description

Attribute deltas contributed by the laws that are actually doing something: slotted, on the side that is currently up, at their current level, scaled by whatever their bridge delivered at the last flip.

Laws of the inactive side contribute nothing (acceptance #3) — that is the whole reason this is keyed on active_side rather than folded into the shared attribute aggregation the way the core multiplier is.

An inactive law (is_active == false, the mana-dependent catalog entries) contributes nothing either: it is content that exists but does not run.