12062 Commits

Author SHA1 Message Date
Rob Loach
265198e1fa
Fix Ancient Ruin benefit on higher difficulties (#13748) 2025-08-01 13:12:37 +03:00
Md. Touhidur Rahman
3b93e22ad5
Only bring forth AuthPopup if server explicitly returns 401 (#13747) 2025-08-01 13:12:29 +03:00
General_E
cfc640d0ee
Updated canBeSettled to be able to settle water mountain tiles (#13717)
* Update for PR

* Added doc to ConditionalInTiles

* update

* cut down on the code update
2025-08-01 13:12:21 +03:00
Md. Touhidur Rahman
95eb97d517
Goodies before chat retention & UncivServer.jar Chat Session Management fixes (#13735)
* add `String.isUUID()` and game `gameId` in Chat nullable

* refactor `String.isUUID()`

* use `java.util.UUID` for better validation

* use `UUID` as `ChatStore` key

* make `gameId` nullable only for responses

* fix reversed logics

* introduce `isValidPlayerUuid()` and `isValidGameUuid()`

* fix `WebSocketSessionManager` session management

* refactor & simplify `UncivServer.jar`

* make `gameIdToChat` a `synchronizedMap`

* make `checkAndReturnUuiId()` nullable

* remove redundant imports

* revert `IDChecker` changes
2025-08-01 13:11:37 +03:00
yairm210
01a4025287 chore(purity): TileImprovement 2025-07-31 18:21:04 +03:00
yairm210
f45fe20ab0 chore(purity): Unique.kt 2025-07-31 15:45:00 +03:00
yairm210
c5922e2373 chore(purity): Remove all possible suppressions 2025-07-31 13:51:40 +03:00
yairm210
58ac1204d8 chore(purity): Countables 2 2025-07-31 09:17:19 +03:00
yairm210
e9ee616c1f chore(purity): Remove more suppressions 2025-07-30 20:41:34 +03:00
yairm210
141a4d17bf chore(purity): conditionalApplies 2025-07-30 16:08:29 +03:00
yairm210
7f033fa3c1 chore(purity): eliminate suppressions 2025-07-29 18:18:25 +03:00
yairm210
5cda15ff3c chore(purity): eliminate suppressions 2025-07-29 18:12:09 +03:00
yairm210
ba6b20925e 4.17.10 4.17.10 2025-07-29 16:58:22 +03:00
yairm210
d5fcc58c93 Fix mods in savefiles that are - delimited instead of space delimited
Useful for debugging player sent saves
2025-07-29 16:56:52 +03:00
Yair Morgenstern
21e6427f3e
Version rollout (#13738)
* Bump version and create initial changelog entry

* Update Brazilian_Portuguese.properties (#13736)

* Update German translation (#13728)

* Update French.properties (#13727)

* Update Indonesian.properties (#13721)

* Update Italian.properties (#13715)

* Update Simplified_Chinese.properties (#13702)

* Update Simplified_Chinese.properties

* Update Simplified_Chinese.properties

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
Co-authored-by: mape6 <mape6@posteo.de>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
Co-authored-by: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
Co-authored-by: AutumnPizazz <114050365+AutumnPizazz@users.noreply.github.com>
2025-07-29 16:51:04 +03:00
EmperorPinguin
7afb3db4cd
AI: exclude great general from escort logic (#13726)
* AI: exclude great general from escort logic

* Update UnitAutomation.kt

* Update UnitAutomation.kt

* Update UnitAutomation.kt

* Update UnitAutomation.kt
2025-07-29 16:17:26 +03:00
EmperorPinguin
5e89e60442
Update MotivationToAttackAutomation.kt (#13724) 2025-07-29 16:17:13 +03:00
EmperorPinguin
648b0998c0
AI: better utilization of promoted units (#13737)
* AI: better utilization of promoted units

This won 54.5% in a duel of 400 games, not sure if that's significant enough. https://discord.com/channels/586194543280390151/1306726293102006453/1399500567021096960

* Update NextTurnAutomation.kt
2025-07-29 16:16:55 +03:00
EmperorPinguin
ce07a68dc8
AI: lower treshold for minimum acceptable newcity tile (#13730)
https://discord.com/channels/586194543280390151/1306726293102006453/1399334242009219123
2025-07-29 16:16:45 +03:00
EmperorPinguin
869e874ff5
Update Automation.kt (#13725) 2025-07-29 16:16:36 +03:00
Rob Loach
a645e2d010
Add unit action icons for triggerables (#13719)
* Add unit action icons for triggerables

* Apply suggestion from @RobLoach

* Apply suggestion from @RobLoach

* Add Technology icons

* Avoid the use of magic numbers

* Pass the icon size through

* Add stat icons
2025-07-29 16:16:26 +03:00
yairm210
1ef77b5e47 Fix crash when opening victory screen on the first turn 2025-07-29 15:06:28 +03:00
yairm210
697183f83f modding(validation): Add misspelling corrections to incorrect unique parameters in mod checker 2025-07-28 00:00:59 +03:00
yairm210
26624a0af5 chore(purity): Expression parsing 2025-07-27 17:40:07 +03:00
yairm210
5decf312e9 chore(purity): IConstruction 2 2025-07-27 15:10:46 +03:00
yairm210
7eaf2b587e chore(purity): IConstruction, Building, etc 2025-07-27 14:58:35 +03:00
yairm210
39c84571ed Resolves #13687 - Fix unit icon disappearing on right-click of unit's tile - by SomeTroglodyte 2025-07-27 09:02:57 +03:00
yairm210
e0182a2c2c 4.17.9-patch1 4.17.9-patch1 2025-07-25 14:07:36 +00:00
Yair Morgenstern
2744c3a578
Fix improvement queue - hotfix (#13718) 2025-07-25 17:07:26 +03:00
yairm210
5fe09c3291 Fix autoplay+tutorials softlock - by SomeTroglodyte
Resolves #13688
2025-07-25 13:20:53 +03:00
yairm210
326f768e65 4.17.9 4.17.9 2025-07-25 13:17:22 +03:00
Yair Morgenstern
37ea5f8118
Version rollout (#13714)
* Bump version and create initial changelog entry

* Update Indonesian.properties (#13713)

* Update French.properties (#13697)

* Update Italian.properties (#13694)

* Update Spanish.properties (#13643)

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: X2003 <158255876+Xenia2003@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>
2025-07-25 13:15:52 +03:00
EmperorPinguin
56f0008644
Simulation: update map seed between games (#13690)
* Update Simulation.kt

* Update Simulation.kt
2025-07-25 13:06:55 +03:00
EmperorPinguin
63aa8b8a21
AI: update explore logic (#13658)
* Update UnitAutomation.kt

* Update

* Update MapUnit.kt
2025-07-25 13:06:23 +03:00
Rob Loach
9002464c15
Add 'on [difficulty] or higher' conditional (#13700) 2025-07-25 13:06:11 +03:00
metablaster
602cd985db
Show religion display name when enhancement is made (#13696)
* notification for when religion is founded

* fix typo with space

* notification for pantheon and enhancement

* actions and notifications don't reveal info

* fix typo with space again

* shorten code

* an unknown civilization!

* show religion displayname when enhancing
2025-07-25 13:06:02 +03:00
EmperorPinguin
c50a12a2de
AI: reduce food weight for small cities (#13704) 2025-07-25 13:05:55 +03:00
EmperorPinguin
81cf6f949a
AI: able too choose instant heal promotions again (#13708)
* AI: able too choose instant heal promotions again

* Update UnitAutomation.kt
2025-07-25 13:05:45 +03:00
EmperorPinguin
9723aed2bb
AI: don't annex cities if it causes severe unhappiness (#13712)
AI annexing cities doesn't seem to have a check for happiness weirdly enough, potentially bring the AI into crippling unhappiness.
2025-07-25 13:05:35 +03:00
EmperorPinguin
80c08a2b8e
Cleanup: Update ConstructionAutomation.kt (#13706)
* Update ConstructionAutomation.kt

* Update ConstructionAutomation.kt
2025-07-25 13:05:21 +03:00
metablaster
79d237e373
Fix for null pointer in embassy trade (#13707)
* G&K feature - Embassy

* fix spotted errors

* add icon and gameplay test

* fix invalid trade logic

* make embassies work for G&K only

* remove introduced bug

* trade evaluation and decline embassy

* update civilopedia for embassies

* cleanup

* diplomatic modifiers

* fix embassies unique

* make embassies unique global and bugfix

* fix AI can not trade with cs

* add embassies unique for mods

* mods require uniques to enable embassies

* fix mods require uniques to enable embassies

* update uniques.md

* apply reviewed changes

* apply reviewed change 2

* bugfix and cleanup

* remove obsolete import

* null pointer bugfix

* remove toList() and function rename

* fix for null pointer

* fix for null pointer 2
2025-07-25 13:05:12 +03:00
EmperorPinguin
1a04a7764a
Update UseGoldAutomation.kt (#13695) 2025-07-25 13:04:35 +03:00
yairm210
ed84e89927 chore(purity): Update to @Cache version 2025-07-25 12:33:17 +03:00
yairm210
25b7e37cee chore(purity): TileResource and friends, cloning functions 2025-07-24 23:01:23 +03:00
yairm210
69dffade55 4.17.8-patch1 4.17.8-patch1 2025-07-24 06:47:02 +00:00
metablaster
1e4ecab1c3
Fix for null pointer in embassy trade (#13699)
* G&K feature - Embassy

* fix spotted errors

* add icon and gameplay test

* fix invalid trade logic

* make embassies work for G&K only

* remove introduced bug

* trade evaluation and decline embassy

* update civilopedia for embassies

* cleanup

* diplomatic modifiers

* fix embassies unique

* make embassies unique global and bugfix

* fix AI can not trade with cs

* add embassies unique for mods

* mods require uniques to enable embassies

* fix mods require uniques to enable embassies

* update uniques.md

* apply reviewed changes

* apply reviewed change 2

* bugfix and cleanup

* remove obsolete import

* null pointer bugfix

* remove toList() and function rename

* fix for null pointer
2025-07-24 09:46:52 +03:00
yairm210
be6216d2fb chore(purity): MapUnit 2025-07-23 23:39:27 +03:00
yairm210
5fe0517c81 Remove irrelevant counteroffer notifications when the trade request is invalid 2025-07-23 23:28:10 +03:00
yairm210
574856d3c9 4.17.8 2025-07-23 23:04:36 +03:00
Yair Morgenstern
55df838658
Version rollout (#13693)
* Bump version and create initial changelog entry

* Update French.properties (#13685)

* update croatian translation (#13680)

* Update Italian.properties (#13679)

* Update Italian.properties

* Update Italian.properties

* Update Brazilian_Portuguese.properties (#13671)

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: metablaster <44481081+metablaster@users.noreply.github.com>
Co-authored-by: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
4.17.8
2025-07-23 22:54:38 +03:00