Repository navigation
Add Cultural Victory victory condition - #1132
Open
Billytifft wants to merge 1 commit into
Open
Billytifft wants to merge 1 commit into
Billytifft wants to merge 1 commit into
Conversation
Implements single-city and empire-wide culture wins with C3C threshold scaling, imported BIQ/SAV thresholds, save/load persistence, and a culture-path suffix in the victory announcement.
Billytifft
marked this pull request as ready for review
November 23, 2026 18:09
Member
|
Huh, I never realized that captured culture counts towards victory if you turn it on! That would be an interesting path to win, and gives me an idea for an achievement if we ever add those 😆 |
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.
Implements the Cultural Victory condition, following the Conquest/Domination work in #1037. Rules taken from https://civfanatics.com/civ3/infocenter/#culture Culture Victory section.
What changed
CultureVictory : IVictory:The Celts have won a Culture victory (city)!The Celts have won a Culture victory (empire)!(city and empire).IVictory.Detail(VictoryStatus)method that returns an empty string for all other victory types, so existing announcements are unchanged.OneCityCultureWin/AllCitiesCultureWinfrom Civ3 BIQ/SAV data where available. Imported empire thresholds are treated as the Standard-map base and scaled by map size: Tiny 60k, Small 80k, Standard 100k, Large 130k, Huge 160k. The single-city value is used as-is. Missing or zero values fall back to those defaults.GameSetup.Populate()carries them over from the imported ruleset before applying the settings-driven victory switches. Zero values still fall back to the map-size defaults.VictoryConditions; older saves without the values get the defaults above.Deliberate scope choices
City.GetCulture()), not Civ3's captured-city total culture. In the current engine a captured city is destroyed and removed, so its culture does not transfer to or remain counted for the original owner.Test plan
dotnet build C7/C7.sln,dotnet test C7/C7.sln, anddotnet format C7/C7.sln whitespace --verify-no-changes.Notes for reviewers
(city)/(empire)suffix is a stopgap until a Score screen can show the full breakdown.CulturalVictoryenable flag (QueryCiv3.Biq.GAME.CulturalVictory), but this branch does not import it; the INI checkbox still controls whether the condition is enabled for new games. SAV imports do read the flag. This matches current behaviour for Domination and Conquest, which also do not read their enable flags from BIQ files. Should we change that for all victory types in a separate PR, or keep relying on the player setup screen?