Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to Anarchy when the current government is lost #2085

Merged

Conversation

lmoureaux
Copy link
Contributor

When the technology for the current government is lost, the game used to pick some government at random. Be more punitive and always switch to Anarchy. This is more consistent with other government changes.

Closes #2047.

When the technology for the current government is lost, the game used to pick
some government at random. Be more punitive and always switch to Anarchy. This
is more consistent with other government changes.

Closes longturn#2047.
@lmoureaux lmoureaux requested a review from daavko December 25, 2023 03:01
server/techtools.cpp Outdated Show resolved Hide resolved
lmoureaux added a commit to lmoureaux/freeciv21 that referenced this pull request Dec 29, 2023
@psampathkumar
Copy link
Contributor

There is one more :p, I thought you'll fix in both places at once 😛

@lmoureaux lmoureaux force-pushed the feature/gov-tech-loss-starts-anarchy branch from 81e2d24 to aefe0f1 Compare December 29, 2023 16:28
@lmoureaux
Copy link
Contributor Author

There is one more :p, I thought you'll fix in both places at once 😛

Started this PR too long ago, I don't remember what it's doing :D

@psampathkumar
Copy link
Contributor

I didnt test it (I dont know how to, dont have a save game where I lose a tech), I just read though the code cuz it caught my attention. LGTM. I just wanted to check if there is specific problems with not defining a gov during revolution which caused them to chose random government in the first place.

But looks like a gov during revolution is compulsory and the game raises an error otherwise, so I think this should work as intended.

@jwrober
Copy link
Collaborator

jwrober commented Dec 29, 2023

Also looks good to me.

@jwrober jwrober enabled auto-merge (rebase) December 29, 2023 16:34
@jwrober jwrober merged commit 58d5d06 into longturn:master Dec 29, 2023
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Government shouldn't be chosen randomly when losing a tech
3 participants