Commit Graph

3876 Commits

Author SHA1 Message Date
Yair Morgenstern
9b3ea6beb3 Resolved #11890 - oxipng lossless compression 2024-07-02 00:00:04 +03:00
yairm210
0f07ec93e4 DAMN you autoformat 2024-06-30 10:45:49 +03:00
yairm210
96db86cdc2 translation: Map types section clarity 2024-06-30 00:58:31 +03:00
yairm210
2f99b166eb 4.12.6 2024-06-30 00:39:17 +03:00
Yair Morgenstern
05ccc84201
Version rollout (#11883)
* Bump version and create initial changelog entry

* Update translations to Ukrainian (#11880)

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

* Update French.properties (#11878)

* Update Simplified_Chinese.properties (#11876)

* Update Simplified_Chinese.properties

* Update Simplified_Chinese.properties

* Update Indonesian.properties (#11873)

Translated the new words and corrected the symbols.

* Update Brazilian_Portuguese.properties (#11872)

* Update Brazilian_Portuguese.properties

* Update Brazilian_Portuguese.properties

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Kostiantyn Ko <test9@mormat.name>
Co-authored-by: Kostiantyn Ko <mormat.iam@gmail.com>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: 焕晨HChen <123531821+HChenX@users.noreply.github.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
2024-06-30 00:19:06 +03:00
SomeTroglodyte
b5622df92d
Support for languages using Diacritics as multi-codepoint joiners (#11806)
* Diacritics support - achieving 1-Char-Per-Glyph via a fake alphabet

* Diacritics support - Redesign state engine and polishing

* Diacritics support - Unit test

* Diacritics support - Expand unit test to cover more cases

* Diacritics support - Expand unit test to cover more cases

* Clarify a function name

* Change format of diacritic definitions

* Refactor DiacriticSupport to per-language class with statics in Companion

* Update DiacriticSupport to use CharCategory and enable support of surrogate pairs

* Documentation
2024-06-29 23:39:46 +03:00
yairm210
87b9a71c03 4.12.5 2024-06-27 23:48:14 +03:00
Yair Morgenstern
d6ee828e4e
Version rollout (#11871)
* Bump version and create initial changelog entry

* Update Catalan.properties (#11869)

* Update Simplified_Chinese.properties (#11868)

* Update Simplified_Chinese.properties

* Update Simplified_Chinese.properties

* Provide translations to Ukrainian (#11867)

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

* Update Italian.properties (#11866)

* Update French.properties (#11862)

* galician translate (#11848)

* Add files via upload

* Update Galician.properties

under construction

* Update Galician.properties

corrections and translated more

* Update Galician.properties

all lines translated, errors missing

* Update Galician.properties

Complete translation, revised brackets, pending text revision but already functional

* Update Galician.properties

* Update Galician.properties

correxida liña 637 posto [time] que e o correcto.

* Update Galician.properties

revisado ata 2000

* Update Galician.properties

repair line 1496 and 1905

* Update Galician.properties

lines 1496 to 1499 repair

* Update Galician.properties

hei por he varias, liña 995 correxida

* Update Galician.properties

+ correccions

* Update Galician.properties

starting the translation again and little by little to see if we can make it through this one, the other one pains me to say but it was real garbage.

Only the first 500 lines have been translated to check for errors

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Joan Josep <juanjo.ng.83@gmail.com>
Co-authored-by: 焕晨HChen <123531821+HChenX@users.noreply.github.com>
Co-authored-by: Kostiantyn Ko <test9@mormat.name>
Co-authored-by: Kostiantyn Ko <mormat.iam@gmail.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: ninjum <138787523+ninjum@users.noreply.github.com>
2024-06-27 23:37:04 +03:00
yairm210
7b89d1ef57 4.12.4 2024-06-27 00:41:40 +03:00
Yair Morgenstern
855d3be220
Version rollout (#11860)
* Bump version and create initial changelog entry

* Provide translations to Ukrainian (#11853)

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

* Update French.properties (#11850)

* Update Indonesian.properties (#11849)

Translated the new words.

* Update Italian.properties (#11846)

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Kostiantyn Ko <test9@mormat.name>
Co-authored-by: Kostiantyn Ko <mormat.iam@gmail.com>
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>
2024-06-27 00:36:27 +03:00
SomeTroglodyte
6935833919
UI: Improve load game screen - better feedback, missing templates (#11856)
* Improve load game screen - better feedback, missing templates

* Minor drive-by template comment fix
2024-06-27 00:34:17 +03:00
yairm210
c42170a4b8 Fix base rulesets 2024-06-26 09:35:40 +03:00
yairm210
095c4faed6 Countables for Cities, Units, Buildings allow filters 2024-06-25 23:56:01 +03:00
yairm210
d640ed9557 Revert "Better countables - phase 1"
This reverts commit 7165c62573.
2024-06-25 23:44:10 +03:00
yairm210
7165c62573 Better countables - phase 1 2024-06-25 23:43:11 +03:00
yairm210
f7f5ab78d3 4.12.3 2024-06-25 16:17:29 +03:00
Yair Morgenstern
cc90f48b1e
Version rollout (#11844)
* Bump version and create initial changelog entry

* Apply a few fixes to wording in Ukrainian (#11840)

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

* Update Italian.properties (#11838)

* Update Indonesian.properties (#11814)

Corrected a capitalisation and translated the new words.

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Kostiantyn Ko <test9@mormat.name>
Co-authored-by: Kostiantyn Ko <mormat.iam@gmail.com>
Co-authored-by: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
2024-06-25 16:12:01 +03:00
yairm210
2093761e2d Resolved #11829 - "after [amount] turns" -> "after turn number [amount]" 2024-06-25 16:01:57 +03:00
Yair Morgenstern
0f683b1725 Resolves #11758 - fix typos in new tutorials 2024-06-24 23:36:37 +03:00
yairm210
2bd36b14d2 4.12.2 2024-06-23 00:08:46 +03:00
Yair Morgenstern
cbd8193867
Version rollout (#11812)
* Bump version and create initial changelog entry

* Provide translations to Ukrainian (#11809)

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

* Update Simplified_Chinese.properties (#11805)

* Update Simplified_Chinese.properties

Has been a long time since my last translation. (Seems to be, a few months?)

* Update Simplified_Chinese.properties

* Update Spanish.properties (#11797)

* Update French.properties (#11796)

* Update Indonesian.properties (#11794)

Translated the new words.

* Update Hungarian.properties (#11793)

* Update Hungarian.properties

* Update Hungarian.properties

* Update Brazilian_Portuguese.properties (#11792)

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Kostiantyn Ko <test9@mormat.name>
Co-authored-by: Kostiantyn Ko <mormat.iam@gmail.com>
Co-authored-by: heipizhu4 <100454479+heipizhu4@users.noreply.github.com>
Co-authored-by: Caballero Arepa <78449553+Caballero-Arepa@users.noreply.github.com>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
Co-authored-by: balazsszalab <balazsszalab@freemail.hu>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
2024-06-22 23:54:31 +03:00
SomeTroglodyte
fcc0b999d0
Clarify translation template header of the obsoleted tutorial tasks (#11811) 2024-06-22 23:53:25 +03:00
yairm210
e61c6c2a90 4.12.1 2024-06-19 17:44:09 +03:00
Yair Morgenstern
6ac3393e9b
Version rollout (#11791)
* Bump version and create initial changelog entry

* Update Italian.properties (#11782)

* Update Italian.properties (#11781)

Some minor improvement

* Update Hungarian.properties (#11776)

* Update Hungarian.properties

* Update Hungarian.properties

* Update Hungarian.properties

* Update Hungarian.properties

* Update Spanish.properties (#11773)

* Update Indonesian.properties (#11766)

Translated the new word.

* Fix Sipahi translation for RU — should be 'Сипахи', not 'Сипаи' (#11764)

* Update Catalan.properties (#11759)

Co-authored-by: yairm210 <yairm210@hotmail.com>

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: andrestu <82871275+andrestu@users.noreply.github.com>
Co-authored-by: balazsszalab <balazsszalab@freemail.hu>
Co-authored-by: Caballero Arepa <78449553+Caballero-Arepa@users.noreply.github.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
Co-authored-by: Stas Fomin <stas-fomin@yandex.ru>
Co-authored-by: Joan Josep <juanjo.ng.83@gmail.com>
2024-06-19 17:38:53 +03:00
Oskar Niesen
fec30364a9
Moved automation settings to AutoPlayTab and renamed it to AutomationTab (#11765)
* Moved automation settings to AutoPlayTab

* Renamed the AutoPlayTab to AutomationTab

* Added a translation
2024-06-19 17:13:25 +03:00
SpacedOutChicken
dc9bf45009
- Turn Privateer's unique ability into a promotion (#11761)
- Add promotion to Privateer and Sea Beggar
2024-06-19 17:13:15 +03:00
Yair Morgenstern
79be14e291 Resolved #11082 - Added "Will not be replaced by automated units" unique 2024-06-17 23:12:50 +03:00
Yair Morgenstern
0a357e3598 Resolved #11758 2024-06-15 23:14:51 +03:00
Yair Morgenstern
9dfd82e002 4.12.0 2024-06-15 22:47:04 +03:00
Yair Morgenstern
5967f56f6d typo: rigg -> rig
Resolves #11748
2024-06-15 22:31:40 +03:00
Yair Morgenstern
0794b800fc
Version rollout (#11757)
* Bump version and create initial changelog entry

* Update Hungarian.properties (#11753)

* Provide translations to Ukrainian (#11750)

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

* Update Catalan.properties (#11749)

* Update French.properties (#11738)

* Update Brazilian_Portuguese.properties (#11737)

* Update Italian.properties (#11736)

* Update Indonesian.properties (#11733)

* Update Indonesian.properties

Translated the new words.

* Update Indonesian.properties

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: balazsszalab <balazsszalab@freemail.hu>
Co-authored-by: Kostiantyn Ko <test9@mormat.name>
Co-authored-by: Kostiantyn Ko <mormat.iam@gmail.com>
Co-authored-by: Joan Josep <juanjo.ng.83@gmail.com>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
Co-authored-by: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
2024-06-15 22:30:55 +03:00
Oskar Niesen
2b8c965d6b
Personality implementation (#11729)
* Add Personalities.json

* Personality tags

* Askia, Attila, Augustus Personalities

* Bismark & Boudica

* Added parsed personalities

* Linked Personalities to their nation

* Tweaked some personalities

* Added the declareWar Personality

* Fixed some misnaming

---------

Co-authored-by: Caballero Arepa <78449553+Caballero-Arepa@users.noreply.github.com>
2024-06-15 22:02:51 +03:00
Yair Morgenstern
546f7c79a2 4.11.19 2024-06-10 23:00:08 +03:00
Yair Morgenstern
2896181bbb
Version rollout (#11727)
* Bump version and create initial changelog entry

* Update translations to Ukrainian (#11723)

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

* Update Italian.properties (#11722)

* Update Simplified_Chinese.properties (#11721)

* Update Simplified_Chinese.properties

* Update Simplified_Chinese.properties

* Update German translation (#11720)

* Update French.properties (#11716)

* Update Brazilian_Portuguese.properties (#11715)

* Update Indonesian.properties (#11714)

Translated the new words and corrected a few grammar mistakes.

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Kostiantyn Ko <test9@mormat.name>
Co-authored-by: Kostiantyn Ko <mormat.iam@gmail.com>
Co-authored-by: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
Co-authored-by: AutumnPizazz <114050365+AutumnPizazz@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: X2003 <158255876+Xenia2003@users.noreply.github.com>
2024-06-10 22:55:01 +03:00
SomeTroglodyte
d39c7a97bf
Use Events for the floating "Tutorials" (#11717)
* Split off reuses of CityStateIcons/Cultured to allow modding separately

* Reposition floating tutorials in case the TopBar moved its buttons

* Event definition, art and basic support

* Split off Event rendering from AlertPopup

* Support Event presentation modes and replace hardcoded floating tutorials

* "Meet another civilization" art - can't find any better

* Tweak TranslationFileWriter and some polishing
2024-06-10 22:22:18 +03:00
yairm210
c89b2666c9 Specific uniques to generic trigger: "upon expending a [mapUnitFilter] unit" 2024-06-10 17:35:23 +03:00
Yair Morgenstern
2f8b8ca974 4.11.18 2024-06-08 23:33:38 +03:00
Yair Morgenstern
fe72b8f012
Version rollout (#11711)
* Bump version and create initial changelog entry

* Provide missing Ukrainian translations (#11710)

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

* Update Indonesian.properties (#11697)

* Update Indonesian.properties

Translated the new words and fixed some grammar mistakes.

* Update Indonesian.properties

* Update French.properties (#11695)

* Update Brazilian_Portuguese.properties (#11694)

* Update Italian.properties (#11693)

* Update Italian.properties

* Update Italian.properties

---------

Co-authored-by: yairm210 <yairm210@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>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
Co-authored-by: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
2024-06-08 22:21:23 +03:00
Yair Morgenstern
68e29e9c53
"(modified by game speed)" modifier (#11696)
* "(modified by game speed)" modifier

* Added missing flags

* Fixed G&K ruleset
2024-06-08 21:58:52 +03:00
Oskar Niesen
9cd531c8cf
Reworked AI war evaluation and plans (#11688)
* hasAtLeastMotivationToAttack now takes uses City.neighboringCities

* Changed attack pathing to use Astar

* Made the base force higher

* Declare war checks for total population instead of number of cities

* MotivationToAttackAutomation takes into account denunciation

* Set up DeclareWarTargetAutomation.kt

* Added logic for Civs to try and gang up on other Civs

* Added logic for civs to try and join an ally civ in their war and to declare war directly

* Added declineJoinWarOffer flag

* Reduced the likelyhood of declaring war a little

* Civs don't try to join wars against city-states

* Removed calculating targets with 0 motivation

* Relative production is not calculated against city-states

* Improved getAttackPathsModifier to only calculate the best path per city

* Refactored filter statements

* AI now tries to execute planned wars by default

* Culture Civs can now declare war, AI can declare multiple wars

* AI won't gift gold to city-states that it wants to attack

* Changed motivation from combat

* Changed AI aggression towards city-states

* Civs don't want to sign a DOF with the only nearby major civ as much

* City.neighboringCities filters out cities that are not visible

* Fixed some conditionals in tryJoinWar

* Fixed some war plan types breaking instead of continuing

* Civs are more likely to sign open borders if they haven't seen their cities

* Changed far away cities to have less of a value

* Fixed neighboringCities and getNeighboringCivilizations

* Other fixes

* Reduced motivation to attack from relative strength

* Added more to motivation to attack

* Added extra friendship modifiers

* Moved war evaluation to WarPlanEvaluator

* Added comments and re-named preparingWarPlan

* AI Team wars require neutral relations to send

* Added a team war notification

* Added evaluation of join war trades

* Tweaked MotivationToAttackAutomation

* Improved peace deal offers

* AI peace deals wait until 10 turns after declaring war

* Made the AI declare war a little less

* AI builds more military units

* AI keeps at least 2 great generals to not build citadels with

* AI TeamWar is more specialized for fighting stronger Civs

* Removed extra line

* Added more comments

* Improved unit tryPrepare logic

* Minor respelling and style improvements

* Changed MotivationToAttackAutomation HashMap to be a list

* Added a heuristic for the Astar search

* TeamWarPlan focuses more on relative force and fighting stronger civs

* MotivationToAttackAutomation takes into account planned wars and can target stronger civs

* Added logic for AI's to request other civs to join their war

* Fixed some WarDeclaration TradeEvaluation logic and reduced costs

* Added some extra safety against extreme force values in DeclareWarPlanEvaluator
2024-06-08 21:56:51 +03:00
yairm210
1296b16f90 4.11.17 2024-06-04 18:18:49 +03:00
Yair Morgenstern
533e6b7832
Version rollout (#11692)
* Bump version and create initial changelog entry

* Update Spanish.properties (#11685)

* Update German translation (#11672)

* Update Brazilian_Portuguese.properties (#11671)

* Update French.properties (#11670)

* Update Indonesian.properties (#11669)

Translated the new words and corrected the mistranslated words.

* Update Italian.properties (#11606)

* Update Italian.properties

* Update Italian.properties

* Add translations to Ukrainian (#11684)

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

* Update Polish.properties (#11679)

* Update Polish.properties

* Update Polish.properties

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Caballero Arepa <78449553+Caballero-Arepa@users.noreply.github.com>
Co-authored-by: mape6 <mape6@posteo.de>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
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: Kostiantyn Ko <test9@mormat.name>
Co-authored-by: Kostiantyn Ko <mormat.iam@gmail.com>
Co-authored-by: Lesiakower <125187776+Lesiakower@users.noreply.github.com>
2024-06-04 18:13:26 +03:00
Oskar Niesen
ba0c5cfbae
Spy max rank can be modded (#11650)
* Changed the spy level cap to be a mod constant

* Spy rank shows with more stars

* Reverted some temporary debug changes

* Changed Promotes all spies to accept an amount

* Change Promotes all spies [amount] time(s) to have parenthesis around the s

* Fixed problem with merging
2024-06-04 18:03:48 +03:00
Oskar Niesen
9e6e157835
Added an option to disable move by long press (#11681)
* Added an option to disable move by long press

* Moved setting check to tileGroup.onActivation and changed it to check for longTapMove

* Added translation
2024-06-04 18:02:01 +03:00
SomeTroglodyte
a046e43dbf
UI candy: WLTK fireworks (#11616)
* Particle effect fireworks for WLTK

* Refactor fireworks, try another location calculation

* Save todo list

* Fireworks assets

* ParticleEffectAnimation framework refactor and FasterUIDevelopment

* ParticleEffectAnimation rework - works correctly now

* ParticleEffectAnimation - credits and fine-tune

* ParticleEffectAnimation - atlas

* ParticleEffectAnimation - clean up testing code

* ParticleEffectAnimation - fix bungled texture move
2024-06-04 18:00:44 +03:00
yairm210
5404b97009 4.11.16 2024-05-30 00:07:01 +03:00
Yair Morgenstern
371f9639c1
Version rollout (#11667)
* Bump version and create initial changelog entry

* Update Indonesian.properties (#11662)

* Update Indonesian.properties

Translated the new words and fixed some mistranslated words.

* Update Indonesian.properties

* Update Spanish.properties (#11661)

* Update French.properties (#11660)

* Update Brazilian_Portuguese.properties (#11656)

* Update Brazilian_Portuguese.properties

* Update Brazilian_Portuguese.properties

* Update Italian.properties (#11655)

* Update Italian.properties

* Update Italian.properties

Oops

* Update German translation (#11654)

* Update German translation

* Update German translation

* Update German translation

* Update German translation

* Update German translation

* Update Ukrainian.properties (#11653)

Co-authored-by: Viktoriia <158747182+moonytori@users.noreply.github.com>

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
Co-authored-by: Caballero Arepa <78449553+Caballero-Arepa@users.noreply.github.com>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
Co-authored-by: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
Co-authored-by: mape6 <mape6@posteo.de>
Co-authored-by: Viktoriia <158747182+execsuvikky@users.noreply.github.com>
Co-authored-by: Viktoriia <158747182+moonytori@users.noreply.github.com>
2024-05-30 00:00:11 +03:00
SomeTroglodyte
d82669d26c
Tune "work has started" notification (#11663)
* Make UncivGame.screenStack private

* Tune "work has started" notification

* Remove obsolete template (since commit [25b1259](25b1259ab6))

* Linting

* General suppression of duplicate notifications

* Little cheap optimization
2024-05-29 23:58:36 +03:00
yairm210
5739afe173 Resolved #11643 - Mamalahoe Kawanai -> Kanawai Mamalahoe 2024-05-27 14:09:06 +03:00
yairm210
265b2d6292 4.11.15 2024-05-27 14:02:33 +03:00