Commit Graph

10290 Commits

Author SHA1 Message Date
dee12bf23d 4.11.10 4.11.10 2024-05-04 21:51:28 +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
5291c5b79a 4.11.9 4.11.9 2024-04-30 00:50:47 +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
df6b179102 [docs] fix links to Unique-parameters#terrainfilter and uniques.md (#11535) 2024-04-30 00:36:04 +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
8854676d6e Update README.md 2024-04-26 10:55:23 +03:00
741dc6379f Resolved #11489 - better "escort settler" logic 2024-04-25 17:52:42 +03:00
235921e315 4.11.8 4.11.8 2024-04-25 16:46:28 +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 4.11.7-patch1 2024-04-24 21:53:06 +00:00
7601efa5f6 Fixed problem with selecting city constructions option and AutoPlay (#11516) 2024-04-25 00:52:59 +03:00
89fc75b3f5 Don't use tileRemovals for ruleset validation check, since we edit the ruleset as we go in the new game screen, so the tileRemovals is not accurate once mods are changed 2024-04-24 08:02:07 +03:00
5b73fcd419 Resolved #11481 - Safeguard against uniques specifying non-existant promotions 2024-04-24 07:45:50 +03:00
82c478a4dd 4.11.7 4.11.7 2024-04-24 00:30:28 +03:00
a445bfd7f3 GameSetupInfo components are vals, so all UI components in new game screen are guaranteed to be looking at the same data 2024-04-24 00:29:41 +03:00
80505a1a63 gameSetupInfo in newGameScreen is now val 2024-04-24 00:21:24 +03:00
2bee2d6368 Version rollout (#11510)
* Bump version and create initial changelog entry

* Update to Portuguese.properties (multiple commits) (#11502)

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: nexphilim <75545134+nexphilim@users.noreply.github.com>
2024-04-24 00:14:34 +03:00
8b27de26d5 Declare War Reason (#11490)
* Created DeclareWarReason enum

* Created a new notifyOfWar function and a DeclareWarReason class

* moved handleCityStateDirectAttack to it's own function

* Moved changing modifiers to its own function

* Moved notifyOfWar above onWarDeclared

* Fixed defensive pact canceling notifications

* Added more comments

* Fixed DiplomacyManagerTests

* Warmongering does not stack with defensive pacts

* Reworked how shared enemy modifiers are given out

* Fixed JoinWar notifications

* Added join war translations

* Added missing defensive pact translations

* Fixed translation parameter problems

* Changed "canceled" to "cancelled"
2024-04-24 00:01:26 +03:00
9dcfb963e3 Multi-filter improve code clarity and more unit tests (#11503)
* Some linting and region reorder

* Make MultiFilter accept a negated "and" list plus more unit tests

* MultiFilter gets 'or' capability

* Revert "MultiFilter gets 'or' capability"

This reverts commit 9f6e7c794a.
2024-04-24 00:00:40 +03:00
1bc1f33dfd Modding: Validation for civilopediaText (#11491)
* Lint RulesetValidator

* Better reusable AtlasPreview

* Validate civilopediaText in all RulesetObjects

* Prepare Event and EventChoice having ICivilopediaText

* Activate events civilopediaText validation
2024-04-24 00:00:13 +03:00
f6e432691d Fix: Potential crash on new game after deleting a base ruleset mod (#11508)
* Fix: Potential crash on new game after deleting a base ruleset mod

* Review
2024-04-24 00:00:05 +03:00
5c6d9171c4 UX: Auto rename new capital in rare cases to prevent confusing notifications later (#11507)
* Rename new capital when a civ survives losing their civ-named capital

* Linting

* Make "overflow" city founding names translatable

* Fix some unit tests relying on hardcoded Random() results
2024-04-23 23:59:53 +03:00
e8714fb950 A visually challenged unit with UniqueType.NoSight should still see its own feet (#11505) 2024-04-23 23:59:27 +03:00
a3d56845f9 AutoPlayEndTurn can run on a different thread (#11329)
* AutoPlay now builds military units more

* AutoPlayEndTurn now launches in a new thread if there are more than 30 units/cities

* Moved AutoPlay to WorldScreen and added isAIOrAutoPlaying() to Civilization

* Fixed AI not wanting to pass through city-state tiles

* Added black space to the end of AutoPlay

* Partially fixed some NextTurnButton AutoPlay Behaviour

* AutoPlay now persists across next turn WorldScreens

* Made player's turn using AutoPlay run on a different thread

* Remove the extra isAutoPlaying variable

* AutoPlay class now manages all AutoPlay threads

* Made AutoPlayMilitary and AutoPlayCivilian both able to run on a new thread.

* Added more comments to AutoPlay

* Maybe finally fixed the problems?
2024-04-23 23:59:02 +03:00