11327 Commits

Author SHA1 Message Date
yairm210
e5e656f34f perf: Convert tile percentage categories to EnumMap for both speed and memory 2025-01-01 14:32:26 +02:00
yairm210
9ae9916dce perf: Remove Stat creation when improvement/road is null 2025-01-01 14:22:45 +02:00
yairm210
1683c484e6 perf: Remove memory allocations when get/setting individual stats 2025-01-01 14:17:57 +02:00
yairm210
5f235d818f Resolved #12724 - City-state stat bonuses apply correctly 2024-12-31 14:21:38 +02:00
yairm210
49ac329d2b Disable minify :\ 4.14.18-apk-regular 2024-12-31 09:45:16 +02:00
yairm210
4d2ae2576f Release version even if MSI is not built apk-minify-3 4.14.18-apk-minify 2024-12-30 12:19:41 +02:00
yairm210
ba9bb4a56b chore: remove dead loadScenario function (happens via new game screen) 2024-12-30 11:47:28 +02:00
yairm210
38b44ec2e1 Move LinuxX11SaverLoader to Desktop as should be apk-minify-2 2024-12-30 11:46:32 +02:00
yairm210
d352dfe53b Enable minify! #experimental apk-minify 2024-12-30 11:22:51 +02:00
Yair Morgenstern
aedbc61c91 Update SDKs, library versions 2024-12-30 11:20:00 +02:00
Yair Morgenstern
4ec7b07040 Better proguard rules to enable r8 minification 2024-12-30 11:10:02 +02:00
yairm210
70068939ed More uniques work with "in this city" conditional 2024-12-29 21:26:30 +02:00
yairm210
88a92d77e4 Resolved #12717 - terrain fonts no longer flipped 2024-12-29 13:07:43 +02:00
yairm210
d23f32d3e5 Pathfinding: Avoid unfriendly city state tiles when this doesn't affect movement speed - #12718 2024-12-29 12:37:22 +02:00
Md. Touhidur Rahman
905ef25cbb
fix UncivServer.xyz info in Multiplayer.md (#12711) 2024-12-26 08:26:39 +02:00
yairm210
e224ae62ef 4.14.18 4.14.18 2024-12-25 20:54:14 +02:00
Yair Morgenstern
647484a5e0
Version rollout (#12709)
* Bump version and create initial changelog entry

* Update Latin translation (#12708)

* Update Latin translation

* Update translation

* Fix translation

* Update Catalan.properties (#12700)

* Update French.properties (#12698)

* Update Brazilian_Portuguese.properties (#12696)

* Update Indonesian.properties (#12695)

Translation and corrections.

* Update Russian.properties (#12694)

* Update Russian.properties

* Update Russian.properties

* Update Croatian translation (#12693)

* update untranslated lines

* fix error

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: sls1005 <90055573+sls1005@users.noreply.github.com>
Co-authored-by: Joan Josep <juanjo.ng.83@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>
Co-authored-by: dadadnet <dadadnet38@gmail.com>
Co-authored-by: metablaster <44481081+metablaster@users.noreply.github.com>
2024-12-25 20:46:03 +02:00
itanasi
b948770c51
Simulation: More Robust Stats (#12675)
* More robust Simulation Stats

* Some code cleanup

* Enum
2024-12-25 20:45:29 +02:00
SeventhM
c7fb6fb525
Allow stat from battle uniques to also give stockpiles (#12689)
* Allow stat from battle uniques to also give stockpiles

* Add helper for finding a gameResource

* Cleanup the formating of function
2024-12-25 20:38:27 +02:00
czyh2022
fe5a2acf04
Allow civs to trade with each other before settling their first cities (#12706)
Co-authored-by: czyh2022 <2200013085@stu.pku.edu.cn>
2024-12-25 20:37:23 +02:00
czyh2022
fc1454e28c
Delete duplicate trade denied message (#12707)
Co-authored-by: czyh2022 <2200013085@stu.pku.edu.cn>
2024-12-25 20:36:56 +02:00
czyh2022
87817dd776
Cancel the chain reaction of defense pact (#12703)
* When calling a defense pact ally to join a war, the ally's defense pact with other civilizations will no longer be chained.

* Update DiplomacyScreen.kt

Simplify the loop and delete dead code

---------

Co-authored-by: czyh2022 <2200013085@stu.pku.edu.cn>
2024-12-25 20:36:47 +02:00
SeventhM
81a85856cb
Fix gaining resources twice when it is gained from a city (#12699) 2024-12-23 08:51:34 +02:00
yairm210
4428d25bb5 undo 2024-12-22 22:48:59 +02:00
yairm210
2b0cc5cf90 Cache edge images for faster update()s on all tilegroups (e.g. unit click) 2024-12-22 21:40:06 +02:00
yairm210
4638301f0b Resolved #12677 - "close unit table" button does not cycle units 2024-12-22 13:12:03 +02:00
yairm210
f6c342f7cf 4.14.17 4.14.17 2024-12-22 11:01:21 +02:00
yairm210
efc0cf0aab Resolved #12687 - Flank attack unique works with 'vs' conditionals 2024-12-22 11:00:33 +02:00
yairm210
7eb642d40d Resolved #12678 - city-states don't take unique units from barbarians / other city states 2024-12-22 10:45:00 +02:00
yairm210
053ca67bed Revert "Set Gzip compression level to Deflater.BEST_COMPRESSION (#12691)"
This reverts commit 997648e1741d0b2bf12c364d3f79af60e0fbb655.
2024-12-22 10:37:15 +02:00
Yair Morgenstern
532022385d
Version rollout (#12692)
* Bump version and create initial changelog entry

* Update Dutch.properties (#12684)

* Update Dutch.properties

* Update Dutch.properties

* Update Latin translation (#12683)

* Update Latin translation

* Update translation

* Fix translation

* Update translation

* Update translation

* Update translation

* Fix translation

* Update translation

* Update Italian.properties (#12674)

* Update French.properties (#12671)

* Update Russian.properties (#12670)

* Update Brazilian_Portuguese.properties (#12669)

* Update Brazilian_Portuguese.properties

* Update Brazilian_Portuguese.properties

* Update Croatian translation (#12668)

* Translation of new entries and update instructions

* Formal form for gameplay and corrections

* update instructions

* Update Indonesian.properties (#12667)

Translation.

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: EmperorPinguin <99119424+EmperorPinguin@users.noreply.github.com>
Co-authored-by: sls1005 <90055573+sls1005@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: dadadnet <dadadnet38@gmail.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
Co-authored-by: metablaster <44481081+metablaster@users.noreply.github.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
2024-12-22 10:18:26 +02:00
SeventhM
a6bacca0b7
Add unique for increased improvement rates rather than decreased build times (#12680)
* Add unique for increased improvement rates rather than decreased build times

* Fix uniques

* Ruleset text

* Treat mad modder divide by zero
2024-12-22 10:13:19 +02:00
Toxile
f9e69fb4f0
UI: various improvements mostly relating to centering and WorldScreenTopBar (#12673)
* (rebase)

* centering pt. 1

* (rebase)

* centering pt. 2

* world screen top bar fixes:
– standardise icon-label order
– add ad-hoc spacing to the turn count label
– add clean and distinctive new style for 'per turn' stats

* centering pt. 3

* –final
2024-12-22 10:10:07 +02:00
Md. Touhidur Rahman
997648e174
Set Gzip compression level to Deflater.BEST_COMPRESSION (#12691)
* set gzip compression level to Deflater.BEST_COMPRESSION

* Update Gzip.kt

* Update Gzip.kt

* Update Gzip.kt
2024-12-22 10:05:03 +02:00
yairm210
b0bf22e6d1 perf (ANR): Only parse and sort civs in global politics table once 2024-12-17 14:07:51 +02:00
yairm210
5e6a3e0f67 Fix ANR caused by URL checking for Github URL with query 2024-12-17 13:11:30 +02:00
yairm210
992100412d Fix rare Android crash where we don't have permissions to copy external mods on app start 2024-12-17 12:14:22 +02:00
yairm210
096f62a719 Solve ANRs - play overlay music on another thread 2024-12-17 11:42:53 +02:00
yairm210
9f4828d55a 4.14.16 4.14.16 2024-12-16 15:10:22 +02:00
Yair Morgenstern
3356ddb205
Version rollout (#12665)
* Bump version and create initial changelog entry

* Update Dutch.properties (#12664)

* Update Brazilian_Portuguese.properties (#12654)

* Update Croatian translation (#12651)

* minor corrections

* minor corrections 2

* fix formal and informal language

* grammar corrections

* Add Croatian instructions

* Update Simplified_Chinese.properties (#12648)

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: dutchwolfgirl <110766475+dutchwolfgirl@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
Co-authored-by: metablaster <44481081+metablaster@users.noreply.github.com>
Co-authored-by: AutumnPizazz <114050365+AutumnPizazz@users.noreply.github.com>
2024-12-16 14:56:03 +02:00
itanasi
3792dc04a8
Rebase and commit (#12662) 2024-12-16 14:55:55 +02:00
Toxile
c68b19470f
UI: standardised alignment and creation of options checkboxes, Unciv-themed slider buttons, multiplayer settings server text field layout and spacing (#12650)
* [1]

* [2]

* [1]

* [3]

* [3]

* [4]

* Update template.properties
2024-12-16 10:55:13 +02:00
SeventhM
ae28dca570
Add unified unique for gaining stats or stockpiles (#12642)
* Add unified unique for gaining stats or stockpiles

* Use IgnoreConditionals instead of EmptyState
2024-12-16 10:54:47 +02:00
itanasi
2963d47295
Simulation: Save Stat support (#12663)
* Changes

* Default to not using avgStat

* Make print a float

* Make statTurns a list
rename sumStat
better summation for popsum

* Fix potential nullpointer

* Add .add()

* And another place to use .add()
2024-12-16 10:54:32 +02:00
SeventhM
7918123a79
Use unit state for trigger conditionals for gaining new units (#12660) 2024-12-16 10:54:23 +02:00
EmperorPinguin
e7b73c05cd
Update ConstructionAutomation.kt (#12659)
* Update ConstructionAutomation.kt

* Update ConstructionAutomation.kt
2024-12-16 10:53:18 +02:00
EmperorPinguin
203222af7d
Prevent incorrect settler retreat (#12652)
* Update CivilianUnitAutomation.kt

* Update SpecificUnitAutomation.kt

* Update SpecificUnitAutomation.kt
2024-12-16 10:53:10 +02:00
SeventhM
b55e02fd4d
Make pantheon cost respect game speed modifer (#12635)
* Make pantheon cost respect game speed modifer

* Inplement suggestion
2024-12-16 10:53:01 +02:00
itanasi
f07444e030
Quick edit so Simulation report is in consistent order (#12661) 2024-12-16 06:42:29 +02:00
yairm210
b06708ff1d Resolved #12637 - Paused music no longer resumes on game resume 2024-12-15 22:13:19 +02:00