Skip to content

Commit

Permalink
Update Culture/Religion for Monuments to Modern Standards
Browse files Browse the repository at this point in the history
- Updated religion acceptance for monuments to "province_is_or_accepts_religion_group"
- Updated cultural acceptance for monuments to "province_is_or_accepts_culture_group"
  • Loading branch information
Elfangor567 committed Dec 1, 2024
1 parent b8c4bfe commit f20e6b1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ void mappers::BuildTriggerBuilder::registerKeys()
registerKeyword("religious_groups", [this](std::istream& theStream) {
const auto& groups = commonItems::getStrings(theStream);
for (auto& group: groups)
buildTrigger += "AND = {\n\t\t\t\treligion_group = " + group + "\n\t\t\t\thas_owner_religion = yes\n\t\t\t}\n\t\t";
buildTrigger += "AND = {\n\t\t\t\treligion_group = " + group + "\n\t\t\t\tprovince_is_or_accepts_religion_group = yes\n\t\t\t}\n\t\t";
});
registerKeyword("cultural_groups", [this](std::istream& theStream) {
const auto& groups = commonItems::getStrings(theStream);
for (auto& group: groups)
buildTrigger += "AND = {\n\t\t\t\tculture_group = " + group + "\n\t\t\t\thas_owner_culture = yes\n\t\t\t}\n\t\t";
buildTrigger += "AND = {\n\t\t\t\tculture_group = " + group + "\n\t\t\t\tprovince_is_or_accepts_culture = yes\n\t\t\t}\n\t\t";
});
registerKeyword("cultural", [this](std::istream& theStream) {
cultural = commonItems::getString(theStream) == "yes";
Expand Down

0 comments on commit f20e6b1

Please sign in to comment.