From 79366bdcc86860f128112a918060b62584b48ed6 Mon Sep 17 00:00:00 2001 From: nivaturimika <159065448+Nivaturimika@users.noreply.github.com> Date: Sun, 7 Apr 2024 08:16:52 +0100 Subject: [PATCH] fix leadership points having %% --- assets/alice.csv | 1 + src/gui/gui_topbar.hpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/alice.csv b/assets/alice.csv index e73116712..7e33f5855 100644 --- a/assets/alice.csv +++ b/assets/alice.csv @@ -1635,6 +1635,7 @@ alice_mw_create_lpb; alice_mw_create_lp;We need §R$x$§W §Yleadership points§W to add alice_mw_controls_1;§YRight-click§W create §Gall§W possible as generals alice_mw_controls_2;§YRight-click§W create §Gall§W possible as admirals +alice_daily_leadership_tt;$poptype$ provides §G$value$§W leadership points (§Y$fraction$§W of the population, §Y$optimal$§W is optimal). Extra leadership points will automatically be spent on creating new generals. current_supply_text;This unit received §Y$val$%§W of the supplies needed in the last day. current_supply_text2;The amount we could get of our current supply consumption was: current_supply_text_commodity;$what$: §Y$val$§W/§Y$value$§W §l(§W§G$total$%§W§l demand satisfaction)§W diff --git a/src/gui/gui_topbar.hpp b/src/gui/gui_topbar.hpp index f077110af..316c2ac8d 100644 --- a/src/gui/gui_topbar.hpp +++ b/src/gui/gui_topbar.hpp @@ -741,7 +741,7 @@ class topbar_nation_leadership_points_text : public nation_leadership_points_tex state.world.nation_get_demographics(n, demographics::total) }); text::add_to_substitution_map(sub, text::variable_type::optimal, text::fp_two_places{(state.world.pop_type_get_research_optimum(state.culture_definitions.officers) * 100)}); - text::localised_format_box(state, contents, box, std::string_view("tech_daily_leadership_tooltip"), sub); + text::localised_format_box(state, contents, box, std::string_view("alice_daily_leadership_tt"), sub); text::close_layout_box(contents, box); active_modifiers_description(state, contents, n, 0, sys::national_mod_offsets::leadership, true);