Repository navigation
City age tracking, culture expansion, and info added to city zoom UI - #1141
Open
zack-the-coding-actuary wants to merge 4 commits into
Open
zack-the-coding-actuary wants to merge 4 commits into
zack-the-coding-actuary wants to merge 4 commits into
Conversation
- Add City.turnFounded, set via an optional constructor argument that CityInteractions.BuildCity passes from the current game turn - Apply the city age tiebreaker (oldest city wins) as Law V in GameData.ResolveTileOwnershipConflict - Add a Founded label under the city name in the city screen showing the in-game year the city was founded
- Add Rules.BorderFactor, the culture cost N of the first border expansion tier, where tier k costs N^k - Default the border factor from the new gameplay.culture.border_factor Lua function for new games and older C7 saves, and import it from the BIQ RULE section for Civ 3 BIQ and SAV loads - Replace the hardcoded base 10 in City border logic with the border factor, using an integer loop in GetBorderExpansionLevel and a new CultureForNextBorderExpansion - Add City.TurnsUntilBorderExpansion and show "Expands in N turns" under the culture header on the city screen - Use CultureForNextBorderExpansion for the "Total" culture line on the city screen - Add BorderExpansionTest covering border levels and thresholds for several border factors
- Add City.Population, computed with the base game formula from city size and the fraction of the food box filled - Show the owner's gold, the owner's government, the city's population and the current turn's year (BC/AD) under the city name on the city screen - Reposition the city name and founded labels to make room for the new fields - Add CityPopulationTest covering the population formula
…ion truncation is OP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I originally was just going to track the turn / year a city was founded so I could finish the TODO in
GameData.csrelated to resolving tile conflicts, but adding the usual UI information to the city zoom screen seemed like a natural extension of this. Changes below:Before:
After: