Function apply_law_attribute_change

Source
pub fn apply_law_attribute_change(
    entity: &mut Entity,
    previous: &BTreeMap<String, i64>,
    next: &BTreeMap<String, i64>,
    game_config: &GameConfig,
)
Expand description

Moves entity’s attributes from one law contribution to another. Passing an empty next strips the contribution; passing an empty previous folds one in.