Skip to content

Commit

Permalink
Handle updates to ideologies folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
Idhrendur committed Dec 15, 2024
1 parent 9d3f6ff commit e1a3aa0
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/vic3_world/ideologies/ideology_importer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,10 @@ vic3::IdeologyImporter::IdeologyImporter()
law_approvals_.emplace(law, approval);
});

ideology_parser_.registerKeyword("icon", commonItems::ignoreItem);
ideology_parser_.registerKeyword("show_in_list", commonItems::ignoreItem);
ideology_parser_.registerKeyword("priority", commonItems::ignoreItem);
ideology_parser_.registerKeyword("character_ideology", commonItems::ignoreItem);
ideology_parser_.registerKeyword("possible", commonItems::ignoreItem);
ideology_parser_.registerKeyword("leader_weight", commonItems::ignoreItem);
ideology_parser_.registerRegex(commonItems::catchallRegex,
[this](const std::string& unused, std::istream& input_stream) {
lawgroup_parser_.parseStream(input_stream);
});
ideology_parser_.registerRegex("lawgroup.*", [this](const std::string& unused, std::istream& input_stream) {
lawgroup_parser_.parseStream(input_stream);
});
ideology_parser_.IgnoreUnregisteredItems();
}


Expand Down

0 comments on commit e1a3aa0

Please sign in to comment.