Commit Graph

10457 Commits

Author SHA1 Message Date
Oskar Niesen
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
SomeTroglodyte
04423be44f
Fix "Move a unit" tutorial isn't completed by moving via right-click (#11591) 2024-05-14 11:00:51 +03:00
SomeTroglodyte
9ddc2337ac
Architecture overhaul: openCivilopedia and "hey, who knows which Ruleset we're running"? (#11590) 2024-05-14 11:00:40 +03:00
PLynx
cd9db42672
Added the culture-refunding remove policy unique (#11538) 2024-05-14 11:00:16 +03:00
Skekdog
50274a42ad
Corrected Coast yields to give 1 Food and 1 Gold (#11583)
* Coast also yields 1 Gold

* Coast also yields 1 Gold and 1 Food in Vanilla
2024-05-14 10:59:18 +03:00
Oskar Niesen
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
SomeTroglodyte
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
Yair Morgenstern
a8c0bef379 4.11.11 2024-05-11 21:49:47 +03:00
Yair Morgenstern
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
Yair Morgenstern
19be96335d Removed dead "Start golden age" unit action - #11576 2024-05-11 21:44:30 +03:00
Yair Morgenstern
8af45f774b Resolved #11544 - Remove 'color civ areas on max zoomout' due to conflict with aircraft 2024-05-11 21:38:25 +03:00
SomeTroglodyte
2136c5f555
Console: civ addpolicy (#11572) 2024-05-11 21:36:26 +03:00
SomeTroglodyte
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
SomeTroglodyte
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
SomeTroglodyte
7bbe218bf0
Fix potential crash in console autocomplete (#11568) 2024-05-11 21:35:57 +03:00
yairm210
0f4b52aaea Nuclear weapon uniques accept conditionals 2024-05-09 08:52:20 +03:00
Yair Morgenstern
d41a18ecd4 More movement uniques that have problems with conditionals 2024-05-05 20:39:48 +03:00
Yair Morgenstern
dee12bf23d 4.11.10 2024-05-04 21:51:28 +03:00
Yair Morgenstern
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
Oskar Niesen
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
Oskar Niesen
da4657fa44
Next turn button shows move spies notification icon (#11557) 2024-05-04 21:04:08 +03:00
SomeTroglodyte
59084399a6
Overhaul "hidden" architecture, closing some gaps (#11546)
* Linting

* Overhaul "hidden" architecture

* Fix unit tests
2024-05-04 21:03:58 +03:00
Oskar Niesen
8c54f41ab5
Added diplomatic repercussions for spying on a civ (#11553) 2024-05-04 21:03:44 +03:00
Oskar Niesen
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
PLynx
a13f71e654
Added victoryType conditionals (#11542) 2024-05-04 21:03:22 +03:00
Oskar Niesen
69b5e0c905
Fixed city-state alliance join war notification (#11541) 2024-05-04 21:03:12 +03:00
Yair Morgenstern
5291c5b79a 4.11.9 2024-04-30 00:50:47 +03:00
Yair Morgenstern
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
Oskar Niesen
b0b6962259
Fixed old references to autoPlaySettings.fullAutoPlayAI without checking if we are currently AutoPlaying (#11533) 2024-04-30 00:36:34 +03:00
Hunter
df6b179102
[docs] fix links to Unique-parameters#terrainfilter and uniques.md (#11535) 2024-04-30 00:36:04 +03:00
Yair Morgenstern
d8b08667d2 More info for MP load exceptions 2024-04-28 16:20:48 +03:00
Yair Morgenstern
95b176f4e5 Adjacent unit filter takes civilians into account 2024-04-28 15:02:22 +03:00
Yair Morgenstern
b5fd2557d6 Better UX for multiplayer game add 2024-04-28 14:50:24 +03:00
Yair Morgenstern
b1f8f7746b Better UX for multiplayer game rename 2024-04-28 14:41:57 +03:00
Yair Morgenstern
134ac57588 Fix tests 2024-04-28 14:29:07 +03:00
Yair Morgenstern
2df8a405c7 Added "checkfilter" console commands for city, tile, and unit, for easy mod checking 2024-04-28 14:25:26 +03:00
Yair Morgenstern
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
Yair Morgenstern
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
Yair Morgenstern
8854676d6e
Update README.md 2024-04-26 10:55:23 +03:00
yairm210
741dc6379f Resolved #11489 - better "escort settler" logic 2024-04-25 17:52:42 +03:00
yairm210
235921e315 4.11.8 2024-04-25 16:46:28 +03:00
Yair Morgenstern
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
SomeTroglodyte
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
yairm210
18db0d4f2e Perf: Yet more caching ruleset objects' filter results 2024-04-25 15:29:09 +03:00
yairm210
12f0a80732 Perf: Minor hotspot when you have many invisible-unit detectors 2024-04-25 15:16:09 +03:00
yairm210
3caf8626bf Civilian AI wandering avoids enemy melee units correctly 2024-04-25 14:52:39 +03:00
yairm210
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
yairm210
b67b92de45 Perf: memory optimizations 2024-04-25 14:15:01 +03:00
Yair Morgenstern
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
Yair Morgenstern
785fc6d148 Color city centers differently on max zoom out, like in minimap 2024-04-25 11:09:34 +03:00