11366 Commits

Author SHA1 Message Date
yairm210
b1da26c20c chore: split checkFileNames into subfunctions 2025-01-07 20:48:31 +02:00
yairm210
6f068d5fd3 chore: reduce automateWorkerAction complexity even more 2025-01-07 20:15:36 +02:00
yairm210
1296520737 chore: reduce automateWorkerAction complexity 2025-01-07 20:05:27 +02:00
yairm210
90b3661b95 Show total number of cities in city table 2025-01-07 19:36:28 +02:00
yairm210
fa5b5612b9 Fixed tests again dammit 2025-01-07 16:14:42 +02:00
yairm210
c1025f15ab Specify the problematic interception translations 2025-01-07 13:20:26 +02:00
yairm210
e4694ab5ff chore: renamed all "distance to tiles" to "movement" 2025-01-05 17:00:18 +02:00
yairm210
d6e09b1356 Avoid ANRs when loading games 2025-01-05 14:49:37 +02:00
yairm210
3af82a756c Resolve rare crash for corrupted game settings 2025-01-05 14:36:18 +02:00
yairm210
abea819a7f Resolved #12753 - Queue items remain in bounds 2025-01-05 13:19:49 +02:00
yairm210
e16ac94d51 Fix tests 2025-01-05 12:03:05 +02:00
yairm210
e8f89ba1c7 More generic battle notifications 2025-01-05 11:57:15 +02:00
yairm210
b8383cb9ef More generic battle notifications 2025-01-05 11:45:54 +02:00
yairm210
a809348e72 . 2025-01-05 11:25:22 +02:00
yairm210
f493bdf7e0 New battle damage messages - to be translated before we move to the new format 2025-01-05 11:25:02 +02:00
yairm210
661d0b30a9 Added battle damage translation line when attacker is undamaged 2025-01-05 10:39:37 +02:00
yairm210
935dc2250b Added battle damage translation line when attacker is undamaged 2025-01-05 10:36:28 +02:00
yairm210
ff82b238f4 4.15.0 4.15.0 2025-01-04 20:35:41 +02:00
yairm210
b86701e305 "Can move after attacking" accepts combat conditionals 2025-01-04 20:31:02 +02:00
Yair Morgenstern
cb2295653d
Version rollout (#12748)
* Bump version and create initial changelog entry

* Update Latin translation (#12740)

* Update Latin translation

* Fix translation

* Fix translation

* Revert.

* Redo

* Update Spanish.properties (#12736)

* Update Spanish.properties

* Update Spanish.properties

* Update Spanish.properties

* Update Brazilian_Portuguese.properties (#12733)

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: sls1005 <90055573+sls1005@users.noreply.github.com>
Co-authored-by: Nahuel Geno <142752140+NahuelGeno@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
2025-01-04 20:09:09 +02:00
yairm210
e2f346490c Resolved #12417 - "Costs [amount] [stockpiledResource]" works for improvements 2025-01-04 20:08:55 +02:00
General_E
a4a403b104
Updated CityStateFunction.tk so that city states, will get angry at you, if you steal their lands (#12725)
* Settler settle best tile when not escort and dangerous Tiles instead of running away

Settler unit will now settle on best tile in dangerous Tiles without escort instead of running away.

* Update WorkerAutomation.kt

* Update SpecificUnitAutomation.kt

* Update WorkerAutomation.kt

* Update SpecificUnitAutomation.kt

* Now city states get mad when you steal their Lands

* new version

* change to getDiplomacyManagerOrMeet

* added text to template.properties and changed AlertPopup.kt

* Update template.properties

* with period at the end :b

* add flag now

* Made Option to declare war when a city state is bullied unavailable
2025-01-04 20:05:08 +02:00
sulai
9ce439fd7f
Improved city screen queue (#12737)
* optimized city screen for smart phone
- moved "buy" button to city info table
- removed "add to queue" button
- expand icon changed to android defaults
- CityStatsTable: big scrollable area, expandable

* made CityStatsTable collapsible

* Extracted BuyButtonFactory and re-added buy button close to construction queue

* optimized city screen construction queue for space and optimized for cramped portrait
- moved priority buttons under the queue
- queue is collapsible and shows preview
- when expanded, the queue takes available space
- collapse stats on cramped portrait
- collapsed stats show 2 lines of resources in cramped portrait to reduce width, right aligned
- raze button moved close to city button in cramped portrait

* allow selection in queue preview

* Use Table.setEnabled() on priority buttons

* Fix update after deleting entry from queue

* Add reasoning for vertical space distribution of the left handed tables in the city screen. Minor fix for queue buttons.

* Fixed click event propagation

* Replace max() with coerceAtLeast()

---------

Co-authored-by: M. Rittweger <m.rittweger@mvolution.de>
Co-authored-by: mrimvo <6030346+mrimvo@users.noreply.github.com>
2025-01-04 20:02:45 +02:00
SeventhM
2e32eccbce
Allow for city level stockpiles to actually function (#12710)
* Allow for city level stockpiles to actually function

* Disallow civs to gain citywide stockpiles from gainStockpiledResource

* Give the correct resource amount from city.getAvailableResourceAmount

* Make getReserve for cities explicit for tileResources

* Remove city function for adding stockpiles via a string

* Remove civ function for adding stockpiles via a string
2025-01-04 20:02:28 +02:00
yairm210
919c4e39d9 Resolved #12747 - "free building" unique respects civ replacement buildings 2025-01-04 19:48:21 +02:00
EmperorPinguin
e4d5ae9689
Update ConstructionAutomation.kt (#12744) 2025-01-04 19:24:53 +02:00
SpacedOutChicken
03869f5068
Edit Babylon's icon (#12739)
This shifts the icon slightly down and to the left to make a more balanced appearance.
2025-01-04 19:20:16 +02:00
yairm210
565653c3f0 Fix water adjacency test 2025-01-02 21:24:50 +02:00
yairm210
496b76e2ae Larger 'per turn' text for gold and faith 2025-01-02 20:54:44 +02:00
yairm210
bfe1caac6a Resolved #12735 - Adjacency checks are only for adjacent tiles, and not also for this tile 2025-01-02 20:52:17 +02:00
yairm210
ced36b8e8a chore: Early exit moveToNewEra 2025-01-02 20:47:15 +02:00
yairm210
9fca320574 Resolved #12734 - disabled buttons no longer cause click-through 2025-01-02 20:46:49 +02:00
yairm210
89c6331b45 4.14.19 4.14.19 2025-01-01 15:10:04 +02:00
Yair Morgenstern
aec9507f60
Version rollout (#12732)
* Bump version and create initial changelog entry

* Update Russian.properties (#12731)

I kept seeing this space for 3 years of playing this game, and it makes my anxiety act like crazy, delete it please xD

* Update Brazilian_Portuguese.properties (#12727)

* Update Brazilian_Portuguese.properties

* Update Brazilian_Portuguese.properties

* Update Brazilian_Portuguese.properties

* Update German translation (#12723)

* Update Spanish.properties (#12720)

by z4TaN

* Update Latin translation (#12715)

* Update Latin translation

* Update translation

* Fix typo

* Update Italian.properties (#12714)

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: shwwwa <shwwwa.dev@gmail.com>
Co-authored-by: altiereslima <altieres.lima@gmail.com>
Co-authored-by: mape6 <mape6@posteo.de>
Co-authored-by: Nahuel Geno <142752140+NahuelGeno@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>
2025-01-01 15:07:26 +02:00
SpacedOutChicken
841fc3090c
Change Babylon's image to Lamassu (#12730)
* Add new Babylon image

Add Lamassu image to replace Babylon's current lion icon

* Update Credits.md for Bablyon icon

Change credits file to match Babylon's new image
2025-01-01 14:53:51 +02:00
EmperorPinguin
32e74ee770
Update UnitPromotions.json (#12713)
* Update UnitPromotions.json

* Update UnitPromotions.json

* Update UnitPromotions.json

* Update UnitPromotions.json

* Update UnitPromotions.json

* Update UnitPromotions.json

* Update UnitPromotions.json
2025-01-01 14:50:01 +02:00
EmperorPinguin
826f1b4e58
Update AirUnitAutomation.kt (#12712)
* Update AirUnitAutomation.kt

* Update AirUnitAutomation.kt
2025-01-01 14:47:39 +02:00
EmperorPinguin
5e5a9d7d02
Let AI choose healing promotions (#12728)
* Update UnitAutomation.kt

* Update UnitAutomation.kt

* Update UnitAutomation.kt
2025-01-01 14:46:58 +02:00
yairm210
8d70606735 perf(memory): Don't recreate terrain lists all the time, use the same list 2025-01-01 14:43:44 +02:00
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