mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-08 23:08:35 +07:00

* Healing parity Adjusted healing values for parity with CV * New Demographics system for victory screen rankings Added a new game setup checkbox option to use a ranking system on the victory screen which is more in line with the Civ V Demographics window. Created the UI element and game parameter but the demographics screen still needs to be implemented. Also removed unnecessary comments from adjustments to healing values in a previous update. * Demographics table init Beginning to build structure of Demographics rankings table. * Update VictoryScreen.kt Attempt at getting more of the Demographics table implemented * Update VictoryScreen.kt Continued building the structure of the Demographics table * Demographics first implementation Finished first pass of Demographics screen. * Minor text formatting Improved some text formatting in code and comments. * Update MapUnit.kt Minor comment cleanup. * SomeTroglodyte's Feedback, pt. 1 Implemented feedback given by SomeTroglodyte in PR #6645. * Organized into functions Split up Rankings table creation and Demographics table creation into new functions * Update template.properties Fixed missing space. * Implementing more PR #6645 feedback Added needed translation templates, used enum class instead of array for headers, moved checkbox to Options -> Display instead of new game * Implemented rest of PR #6645 feedback Simplified logic for finding player's rank, value, best/worst civ value, and filtered out defeated civs from the display and calculations * Dead Civs get 0 in all categories Added simple check if a civ is dead when computing score. If they are dead then they get 0 and go to the bottom of the scoreboard. * Update VictoryScreen.kt Further cleaned up code for better reuse and simpler logic with fewer loops. * Update CivilizationInfo.kt Simplified implementation of return 0 for stats when civ is defeated. * Update CivilizationInfo.kt Removed commented-out line of code. * Fixed duplicate rank bug Adjusted method of determining best and worst civs so that duplicates don't occur. * Update VictoryScreen.kt One-lined the handling of logic in buildDemographicsTable() * Update VictoryScreen.kt Moved static header row to new function.