11385 Commits

Author SHA1 Message Date
EmperorPinguin
a5e6622414
Update UseGoldAutomation.kt (#12787)
I suppose this is a bug.
2025-01-11 20:04:00 +02:00
EmperorPinguin
7fb5648aa1
Update Automation.kt (#12789)
I propose to not slow down growth if we're growing well, we need the trade route gold (players have been complaining quite a bit recently about AI bleeding gold on Warlord and lower).
2025-01-11 20:03:19 +02:00
EmperorPinguin
e3e2831f9a
Hide invisible resources for AI (#12772)
* Update CityLocationTileRanker.kt

* Update WorkerAutomation.kt
2025-01-11 20:01:44 +02:00
itanasi
534850fd90
Move Until Healed wake up to startTurn so Fortify lasts until start of turn (#12786) 2025-01-11 19:56:42 +02:00
yairm210
a3b48ab532 Added notification when enemy religion spread converts a city 2025-01-11 19:48:54 +02:00
yairm210
39ebaad85a chore(modding): Rename Austrian unique to remove trailing dot 2025-01-11 19:40:45 +02:00
yairm210
714242aa4c Add "has denied your trade request" notification 2025-01-11 19:30:28 +02:00
yairm210
eeb65523eb Fixed bug due to recent function unification 2025-01-09 15:21:05 +02:00
yairm210
ff30d123c0 LibGDX 1.13.1 4.15.1-libgdx-1.13.1 2025-01-08 20:26:19 +02:00
yairm210
612375d85d Chore: Slight getShortestPath simplification 2025-01-08 20:19:18 +02:00
yairm210
50979e8a0e Ruins stat gifts modified by game speed 2025-01-08 11:10:53 +02:00
yairm210
413ace3985 Fixed padding for map view icons for small minimaps 2025-01-08 09:51:56 +02:00
yairm210
f0a16ad3f1 4.15.1 4.15.1 2025-01-07 23:06:26 +02:00
Yair Morgenstern
70baf93012
Version rollout (#12766)
* Bump version and create initial changelog entry

* Update Indonesian.properties (#12764)

* Update Indonesian.properties

Translate new strings

* Update Indonesian.properties

Fix space error

* Update Indonesian.properties

Fix space

* Update Indonesian.properties

Try fixing space error

* Update German translation (#12763)

* translate battle action lines (#12760)

* Update Dutch.properties (#12759)

* Update Dutch.properties

* Update Dutch.properties

* Update French.properties (#12758)

* Update Italian.properties (#12757)

* Update Italian.properties

* Update Italian.properties

* Update Spanish.properties (#12751)

I found some extra spaces " ".

* Update Brazilian_Portuguese.properties (#12750)

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: kensvin <kensvin28@gmail.com>
Co-authored-by: mape6 <mape6@posteo.de>
Co-authored-by: metablaster <44481081+metablaster@users.noreply.github.com>
Co-authored-by: dutchwolfgirl <110766475+dutchwolfgirl@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: Nahuel Geno <142752140+NahuelGeno@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
2025-01-07 22:48:49 +02:00
sulai
fbe4cb10ee
correct alignment of text to icons (#12756)
* correct alignment of text to icons

* Add documentation to padTopDescent()

---------

Co-authored-by: mrimvo <6030346+mrimvo@users.noreply.github.com>
2025-01-07 22:48:36 +02:00
sulai
5364ead170
Add GoogleMaps-like pinching (#12765)
Co-authored-by: mrimvo <6030346+mrimvo@users.noreply.github.com>
2025-01-07 20:49:58 +02:00
EmperorPinguin
0b2c8148b0
Update UnitPromotions.json (#12762)
* Update UnitPromotions.json

* Update UnitPromotions.json
2025-01-07 20:49:42 +02:00
sulai
5b864f8598
Tweak UI city screen (#12755)
* Add missing translation template

* city screen label: Ellipsize city name if too long

* Reintroduce priority buttons in queue entries when queue is expanded

* Horizontal queue space optimized for Small Portrait Screens, so that city stats stay visible

---------

Co-authored-by: mrimvo <6030346+mrimvo@users.noreply.github.com>
2025-01-07 20:49:06 +02:00
EmperorPinguin
9ef0966b2e
Update NextTurnAutomation.kt (#12754) 2025-01-07 20:48:56 +02:00
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