Skip to content

Commit

Permalink
fix(vic3)-commander-leader-chance-scope
Browse files Browse the repository at this point in the history
  • Loading branch information
HiddeLekanne authored and amtep committed Dec 10, 2024
1 parent e746bfa commit 38e7c0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vic3/data/interest_groups.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ impl DbKind for InterestGroup {
vd.field_script_value_rooted("female_politician_chance", Scopes::InterestGroup);
vd.field_script_value_rooted("female_agitator_chance", Scopes::InterestGroup);

// TODO: figure out these scopes

vd.field_script_value_rooted("noble_chance", Scopes::None);
vd.field_validated_key("commander_leader_chance", |key, bv, data| {
let mut sc = ScopeContext::new(Scopes::None, key);
let mut sc = ScopeContext::new(Scopes::InterestGroup, key);
sc.define_name("character", Scopes::Character, key);
validate_script_value(bv, data, &mut sc);
});

// TODO: figure out these scopes

vd.field_validated_block("priority_cultures", |block, data| {
let mut vd = Validator::new(block, data);
vd.multi_field_validated_block("rule", |block, data| {
Expand Down

0 comments on commit 38e7c0f

Please sign in to comment.