11509 Commits

Author SHA1 Message Date
Yair Morgenstern
7fe2503dfb
Version rollout (#12877)
* Bump version and create initial changelog entry

* Update Simplified Chinese (#12874)

* Update Latin translation (#12873)

* translate new lines (#12872)

* Update German translation (#12871)

* Update Thai.properties (#12870)

* Update Brazilian_Portuguese.properties (#12869)

* adding some corrections for inconsistencies in the translation (#12868)

* Update Spanish.properties (#12867)

* Update Italian.properties (#12866)

* Update French.properties (#12863)

* Update Indonesian.properties (#12862)

Translation and corrections.

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: chr_56 <30681738+chr56@users.noreply.github.com>
Co-authored-by: sls1005 <90055573+sls1005@users.noreply.github.com>
Co-authored-by: metablaster <44481081+metablaster@users.noreply.github.com>
Co-authored-by: mape6 <mape6@posteo.de>
Co-authored-by: Tanetpon phiewluang <61853754+AikaChan132@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
Co-authored-by: João Pedro Kuhn <pedrojoaojpk@gmail.com>
Co-authored-by: Nahuel Geno <142752140+NahuelGeno@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: X2003 <158255876+Xenia2003@users.noreply.github.com>
2025-01-29 13:41:42 +02:00
yairm210
46613f814b Resolved #12378 - Added stat categories for buildings in the construction list 2025-01-29 13:41:28 +02:00
yairm210
2c7282ac34 chore: old unique deprecation 2025-01-29 13:25:36 +02:00
EmperorPinguin
49d92f0806
Update Spy Tech Stealing (#12875)
* Update Spy.kt

* Update Spy.kt
2025-01-29 13:25:05 +02:00
sulai
f865cf68a9
Resize map with drag gesture (#12858)
* Resize map with drag gesture

* Add resize handle and maximize toggle button

* If map is really small, make the whole area clickable to toggle maximize

* Addressed feedback and improved maximized size of minimap.

* Removed ResizeDragListener.touchDown

---------

Co-authored-by: M. Rittweger <m.rittweger@mvolution.de>
2025-01-29 13:24:56 +02:00
yairm210
5d78cbd7c1 Make statusMap the source of truth for statuses 2025-01-29 13:20:52 +02:00
yairm210
09dcf67353 Fixed textures not being built on new game from new game screen 2025-01-28 22:10:07 +02:00
yairm210
ba9da43396 chore: minor readability 2025-01-28 22:04:07 +02:00
yairm210
b2f890599d Spy randomness is different for different spies in same city 2025-01-28 14:40:17 +02:00
yairm210
e8d40de61a chore: Minor MapUnit.kt readability 2025-01-28 13:16:44 +02:00
yairm210
51878bc0f9 chore: Minor battle.kt readability improvements 2025-01-28 13:10:44 +02:00
yairm210
d34930e45e chore: All map types translatable 2025-01-28 10:42:42 +02:00
yairm210
8e6cef79ce 4.15.5-patch2 4.15.5-patch2 2025-01-27 23:16:02 +02:00
yairm210
fb7062082b perf: Don't rebuild altases whenever possible, instead of creating and disposing all the time 2025-01-27 22:08:16 +02:00
yairm210
46fe257fc0 perf: Don't rebuild images (=reload and rebuild atlases) when loading game, if the set of mods has not changed 2025-01-27 19:45:29 +02:00
yairm210
d0dea2d9d7 4.15.5-patch1 4.15.5-patch1 2025-01-27 07:56:20 +00:00
Yair Morgenstern
56ab32ea1b
Fix memory leak per turn - dispose of individual pixmaps immediately, dispose of atlases after new screen is available (#12865) 2025-01-27 09:56:11 +02:00
itanasi
a7dca5c7e6
Add info about adding project (#12864) 2025-01-27 09:55:38 +02:00
yairm210
1e20fd109e 4.15.5 4.15.5 2025-01-26 11:48:07 +02:00
Yair Morgenstern
ec5dfd1e5f
Version rollout (#12861)
* Bump version and create initial changelog entry

* Update Brazilian_Portuguese.properties (#12860)

* Update Brazilian_Portuguese.properties

* Update Brazilian_Portuguese.properties

* Update Spanish.properties (#12856)

* Update German translation (#12855)

* Update French.properties (#12854)

* translate new lines and minor fix (#12852)

* Update Indonesian.properties (#12851)

* Update Italian.properties (#12850)

---------

Co-authored-by: yairm210 <yairm210@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: mape6 <mape6@posteo.de>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: metablaster <44481081+metablaster@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>
2025-01-26 11:43:17 +02:00
yairm210
fbbd8d6a18 perf(render): Ignore act() for minimap 2025-01-26 11:43:05 +02:00
sulai
477c6c5df5
UnitTable: show a summary when no unit is selected (#12832)
* Show a summary when no unit is selected. Allows to start cycling units any time. Refactor UnitTable to have separate Presenters for units, cities, spies and no selection.

* fix SummaryPresenter hiding close button

---------

Co-authored-by: M. Rittweger <m.rittweger@mvolution.de>
2025-01-26 11:24:46 +02:00
sulai
0a6848506c
Fix sticky tooltips (#12859)
Co-authored-by: M. Rittweger <m.rittweger@mvolution.de>
2025-01-26 11:24:29 +02:00
yairm210
45d85351b2 Prerender the "pillaged improvement" icon as well 2025-01-26 11:01:45 +02:00
yairm210
0b19463883 perf(render): Converted improvement images to prerendered images 2025-01-26 10:47:27 +02:00
yairm210
9ab656b55f perf(render): Separate improvement icons to different layer 2025-01-25 18:54:42 +02:00
yairm210
9f8c93d2ab perf(render): Create dynamic texture for resources so swaps are only done on resource layer when we need the number (strategic resources) 2025-01-24 11:48:28 +02:00
yairm210
31aaf3c61a chore: Genericify on-the-fly texture packing to be source agnostic 2025-01-24 10:53:43 +02:00
yairm210
6c2fd82c41 chore: Stat image setup separated to a distinct function - we don't need to keep it around! 2025-01-24 10:47:56 +02:00
yairm210
e4b3d2e6e9 perf(render): Separate resource icons into separate layer 2025-01-24 10:46:33 +02:00
yairm210
d34d2cb092 Correctly reset pixmap packer when loading a new ruleset 2025-01-23 17:48:45 +02:00
yairm210
6234171a55 perf(render): Yields rendered from a dynamically created texture 2025-01-23 17:45:29 +02:00
yairm210
af80570b25 perf(render): Separate yields to different tile layer 2025-01-23 17:36:50 +02:00
yairm210
50088a56f8 chore: Added debug passthrough functions to rendered elements 2025-01-23 15:02:45 +02:00
yairm210
7828aa9887 Resolved #12843 - Automation handles "Found City" uniques with limited uses correctly 2025-01-22 21:42:07 +02:00
yairm210
21bfe2c79c 4.15.4 4.15.4 2025-01-22 17:50:15 +02:00
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