Commit Graph

7101 Commits

Author SHA1 Message Date
c7a7bf1474 City state coup (#11586)
* Added coup success calculation

* Added a coup button

* Added a coup button functionality

* Improved coup chance calculation

* Added coup effects

* Fixed random value being too high

* Fixed percent chance roll

* Hid enemy spy factor from the chance text

* Added coup notifications

* Added translations

* Updated a notification

* Style changes

* Put some text onto multiple lines

* Fixed "failed staged" notification

* Added missing translation

* Finished fixing merge conflicts

* Added AI to city-state coups

* Coup notifications are now sent to the spectators as well

* Changed spy rank modifier to be additive
2024-05-16 07:02:37 +03:00
d4cfd4e563 AI doesn't settle very unfavorable locations (#11305)
* AI doesn't settle locations with less than 50 value

* Settlers try and found cities at a distance of 7 more

* Reduced the value of being on the coast

* RankTile quits early if the tile is already owned
2024-05-16 07:02:20 +03:00
1fed88acf6 Espionage icons (#11600)
* Icons for Espionage Buildings

* Update WorldScreen top left buttons
2024-05-16 07:01:47 +03:00
903cabed27 Version rollout (#11592)
* Bump version and create initial changelog entry

* Update Ukrainian translations (#11589)

Co-authored-by: Kostiantyn Ko <mormat.iam@gmail.com>

* Update French.properties (#11585)

* Update Brazilian_Portuguese.properties (#11582)

* Update Indonesian.properties (#11580)

Added new translation and corrected the mistranslation.

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Kostiantyn Ko <test9@mormat.name>
Co-authored-by: Kostiantyn Ko <mormat.iam@gmail.com>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
2024-05-14 11:18:51 +03:00
8227c2f339 More espionage UI improvements (#11584)
* Renamed "conducting counter-intelligence" to "counter-intelligence"

* Created translations for spy actions

* Clicking on the spy icon selects the spy to be moved

* Fixed spaces in template.properties

* Removed extra translations
2024-05-14 11:01:10 +03:00
04423be44f Fix "Move a unit" tutorial isn't completed by moving via right-click (#11591) 2024-05-14 11:00:51 +03:00
9ddc2337ac Architecture overhaul: openCivilopedia and "hey, who knows which Ruleset we're running"? (#11590) 2024-05-14 11:00:40 +03:00
cd9db42672 Added the culture-refunding remove policy unique (#11538) 2024-05-14 11:00:16 +03:00
eb79a777a2 City state election rigging (#11577)
* Added city-state Elections

* Added Elections notifications

* Removed temporary rigging elections in Spy.kt

* Modified votes from influence a little

* Fixed rigging election turns

* Fixed elections

* Randomised city-state election days

* Refactored geCapital

* Refactored election random to use randomWeighted

* Fixed getSkillModifier being private

* Updated translations and fixed a notification for election rigging
2024-05-14 10:58:07 +03:00
5b002acfee Fix "Translating" wiki link (#11545)
* Fix external wiki link for Translation

* Mini lint - use brighten where functionally equivalent

* Mini lint - condition indent made it unreadable - loop only once
2024-05-14 10:57:36 +03:00
3f4a4aa93b Version rollout (#11579)
* Bump version and create initial changelog entry

* Update Turkish.properties (#11573)

* Update Turkish.properties

* Update Turkish.properties

* Update Turkish.properties

* Update Turkish.properties

* Update Brazilian_Portuguese.properties (#11566)

* Update Brazilian_Portuguese.properties

* Update Brazilian_Portuguese.properties

* Update Brazilian_Portuguese.properties

* Update French.properties (#11565)

* Update Italian.properties (#11564)

* Update Indonesian.properties (#11563)

* Update Indonesian.properties

Added and fixed the translation.

* Update Indonesian.properties

* Update Indonesian.properties

* Update Indonesian.properties

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: komandotayfa <53448093+komandotayfa@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
2024-05-11 21:44:44 +03:00
19be96335d Removed dead "Start golden age" unit action - #11576 2024-05-11 21:44:30 +03:00
8af45f774b Resolved #11544 - Remove 'color civ areas on max zoomout' due to conflict with aircraft 2024-05-11 21:38:25 +03:00
2136c5f555 Console: civ addpolicy (#11572) 2024-05-11 21:36:26 +03:00
a485510faf Resource Overview: Info on unavailable strategic and unimproved by allies (#11571)
* Resource Overview: Info on unavailable strategic and unimproved by allies

* Update tutorial
2024-05-11 21:36:17 +03:00
628bd71830 Spy UI improvements (#11570)
* Minor linting

* More linting

* Consistent naming city/location, cache city on Spy (tile visibility perf)

* Empower SpyAction enum (minor perf)

* NotificationAction for Espionage, shorthand on the Spy instance

* Fix National Intelligence Agency giving one extra Spy level

* Fix "Move Spies" NextTurnButton prompt appearing every turn when spies are in Surveillance

* Fix failed tech theft rewarding tech anyway (and open spy kill chance when theft ordered but nothing to steal)

* Finally refactor SmallButtonStyle as standalone component

* Fix unable to assign spies for counter-intelligence

* Shorten establish-network phase for domestic spy placement

* Refactor and prettify MoveToCityButton, reuse as pointer who is to move (and some tiny changes)

* Decorate Spy icons by rank and show those in the hideout too

* Make city name labels in Espionage screen clickable

* Umm... duplicate targets behave same as single targets

* Spy mechanics - no establish network before counter-intelligence, commenting

* Oops, those lines do not belong in this branch anyway
2024-05-11 21:36:07 +03:00
7bbe218bf0 Fix potential crash in console autocomplete (#11568) 2024-05-11 21:35:57 +03:00
0f4b52aaea Nuclear weapon uniques accept conditionals 2024-05-09 08:52:20 +03:00
d41a18ecd4 More movement uniques that have problems with conditionals 2024-05-05 20:39:48 +03:00
fbb9c4a7ad Version rollout (#11561)
* Bump version and create initial changelog entry

* new update Translate vietnamese (#11558)

* Update Vietnamese.properties

ok

* Update Vietnamese.properties

1

* Update Vietnamese.properties

2

* new Update Vietnamese.properties

* Updates to Portuguese.prop file (#11556)

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Add translations to Ukrainian (#11549)

Co-authored-by: Kostiantyn Ko <mormat.iam@gmail.com>

* Update Filipino.properties (#11548)

* Update Indonesian.properties (#11547)

Fixed the mistranslation.

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: vvinam <vvinam@gmail.com>
Co-authored-by: nexphilim <75545134+nexphilim@users.noreply.github.com>
Co-authored-by: Kostiantyn Ko <test9@mormat.name>
Co-authored-by: Kostiantyn Ko <mormat.iam@gmail.com>
Co-authored-by: Edizen P. Buguina <111935236+zen-pb@users.noreply.github.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
2024-05-04 21:17:20 +03:00
4aa75896e1 Add missing espionage uniques (#11559)
* Added "New spies start with [1] level(s)" unique

* Added England extra spy unique

* Fixed SpyStartingLevel target

* Added addspy notification
2024-05-04 21:04:17 +03:00
da4657fa44 Next turn button shows move spies notification icon (#11557) 2024-05-04 21:04:08 +03:00
59084399a6 Overhaul "hidden" architecture, closing some gaps (#11546)
* Linting

* Overhaul "hidden" architecture

* Fix unit tests
2024-05-04 21:03:58 +03:00
8c54f41ab5 Added diplomatic repercussions for spying on a civ (#11553) 2024-05-04 21:03:44 +03:00
50b1b5144e Spy rank UI and fixes (#11551)
* Added spy rank to the spy table

* Dead spies aren't allowed to move

* Fixed AI spy automation

* Fixed AI rank not being cloned

* Removed rank fix (new fix is in MissingEspionageUniques)
2024-05-04 21:03:34 +03:00
a13f71e654 Added victoryType conditionals (#11542) 2024-05-04 21:03:22 +03:00
69b5e0c905 Fixed city-state alliance join war notification (#11541) 2024-05-04 21:03:12 +03:00
e7c945f910 Version rollout (#11539)
* Bump version and create initial changelog entry

* Update Czech.properties (#11537)

* Updated Romanian.properties (#11531)

* Update Portuguese.properties  (#11526)

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Simplified_Chinese.properties (#11524)

* Update Simplified_Chinese.properties

* Update Simplified_Chinese.properties

* Update Simplified_Chinese.properties

* Update Simplified_Chinese.properties

* Update Simplified_Chinese.properties

* Update Simplified_Chinese.properties

* Update Filipino.properties (#11523)

* Update Filipino.properties

* Update Filipino.properties

Fix an error.

* Update Filipino.properties

Fixed another minor error.

* Update Filipino.properties

Sorry for these errors. I should have slept instead of translating.

* Update Spanish.properties (#11517)

* Update Spanish.properties

* Fix civName

* The other one

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: jahodovykolac <79529669+jahodovykolac@users.noreply.github.com>
Co-authored-by: ghd987654321 <141758961+ghd987654321@users.noreply.github.com>
Co-authored-by: nexphilim <75545134+nexphilim@users.noreply.github.com>
Co-authored-by: AutumnPizazz <114050365+AutumnPizazz@users.noreply.github.com>
Co-authored-by: Edizen P. Buguina <111935236+zen-pb@users.noreply.github.com>
Co-authored-by: Caballero Arepa <78449553+Caballero-Arepa@users.noreply.github.com>
2024-04-30 00:47:43 +03:00
b0b6962259 Fixed old references to autoPlaySettings.fullAutoPlayAI without checking if we are currently AutoPlaying (#11533) 2024-04-30 00:36:34 +03:00
d8b08667d2 More info for MP load exceptions 2024-04-28 16:20:48 +03:00
95b176f4e5 Adjacent unit filter takes civilians into account 2024-04-28 15:02:22 +03:00
b5fd2557d6 Better UX for multiplayer game add 2024-04-28 14:50:24 +03:00
b1f8f7746b Better UX for multiplayer game rename 2024-04-28 14:41:57 +03:00
134ac57588 Fix tests 2024-04-28 14:29:07 +03:00
2df8a405c7 Added "checkfilter" console commands for city, tile, and unit, for easy mod checking 2024-04-28 14:25:26 +03:00
e78a1e9497 Resolved #11528 - "Open terrain" filter would return true if *any( terrain was open, instead of *all* 2024-04-28 14:18:51 +03:00
41a124d29e RISKY - *actually* move units into tiles along the path - this should solve the "ruins bonus generates units that then block path" as well as giving correct LOS reveals for intermediate tiles when units are escorted
This also makes the code a lot simpler, but may reveal unintended side effects, so we should be on the lookout
2024-04-28 13:21:16 +03:00
741dc6379f Resolved #11489 - better "escort settler" logic 2024-04-25 17:52:42 +03:00
fe78ba91e4 Version rollout (#11520)
* Bump version and create initial changelog entry

* Update Indonesian.properties (#11519)

I am X2003 from Discord and my account has been unblocked. I have also fixed the mistranslated words and translated the untranslated words.

* Update Portuguese.properties (#11518)

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Italian.properties (#11515)

* Update French.properties (#11514)

* Update Catalan.properties (#11513)

* Update Brazilian_Portuguese.properties (#11512)

* Detekt

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
Co-authored-by: nexphilim <75545134+nexphilim@users.noreply.github.com>
Co-authored-by: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: Joan Josep <juanjo.ng.83@gmail.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
2024-04-25 16:41:36 +03:00
a7d40faade Fix: Android pause/resume cycle not working (#11511)
* Fix Concurrency being zombified but still tasked to run stuff

* Do not tie Android logcat output to whether Gdx was built for debugging

* Simplify GameStartScreen

* Add wiki page on Debugging/Building for Android
2024-04-25 15:44:40 +03:00
18db0d4f2e Perf: Yet more caching ruleset objects' filter results 2024-04-25 15:29:09 +03:00
12f0a80732 Perf: Minor hotspot when you have many invisible-unit detectors 2024-04-25 15:16:09 +03:00
3caf8626bf Civilian AI wandering avoids enemy melee units correctly 2024-04-25 14:52:39 +03:00
03dfd6ee82 Perf: RequiresResource -> RequiredResources, for CivInfo.setTransients memory performance
Also a couple of other small perf changes
2024-04-25 14:48:03 +03:00
b67b92de45 Perf: memory optimizations 2024-04-25 14:15:01 +03:00
3aa9be9e9e selectedCiv instead of currentCiv, so spectators get a view like the civ they're spectating as 2024-04-25 11:12:51 +03:00
785fc6d148 Color city centers differently on max zoom out, like in minimap 2024-04-25 11:09:34 +03:00
d9c008206a Color lands by owner on max zoom out, for better overview 2024-04-25 11:05:40 +03:00
de9e9c9127 Resolved #11408 - MP Spectator can scroll entire map 2024-04-25 10:45:47 +03:00
a58e09f621 4.11.7-patch1 2024-04-24 21:53:06 +00:00