11573 Commits

Author SHA1 Message Date
Yair Morgenstern
4bedfd58bd
Version rollout (#12849)
* Bump version and create initial changelog entry

* feat: Brazilian_Portuguese.properties (#12848)

* Update Ukrainian translations (#12842)

Co-authored-by: Kostiantyn Ko <mormat.iam@gmail.com>

* Turkish.properties (#12841)

Updated version of Turkish.properties created in 21.01.2025

* Update Latin translation (#12840)

* Update German translation (#12839)

* Update Spanish.properties (#12836)

* Update French.properties (#12835)

* Update Catalan.properties (#12833)

* Update Indonesian.properties (#12830)

Translation and corrections.

* Update Italian.properties (#12829)

* Update Polish.properties (#12827)

* Update Croatian translation (#12826)

* translate new lines

* Minor fix

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
Co-authored-by: Kostiantyn Ko <test9@mormat.name>
Co-authored-by: Kostiantyn Ko <mormat.iam@gmail.com>
Co-authored-by: Ahmet Hakan <ahmet.celikagi@sabanciuniv.edu>
Co-authored-by: sls1005 <90055573+sls1005@users.noreply.github.com>
Co-authored-by: mape6 <mape6@posteo.de>
Co-authored-by: Nahuel Geno <142752140+NahuelGeno@users.noreply.github.com>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: Joan Josep <juanjo.ng.83@gmail.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: SHypoleac <michal.wolonciej@interia.pl>
Co-authored-by: metablaster <44481081+metablaster@users.noreply.github.com>
2025-01-22 17:46:47 +02:00
SeventhM
45347cc928
Add a field for global unit uniques (#12775)
* Add a field for global unit uniques

* Whoops

* docs

* Fix this check only ever being done once

* Revert

* Add ruleset uniques when adding rulesets together

* Add ruleset to unitTypes for tests in case it's relevant

* My suggested changes: Implement a separate rulesetMap for units, remove any additional checks to the type where unnecessary

* Remove unit type code, update ruleset info by setter rather than by lazy

* Type information is needed before we set the ruleset here

* So should unique information
2025-01-22 17:41:20 +02:00
General_E
19d0fbc050
Added an UniqueType to Found puppet city. (#12834)
* 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

* added option to change the Maximum Autosave turns stored

* remove print

* change letter

* should fix issue with building test

* update with changes

* Added UniqueType.FoundPuppetCity

with "Founds a new puppet city" in "uniques" of an unit in Units.json.
Making it so you can now settle a puppet city.
2025-01-22 17:40:05 +02:00
SeventhM
9fc2510fe0
Allow building improvements on terrains that only allow some improvements when it has multiple uniques (#12847)
* Allow building improvements on terrains that only allow some improvements when it has multiple uniques

* Whoops, accidentally disallowed all improvements
2025-01-22 17:39:02 +02:00
SeventhM
f5ec43b8f2
Add conditional for when you aren't in a golden age (#12844) 2025-01-22 17:38:51 +02:00
itanasi
32856f9956
Set Avoid Growth=false on capture (#12828) 2025-01-22 17:38:39 +02:00
itanasi
05d246cdbe
Changes (#12846) 2025-01-22 17:32:31 +02:00
yairm210
35b21d98c6 Greeting stats translated correctly in notifications 2025-01-22 14:29:15 +02:00
yairm210
2f79658758 Multiplayer screen correctly handles errors when downloading mods 2025-01-21 12:13:34 +02:00
yairm210
159f2e54d4 chore: Simplified validateInProgressConstructions 2025-01-19 21:44:07 +02:00
yairm210
678df502f9 chore: Simplified updateAllyForCityState 2025-01-19 13:07:46 +02:00
yairm210
350a0cb90a chore: Split CityStateFunctions.cityStateAttacked into subfunctions 2025-01-19 13:03:04 +02:00
yairm210
629081f310 Resolved #12823 - "Cannot attack" accepts "vs" conditionals 2025-01-18 19:54:26 +02:00
yairm210
263bb53277 4.15.3 4.15.3 2025-01-18 19:42:36 +02:00
Yair Morgenstern
c4a8c0cbb6
Version rollout (#12825)
* Bump version and create initial changelog entry

* Small update Dutch (#12821)

* Small Update Dutch.properties

* Update Dutch.properties

* Update Polish.properties (#12819)

* Update Polish.properties

* Update Polish.properties

* Update Polish.properties

* Update Russian.properties (#12818)

* Update Spanish.properties (#12815)

* Update Spanish.properties

* Update Spanish.properties

Modified based on metablaster's suggestions
https://discord.com/channels/586194543280390151/640249234238472282/1328773267913310330

* Update German translation (#12810)

* Update French.properties (#12804)

* Update Brazilian_Portuguese.properties (#12803)

* Update Croatian translation (#12797)

* translate new lines

* minor fix

* minor fix 2

* Update Italian.properties (#12796)

* Update Ukrainian translations (#12795)

Co-authored-by: Kostiantyn Ko <mormat.iam@gmail.com>

* Update Indonesian.properties (#12793)

* Update Indonesian.properties

Translation and corrections.

* Update Indonesian.properties

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: dutchwolfgirl <110766475+dutchwolfgirl@users.noreply.github.com>
Co-authored-by: Lesiakower <125187776+Lesiakower@users.noreply.github.com>
Co-authored-by: dadadnet <dadadnet38@gmail.com>
Co-authored-by: Nahuel Geno <142752140+NahuelGeno@users.noreply.github.com>
Co-authored-by: mape6 <mape6@posteo.de>
Co-authored-by: Ouaz <Ouaz@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: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
Co-authored-by: Kostiantyn Ko <test9@mormat.name>
Co-authored-by: Kostiantyn Ko <mormat.iam@gmail.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
2025-01-18 19:31:14 +02:00
yairm210
5f58fe3eb8 Fixed unique buildings/improvements with zeroed stat not showing before vs after 2025-01-18 19:17:00 +02:00
EmperorPinguin
2574bfda74
Update AI spending gold on city states (#12805)
* Update UseGoldAutomation.kt

* Update NextTurnAutomation.kt
2025-01-18 18:54:56 +02:00
sulai
7e3827bc6e
Show "x units due" on Big Button, setting for cycling units (#12814)
* Show "x units due" on Big Button

* Add setting for cycling with Next unit button (default true)

* Fix template.properties

* Use the term 'idle' when cycling

* Improve code structure

---------

Co-authored-by: M. Rittweger <m.rittweger@mvolution.de>
2025-01-18 18:54:43 +02:00
General_E
44fa9bde7d
Added option to change the Maximum Autosave turns stored (#12790)
* 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

* added option to change the Maximum Autosave turns stored

* remove print

* change letter

* should fix issue with building test

* update with changes
2025-01-18 18:53:33 +02:00
sulai
1792ff7315
Constructions table: avoid vertical movement of lower table (#12824)
* Constructions table: avoid vertical movement of lower table

* Make headerIcon private

---------

Co-authored-by: M. Rittweger <m.rittweger@mvolution.de>
2025-01-18 18:53:12 +02:00
itanasi
4726cb3558
Add hotkey for Idle Unit cycle buttons (#12817)
* Add hotkey for Idle Unit cycle buttons

* Add hotkey tooltips

* Reassign and label
2025-01-18 18:51:12 +02:00
yairm210
6384661eb3 4.15.2-patch1 4.15.2-patch1 2025-01-13 07:03:06 +00:00
Yair Morgenstern
b6240efd77
Fix worker improvement crash (#12807) 2025-01-13 09:02:56 +02:00
yairm210
5a159ff5d8 Fix Detekt error 2025-01-12 17:04:04 +02:00
yairm210
92b2f73c51 Fix Detekt error 2025-01-12 16:46:26 +02:00
yairm210
d0ea4f7753 Tech picker screen performance - ~45% of render time decreased with texture swap minimization tricks 2025-01-12 16:45:02 +02:00
yairm210
6a7945e3cb Notification for city conversion when removing heresy 2025-01-12 10:27:58 +02:00
yairm210
d077f93457 chore: Split RegionStartFinder.findStart into subfunctions 2025-01-11 23:54:48 +02:00
yairm210
bfc7324b96 chore: Move region start functions into their own class 2025-01-11 23:35:09 +02:00
yairm210
13405b5832 chore: Split strategic+bonus resource placement into subfunctions in its own class 2025-01-11 23:27:16 +02:00
yairm210
5535c9ad95 chore: MapRegions simplification - usingArchipelagoRegions is now a TileMap function 2025-01-11 22:54:02 +02:00
yairm210
0201a9cdbd chore: minor Battle.kt simplification 2025-01-11 22:43:43 +02:00
yairm210
00ff7b2879 4.15.2 4.15.2 2025-01-11 21:55:39 +02:00
yairm210
9b9f31995a Remove "last seen improvements" that are no longer valid improvements in mods 2025-01-11 21:52:30 +02:00
Yair Morgenstern
bfbd0ced32
Version rollout (#12792)
* Bump version and create initial changelog entry

* Update Catalan.properties (#12791)

* Update Russian.properties (#12778)

* Update Latin translation (#12777)

* Update Latin translation

* Update translation

* Update French.properties (#12773)

* Update Italian.properties (#12771)

* translated changed lines (#12770)

* Update Brazilian_Portuguese.properties (#12769)

* Update Spanish.properties (#12768)

* Update Spanish.properties

Translation for the new notification system remains to be refined since in Spanish there are genders and several types of past tense.

* Update Spanish.properties

* Update Spanish.properties

* Update Spanish.properties

Thanks @Caballero-Arepa for help

* Update Indonesian.properties (#12767)

Translation and corrections.

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Joan Josep <juanjo.ng.83@gmail.com>
Co-authored-by: dadadnet <dadadnet38@gmail.com>
Co-authored-by: sls1005 <90055573+sls1005@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: metablaster <44481081+metablaster@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
Co-authored-by: Nahuel Geno <142752140+NahuelGeno@users.noreply.github.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
2025-01-11 21:36:41 +02:00
sulai
6e77757f7c
Tweaks for Screen Size small-portrait (#12782)
* Add close button (x) to BattleTable

* Tweak city screen

* Fixed addRoundCloseButton() signature

---------

Co-authored-by: M. Rittweger <m.rittweger@mvolution.de>
2025-01-11 21:32:05 +02:00
yairm210
a90e7c4f4b Fixed tests 2025-01-11 20:30:07 +02:00
sulai
08d59dfc2d
Map pinching, revised (#12776)
* Improved precision of map pinching, was inaccurate

* Consolidated zoom() callback with pinch() to simplify. Added comments on the math.

---------

Co-authored-by: M. Rittweger <m.rittweger@mvolution.de>
2025-01-11 20:08:00 +02:00
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