Skip to content

Commit

Permalink
Update gui_event.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Nivaturimika authored Feb 24, 2024
1 parent d78fef9 commit c180cf7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/gui/gui_event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,10 @@ void populate_event_submap(sys::state& state, text::substitution_map& sub,
text::add_to_substitution_map(sub, text::variable_type::capital, target_capital);
text::add_to_substitution_map(sub, text::variable_type::monarchtitle, state.world.government_type_get_ruler_name(state.world.nation_get_government_type(target_nation)));
// TODO: Is this correct? I remember in vanilla it could vary
text::add_to_substitution_map(sub, text::variable_type::culture, state.world.culture_get_name(state.world.nation_get_primary_culture(target_nation)));
text::add_to_substitution_map(sub, text::variable_type::culture_group_union, state.world.culture_get_name(state.world.nation_get_primary_culture(target_nation)));
auto pc = state.world.nation_get_primary_culture(target_nation);
auto pcg_adj = pc.get_group_from_culture_group_membership().get_identity_from_cultural_union_of().get_adjective();
text::add_to_substitution_map(sub, text::variable_type::union_adj, pcg_adj);
text::add_to_substitution_map(sub, text::variable_type::culture, state.world.culture_get_name(pc));
text::add_to_substitution_map(sub, text::variable_type::culture_group_union, pc.get_group_from_culture_group_membership().get_identity_from_cultural_union_of().get_nation_from_identity_holder());
text::add_to_substitution_map(sub, text::variable_type::union_adj, pc.get_group_from_culture_group_membership().get_identity_from_cultural_union_of().get_adjective());
text::add_to_substitution_map(sub, text::variable_type::countryculture, state.world.culture_get_name(pc));

// From
Expand Down

0 comments on commit c180cf7

Please sign in to comment.