Commit Graph

10546 Commits

Author SHA1 Message Date
yairm210
a05b8e4177 "Consumes resources" unique not displayed twice for units 2024-07-01 19:19:47 +03:00
yairm210
41c7e4e9b1 Remove "wildcard imports" as a detekt warning 2024-07-01 19:03:22 +03:00
yairm210
b20c89733b Don't give simulation stats for civs that never won 2024-07-01 09:50:57 +03:00
yairm210
dcaf3bd68e Split tr() into subfunctions, was getting very large for a single function 2024-07-01 09:21:48 +03:00
yairm210
2ef7c15538 Added "generic civ" comparisons to ConsoleLauncher, for testing AI changes 2024-07-01 00:13:14 +03:00
yairm210
37b9943ff3 Added promotionName as possible value for mapUnitFilter 2024-06-30 23:43:28 +03:00
yairm210
3dbedf04ba FINALLY got ConsoleLauncher returning actual simulation results!! 2024-06-30 23:36:56 +03:00
partev
36c7f0b2d9
IOS -> iOS (#11889)
minor clean up
2024-06-30 18:43:02 +03:00
yairm210
346d5626d2 Remove 10% rollout of Google Play - practically I don't have time to deal with that, 100% for everything 2024-06-30 11:01:51 +03:00
yairm210
0f07ec93e4 DAMN you autoformat 2024-06-30 10:45:49 +03:00
yairm210
c2ca4e6acb 4.12.6-patch1 2024-06-30 07:36:02 +00:00
Yair Morgenstern
0d45915df9
Hotfix for endless stats (#11888) 2024-06-30 10:35:54 +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
EmperorPinguin
e3ca17b3bf
AI behaviour changes (#11839)
* AI behaviour changes

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update ConstructionAutomation.kt

* Update Automation.kt

* Reverting some changes

* Changes

* revert changes

* revert changes

* revert changes

* revert changes

* Update CityLocationTileRanker.kt

* Citizen assignment for stat conversion

* Update CityLocationTileRanker.kt

* Reduce AI settling

* Avoid AI building units when in negative Supply

* Update CityLocationTileRanker.kt

* Update CityLocationTileRanker.kt

* Update CityLocationTileRanker.kt

* Update ConstructionAutomation.kt

* Update build.gradle.kts

* Update gradle-wrapper.properties

* Update CityLocationTileRanker.kt

* Update CityLocationTileRanker.kt

* Update ConstructionAutomation.kt

* Update CityLocationTileRanker.kt
2024-06-30 00:18:45 +03:00
SomeTroglodyte
3a16fcb021
Minor TranslationFileWriter maintenance (#11858)
* Replace confusing `[Food] Focus` template with prettier `[stat] Focus`

* Minor lint
2024-06-29 23:57:42 +03:00
Oskar Niesen
4bb9d3bbc9
Improved UnitAutomation tryPrepare() cityToDefend evaluation (#11879) 2024-06-29 23:57:18 +03:00
焕晨HChen
4db4400105
Optimize screen orientation (#11875) 2024-06-29 23:57:11 +03:00
Oskar Niesen
15d532e287
Warmongering doesn't apply to civs that are angry at the target civ (#11874)
* Team war now applies warmongering

* Shared war now applies to team war
2024-06-29 23:57:03 +03:00
yairm210
dc09ab883b Fix detekt 2024-06-29 23:56:40 +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
0f2a697ba6 Many lazies for things that remain permanent, and profiling shows are frequently used 2024-06-29 23:39:10 +03:00
yairm210
d44fa75be4 Revert "perf: Civ.isBarbarian to lazy ("what could this possibly save", 100ms out of 30s)"
This reverts commit 02737eb031.
2024-06-28 17:31:21 +03:00
yairm210
4bf62888c0 revert some changes 2024-06-28 17:31:15 +03:00
yairm210
98a3ec7805 perf: Don't update civ stats on auto assign population 2024-06-28 16:13:04 +03:00
yairm210
02737eb031 perf: Civ.isBarbarian to lazy ("what could this possibly save", 100ms out of 30s) 2024-06-28 15:40:19 +03:00
yairm210
1dfa7e4677 perf: Many performance improvements, large and small 2024-06-28 15:29:37 +03:00
yairm210
34c19398ae 4.12.5-patch1 2024-06-28 11:48:11 +00:00
Yair Morgenstern
d6940afe79
Patch: Fix automation breaking on unknown units with no improvement placements (#11877) 2024-06-28 14:48:03 +03:00
yairm210
6315984da7 perf: sequenceOf() -> emptySequence() 2024-06-28 13:07:08 +03:00
yairm210
ee5d06d187 perf: small 1% cpu optimizations 2024-06-28 00:32:18 +03:00
yairm210
922f459aa4 condition -> conditional 2024-06-27 23:57:56 +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
SeventhM
d92b65cd58
Consider passive strength bonuses for force value (#11863) 2024-06-27 23:26:57 +03:00
SomeTroglodyte
1c25839ddb
On desktop, replace Gdx clipboard with a proxy using AWT (#11857) 2024-06-27 23:26:48 +03:00
SeventhM
e5e52fe916
Pass in civ for building on tiles (#11861) 2024-06-27 23:26:38 +03:00
SomeTroglodyte
bebc769120
Treat compilation warnings (#11741)
* Treat compilation warnings

* Finish treating compiler warnings for now
2024-06-27 23:26:26 +03:00
SomeTroglodyte
8da58ed34a
Add a Unique allowing an Improvement to specify which Resource(s) it improves (#11718)
* Linting

* Add UniqueType.ImprovesResources

* Address reviews and extensive Kdoc

* Oops, better include the generated stuff
2024-06-27 23:26:14 +03:00
yairm210
c9bcf10f2a naming: TradeType -> TradeOfferType 2024-06-27 23:18:16 +03:00
yairm210
432f2fad89 Upgrade Kotlin &co - #11870 2024-06-27 23:13:40 +03:00
yairm210
b43839392d Re-add 'construct great improvement' automation for great units that can't do their main actions 2024-06-27 23:13:05 +03:00
yairm210
929a3b7f22 Resolved #11864 - Promotion added to unit with that promotion does not retrigger trigger uniques 2024-06-27 15:54:35 +03:00
yairm210
195a251ff3 Resolved #11865 - unified unit availability checks to one function 2024-06-27 15:16:58 +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
8be450e6ba Triggered uniques accept multiplying modifiers 2024-06-27 00:33:31 +03:00
yairm210
1da5410324 Religion beliefs are private, uniques are cached 2024-06-27 00:33:31 +03:00