Commit Graph

4293 Commits

Author SHA1 Message Date
e61c6c2a90 4.12.1 2024-06-19 17:44:09 +03:00
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
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
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
79be14e291 Resolved #11082 - Added "Will not be replaced by automated units" unique 2024-06-17 23:12:50 +03:00
0a357e3598 Resolved #11758 2024-06-15 23:14:51 +03:00
9dfd82e002 4.12.0 2024-06-15 22:47:04 +03:00
5967f56f6d typo: rigg -> rig
Resolves #11748
2024-06-15 22:31:40 +03:00
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
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
546f7c79a2 4.11.19 2024-06-10 23:00:08 +03:00
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
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
c89b2666c9 Specific uniques to generic trigger: "upon expending a [mapUnitFilter] unit" 2024-06-10 17:35:23 +03:00
2f8b8ca974 4.11.18 2024-06-08 23:33:38 +03:00
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
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
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
1296b16f90 4.11.17 2024-06-04 18:18:49 +03:00
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
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
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
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
5404b97009 4.11.16 2024-05-30 00:07:01 +03:00
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
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
5739afe173 Resolved #11643 - Mamalahoe Kawanai -> Kanawai Mamalahoe 2024-05-27 14:09:06 +03:00
265b2d6292 4.11.15 2024-05-27 14:02:33 +03:00
0c95fdc4e7 4.11.15 2024-05-27 12:44:53 +03:00
64ef738fd7 Version rollout (#11652)
* Bump version and create initial changelog entry

* Create Zulu.properties (#11634)

zulu language translation for unciv, very early, will continue transcribing.

* Updates + Fixes to Belarusian, Russian, Italian (#11633)

* Updates + Fixes to Belarusian

Even more content

* Russian Update

* Revert "Russian Update"

This reverts commit 0b44358510.

* Italian + Russian + BelarusianUpdate

Update for Belarusian

* Update Indonesian.properties (#11632)

Corrected the mistranslation.

* Add a few translations to Ukrainian (#11629)

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

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: graycloud0 <151023736+graycloud0@users.noreply.github.com>
Co-authored-by: GameBoyNoob <94763659+GameBoyNoob@users.noreply.github.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
Co-authored-by: Kostiantyn Ko <test9@mormat.name>
Co-authored-by: Kostiantyn Ko <mormat.iam@gmail.com>
2024-05-27 12:41:12 +03:00
ba56374ee2 Added the Espionage civilopedia entry (#11597)
* Added the Espionage civilopedia entry

* Spelling and grammar fixes

* Update Espionage cyclopedia entry to use newer format
2024-05-27 12:31:56 +03:00
0412d4f143 Revert Espionage button icon (#11630)
* Reverted spy button to show the spy white icon

* Changed the docs credits

* Espionage button now uses a separate path

* Reverted changing Icons.png

* Changed Espionage.png to the new sprite
2024-05-27 12:31:04 +03:00
c5df845611 Fix bug in ModConstants handling (#11645)
* Fix a few unhelpful mod checker warnings

* Fix a problems with ModConstants and unit tests for them

* Minor linting
2024-05-27 12:30:51 +03:00
b78f887124 Some minor behind-the-scenes UI architecture changes (#11639)
* Some UI architecture changes

* Some UI architecture changes - merge Kdoc update from another PR

* Remove experimental status of the key bindings UI

* Minor update to keyboard tutorials

* Minor readability linting: A few color names instead of hex codes

* Fix links from Options not working when called from MainMenuScreen
2024-05-27 12:30:34 +03:00
199a684409 Support for Zulu language (#11644) 2024-05-27 12:30:21 +03:00
860989571a 4.11.14 2024-05-21 20:22:21 +03:00
a2fe888b98 Version rollout (#11628)
* Bump version and create initial changelog entry

* Revive of Belarusian language (#11627)

* Update Catalan.properties (#11619)

* Add translations to Ukrainian (#11617)

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

* Update French.properties (#11612)

* Update Spanish.properties (#11611)

* Update Brazilian_Portuguese.properties (#11610)

* Update Simplified_Chinese.properties (#11607)

* Update Simplified_Chinese.properties

* Update Simplified_Chinese.properties

* Update Simplified_Chinese.properties

* Update Simplified_Chinese.properties

* Update Indonesian.properties (#11605)

* Update Indonesian.properties

Translated the new words and corrected some mistranslation.

* Update Indonesian.properties

* Update Indonesian.properties

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: GameBoyNoob <94763659+GameBoyNoob@users.noreply.github.com>
Co-authored-by: Joan Josep <juanjo.ng.83@gmail.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: Caballero Arepa <78449553+Caballero-Arepa@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
Co-authored-by: AutumnPizazz <114050365+AutumnPizazz@users.noreply.github.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
2024-05-21 20:12:13 +03:00
36621e7d69 Default city for hexarealm does NOT have a question mark 2024-05-19 23:55:43 +03:00
4d728914f4 4.11.13 2024-05-16 08:32:15 +03:00
99801c797d Version rollout (#11602)
* Bump version and create initial changelog entry

* Update French.properties (#11599)

* Update Indonesian.properties (#11598)

* Update Indonesian.properties

Translated all the new words and corrected the mistranslated words.

* Update Indonesian.properties

* Update Indonesian.properties

* Update Brazilian_Portuguese.properties (#11595)

* Update Italian.properties (#11594)

* Update Ukrainian translations (#11593)

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

---------

Co-authored-by: yairm210 <yairm210@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: Vitor Gabriel <59321138+Ranbut@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>
2024-05-16 08:21:16 +03:00
0aa70668cc Barbarian water units no longer pillage 2024-05-16 07:06:21 +03:00
c7a7bf1474 City state coup (#11586)
* Added coup success calculation

* Added a coup button

* Added a coup button functionality

* Improved coup chance calculation

* Added coup effects

* Fixed random value being too high

* Fixed percent chance roll

* Hid enemy spy factor from the chance text

* Added coup notifications

* Added translations

* Updated a notification

* Style changes

* Put some text onto multiple lines

* Fixed "failed staged" notification

* Added missing translation

* Finished fixing merge conflicts

* Added AI to city-state coups

* Coup notifications are now sent to the spectators as well

* Changed spy rank modifier to be additive
2024-05-16 07:02:37 +03:00
1fed88acf6 Espionage icons (#11600)
* Icons for Espionage Buildings

* Update WorldScreen top left buttons
2024-05-16 07:01:47 +03:00
66634dba0e 4.11.12 2024-05-14 11:23:52 +03:00
903cabed27 Version rollout (#11592)
* Bump version and create initial changelog entry

* Update Ukrainian translations (#11589)

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

* Update French.properties (#11585)

* Update Brazilian_Portuguese.properties (#11582)

* Update Indonesian.properties (#11580)

Added new translation and corrected the mistranslation.

---------

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: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
2024-05-14 11:18:51 +03:00
50274a42ad Corrected Coast yields to give 1 Food and 1 Gold (#11583)
* Coast also yields 1 Gold

* Coast also yields 1 Gold and 1 Food in Vanilla
2024-05-14 10:59:18 +03:00
eb79a777a2 City state election rigging (#11577)
* Added city-state Elections

* Added Elections notifications

* Removed temporary rigging elections in Spy.kt

* Modified votes from influence a little

* Fixed rigging election turns

* Fixed elections

* Randomised city-state election days

* Refactored geCapital

* Refactored election random to use randomWeighted

* Fixed getSkillModifier being private

* Updated translations and fixed a notification for election rigging
2024-05-14 10:58:07 +03:00
a8c0bef379 4.11.11 2024-05-11 21:49:47 +03:00
3f4a4aa93b Version rollout (#11579)
* Bump version and create initial changelog entry

* Update Turkish.properties (#11573)

* Update Turkish.properties

* Update Turkish.properties

* Update Turkish.properties

* Update Turkish.properties

* Update Brazilian_Portuguese.properties (#11566)

* Update Brazilian_Portuguese.properties

* Update Brazilian_Portuguese.properties

* Update Brazilian_Portuguese.properties

* Update French.properties (#11565)

* Update Italian.properties (#11564)

* Update Indonesian.properties (#11563)

* Update Indonesian.properties

Added and fixed the translation.

* Update Indonesian.properties

* Update Indonesian.properties

* Update Indonesian.properties

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: komandotayfa <53448093+komandotayfa@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@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: X2003 <158255876+Xenia2003@users.noreply.github.com>
2024-05-11 21:44:44 +03:00
19be96335d Removed dead "Start golden age" unit action - #11576 2024-05-11 21:44:30 +03:00