Repository navigation
Let players capture or raze enemy cities - #1135
Open
zack-the-coding-actuary wants to merge 2 commits into
Open
zack-the-coding-actuary wants to merge 2 commits into
zack-the-coding-actuary wants to merge 2 commits into
Conversation
Previously any non-barbarian unit entering an enemy city destroyed it outright. Human players now choose between capturing and razing, and the AI captures. - Add MsgCityCaptureOrDestroy and a Military Advisor options pop-up that asks the attacker to capture or raze, with a notice for the victim when the attacker is the winner - Add MsgDoCaptureCity and MsgDoRazeCity engine messages so the pop-up choices run on the engine side - Rework CityInteractions.CaptureCity to transfer the city: gold, citizens, city lists, culture, palace removal, border ownership, trade network, civ destruction check, capital relocation and corruption - Add CityInteractions.RazeCity, which transfers gold, destroys the city and notifies a human victim through the existing MsgCityRaised pop-up - Treat capturing a size 1 city as a raze, skip the question for human attackers there, and send them the MsgCityRaised winner notice - Compute MsgCityRaised.goldTaken from City.goldOnDestruction instead of taking it as a constructor argument - Branch OnEnterTile on barbarian, human and AI attackers
…r chose producible before recalculating trade network
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.
In response to issue #1120
Previously any non-barbarian unit entering an enemy city destroyed it outright. Human players now choose between capturing and razing, and the AI captures.
Everything matches typical base game logic between what I wrote and what I tested in game, let me know if y'all have notes or changes. Thanks!