c3484381c3
Fixed politics tab not showing defensive pacts ( #10079 )
...
* Override DoF displayed on Politics table with defensive pact when applicable and added CYAN color to table and diagram.
* City-state alliances now show as CYAN in the politics table
2023-09-11 09:28:52 +03:00
ee81b3e84e
Defensive pact Tests ( #10088 )
2023-09-11 09:06:09 +03:00
885675bea3
💚 add tests for Diplomacy manager ( #10087 )
2023-09-09 21:27:03 +03:00
9e557c8890
Update Privacy-Policy.md
2023-09-07 18:23:33 +03:00
06c14cd520
4.8.3
4.8.3
2023-09-07 10:19:02 +03:00
a68f7db463
Version rollout ( #10080 )
...
* Bump version and create initial changelog entry
* Update Polish.properties (#10075 )
* Update Brazilian_Portuguese.properties (#10074 )
* Update Russian.properties (#10073 )
* Update Russian.properties
* Update Russian.properties
New string and corrects
* Update Russian.properties
#2
* Update Russian.properties
*3
* Update German translation (#10069 )
* Update Dutch.properties (#10067 )
* Update French.properties (#10066 )
---------
Co-authored-by: yairm210 <yairm210@users.noreply.github.com >
Co-authored-by: Lesiakower <125187776+Lesiakower@users.noreply.github.com >
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com >
Co-authored-by: Anoant <143289571+Anoant@users.noreply.github.com >
Co-authored-by: mape6 <mape6@posteo.de >
Co-authored-by: Lena Bullens <95299589+LenaBullens@users.noreply.github.com >
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com >
2023-09-07 10:13:19 +03:00
30570747a8
Unify placeholder parsing for unique parameters ( #10072 )
...
* Unify placeholder parsing for unique parameters
* Remove double "remove conditional" call - kudos @SomeTroglodyte
2023-09-07 09:57:40 +03:00
e8c740da31
build: unify coroutines version to buildconfig variable
2023-09-06 15:20:32 +03:00
55a3fa2a75
cleanup: Copy Zero vectors before passing to localToStageCoordinates ( #10048 )
2023-09-06 12:38:14 +03:00
7597447b7e
build: Change Docker JDK download to adoptium used in other releases
2023-09-06 12:35:00 +03:00
0c089f0e6d
Revert "build: Kotlin plugins tied to kotlin version"
...
This reverts commit d7ccc11d8c
.
2023-09-06 12:24:33 +03:00
4081b76025
build: removed 'testImplementation' double-imports for tests project
2023-09-06 12:18:31 +03:00
adbbb18685
build: remove unused mockk library
2023-09-06 12:11:55 +03:00
d7ccc11d8c
build: Kotlin plugins tied to kotlin version
2023-09-06 12:05:07 +03:00
057b2e1d5b
chore: upgrade androidx versions
...
Resolves #9966
2023-09-06 12:00:30 +03:00
538330db87
Test/refactor target helper and test it ( #10048 )
...
* ♻️ merge together two branches executing same code
* ♻️ swap if-else chain with when to improve readability
* ⚡ ️ swap conditions to first check the lighter computationally-wise
* ♻️ extract method to increase readability
* 💚 add some tests for TargetHelper
* 💡 add comment explaining how Unciv grid system works using a graphical example
* 💚 add other tests
* ♻️ change method name to better reflect what it does
* 🐛 fix import after rebase
* 🔥 remove parameter when value is the default and use static field for Vector2(0f, 0f)
* ♻️ split setTileTerrainAndFeatures in two different methods
* ♻️ update older tests to use the new functions
2023-09-05 22:25:28 +03:00
e80acdbb6a
4.8.2
4.8.2
2023-09-05 19:14:04 +03:00
4f9dc953cb
Version rollout ( #10065 )
...
* Bump version and create initial changelog entry
* Update Polish.properties (#10057 )
* Update German translation (#10056 )
* Update Spanish.properties (#10051 )
* Update French.properties (#10049 )
* Update Italian.properties (#10046 )
---------
Co-authored-by: yairm210 <yairm210@users.noreply.github.com >
Co-authored-by: Lesiakower <125187776+Lesiakower@users.noreply.github.com >
Co-authored-by: mape6 <mape6@posteo.de >
Co-authored-by: Caballero Arepa <78449553+Caballero-Arepa@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 >
2023-09-05 19:10:29 +03:00
4ddaf9b2c4
performance: Don't enqueue multiplayer game update for 0 games
2023-09-05 19:07:36 +03:00
855b2959a1
Fix Map Editor double map holders after ruleset change ( #10047 )
...
* Fix Map Editor double map holders after ruleset change
* Fix buttons are vertical in AskFitMapToRulesetPopup
* Sort imports over mapeditor package
2023-09-05 19:02:36 +03:00
5bccc4abf3
Fix longpress triggering when an onClick discards its actor ( #10052 )
2023-09-05 19:02:27 +03:00
eec3732c96
Defensive pact notification fix ( #10025 )
...
* Fixed Civ getting two notifications of canceling their defensive pact when attacking.
* Added Defensive Pact related warnings to the Declare War popup
* Improved the warning to not include Civs that are already at war with the aggressor
* Improved the warning to not include Civs that are already at war with the aggressor
* Added defensive pact related warning translations
* Refactored removeDefensivePacts
* DeclareWarButton text now uses arrayListOf<String> and changed the for loop to a while loop
* Extracted the DeclareWarButton text to a new method.
2023-09-05 19:01:45 +03:00
a4cc566a8a
performance: Don't autoupdate multiplayer games more than a week old - they're inactive games
2023-09-05 19:00:44 +03:00
5cc57f9293
performance: Don't calc checksum for non-multiplayer games, no one cares if you hack your own game
2023-09-05 18:52:42 +03:00
a2fa4cebf4
Improve BaseUnit hasUnique(FoundCity) handling ( #10063 )
2023-09-05 15:40:55 +03:00
f7069851c7
Fix Gdx not forced to UTF-8 when saving a game ( #10062 )
2023-09-05 14:35:54 +03:00
93f882d3c8
tests: Load vanilla game test fixed
2023-09-04 17:08:52 +03:00
e58dd7c1f6
Buildings missing from ruleset are removed from loaded games *properly*
2023-09-04 16:42:21 +03:00
df03f36207
chore: Added missing imports
2023-09-04 16:09:55 +03:00
f4c7dc4890
chore: Reorg tests, so /testing folder contains only test-helper classes
2023-09-04 16:06:06 +03:00
96f957c52b
4.8.1
4.8.1
2023-09-04 15:18:46 +03:00
9fd7ddf050
Version rollout ( #10044 )
...
* Bump version and create initial changelog entry
* Update German translation (#10042 )
* Update Brazilian_Portuguese.properties (#10039 )
* Update Brazilian_Portuguese.properties
* Update Brazilian_Portuguese.properties
* Update French.properties (#10037 )
* Update Swedish.properties (#10035 )
* Update Swedish.properties
* bracket fix
* Update Spanish.properties (#10034 )
* Update Russian.properties (#10033 )
* Update Bulgarian.properties (#10032 )
* Update Bulgarian.properties
* Update Bulgarian.properties
* Update Bulgarian.properties
* Update Bulgarian.properties
* Update Polish.properties (#10030 )
* Update Polish.properties
* Update Polish.properties
* Update Polish.properties
* Update Polish.properties
* Update Polish.properties
---------
Co-authored-by: yairm210 <yairm210@users.noreply.github.com >
Co-authored-by: mape6 <mape6@posteo.de >
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com >
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com >
Co-authored-by: Mr-Bajs <93934125+Mr-Bajs@users.noreply.github.com >
Co-authored-by: Caballero Arepa <78449553+Caballero-Arepa@users.noreply.github.com >
Co-authored-by: Anoant <143289571+Anoant@users.noreply.github.com >
Co-authored-by: Instrumentarium <143902440+Instrumentarium@users.noreply.github.com >
Co-authored-by: Lesiakower <125187776+Lesiakower@users.noreply.github.com >
2023-09-04 15:02:51 +03:00
06691d429e
Resolved #10011 - Teleport units away from city center when liberating
2023-09-04 14:58:48 +03:00
1037b3d240
Resolved #10031 - don't add icons to selection boxes
2023-09-04 14:41:47 +03:00
743c90d454
chore: Moved TranslatedSelectBox to its own file in ui.components - see #10031
2023-09-04 14:41:05 +03:00
d19281e0e6
Add unique for a promotion to be free ( #10015 )
...
* Add unique for a promotion to be free
* Have Ai prefer free promotions
* Allow AI to get multiple promotions each step
2023-09-04 14:37:59 +03:00
087c2a0946
Fixed AI unit attack decision making ( #10036 )
...
* Limited the impact of a high attacksToKill value
* Fixed chooseAttackTarget returning nothing when attackableEnemies only has one element
2023-09-04 14:37:44 +03:00
ac5e51dbea
Fix cities getting the resource list of other cities ( #10041 )
2023-09-04 14:37:06 +03:00
d758da4d11
Fix ChangesTerrain unique for base terrains ( #10043 )
...
* Fix UniqueType.ChangesTerrain not working for base terrain parameter
* Fix spawnRiver resultingTiles to include all affected tiles on both sides of the River
* Fix terrain conversion for rivers from Map Editor partial generation / paint from-to
* forEach linting
* Instrumentation for generateSingleStep
* forEach linting
* Remove lazies
2023-09-04 14:36:52 +03:00
8b9d0af4bf
4.8.0
4.8.0
2023-09-03 09:55:02 +03:00
057a7ce9b5
Version rollout ( #10029 )
...
* Bump version and create initial changelog entry
* Update Dutch.properties (#10023 )
* Update Simplified_Chinese.properties (#10020 )
* Update Italian.properties (#10019 )
* Update Russian.properties (#10017 )
* Update Russian.properties
Defensive pacts
* Update Russian.properties
Some lines
* Update Spanish.properties (#10016 )
* Update Spanish.properties
* Correct Kongo name
* Update French.properties (#10013 )
* Update German translation (#10008 )
* Update German translation
* Update German translation
---------
Co-authored-by: yairm210 <yairm210@users.noreply.github.com >
Co-authored-by: Lena Bullens <95299589+LenaBullens@users.noreply.github.com >
Co-authored-by: qw142536 <123065131+qw142536@users.noreply.github.com >
Co-authored-by: TommasoPetrolito <tommasouni@gmail.com >
Co-authored-by: Anoant <143289571+Anoant@users.noreply.github.com >
Co-authored-by: Caballero Arepa <78449553+Caballero-Arepa@users.noreply.github.com >
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com >
Co-authored-by: mape6 <mape6@posteo.de >
2023-09-03 09:42:57 +03:00
ca160b56fa
City construct menu ( #9961 )
...
* Some preparation refactoring
* Some preparation API extension
* Initial constructions context menu
* More CityConstructions API clarification
* Templates and KeyBindings
* Fix quirks and prettify highlighting issues
2023-09-03 09:36:11 +03:00
dcb50bbbf5
Fix: "Only available" not working properly for religions or transforming/upgrading units ( #10012 )
2023-09-03 09:32:40 +03:00
bb3335aaa8
Pedia Search ( #9997 )
...
* Minor Civilopedia linting
* Civilopedia Search Popup
* Add missing "entire current complex ruleset" scope
* Address comments
* Wording change
* Remove comment
2023-09-03 09:32:28 +03:00
23c8ba05de
Pillaged tile improvements ( #10010 )
2023-09-03 09:32:17 +03:00
73add8a24d
Make "Defensive Pact" button translatable ( #10014 )
...
in Diplomacy - Trade subscreen.
2023-09-03 09:32:08 +03:00
6f9d2ea6d5
There's no need to save the civ uniques in *every* city unique usage differently, waste of RAM and CPU
2023-08-31 15:26:29 +03:00
ad7397ecc9
Performance: Cache uniques when choosing best tiles to settle/create improvements on
...
Resuse cache between cities for choosing best improvement for worker to pick (but not between workers...YET)
Alternate title: MOAR CACHES EVERYWHERE
2023-08-31 14:42:10 +03:00
f8ccefd10c
performance: Use the same trick of 'save unfiltered, return filtered' for cached city uniques, so devs don't need to worry about cache state when improving performance!
...
Big DUH moment, we've been applying this same trick everywhere but haven't generalized it yet...
This will both make performance improvements easier, AND improve readability!
2023-08-31 14:27:57 +03:00
97b16d2b5f
performance: Unique caching revamp!
...
- Cache civ uniques ignoring conditionals, for better reuse
- Cache civ uniques *when querying city uniques*, same
This allows us to use the same UniqueCache between cities, and we still get the performance boost of "search once filter always", since the searching is the heavier part, and in any case we'll always have to do the filtering by conditionals either way
2023-08-31 14:15:32 +03:00