Skip to content

Commit

Permalink
Merge pull request #1248 from Nivaturimika/ldpoints
Browse files Browse the repository at this point in the history
fix leadership points having %%
  • Loading branch information
schombert authored Apr 7, 2024
2 parents 2019a76 + 79366bd commit 615a26b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions assets/alice.csv
Original file line number Diff line number Diff line change
Expand Up @@ -1636,6 +1636,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
Expand Down
2 changes: 1 addition & 1 deletion src/gui/gui_topbar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 615a26b

Please sign in to comment.