Commit Graph

7484 Commits

Author SHA1 Message Date
yairm210
ea1073c208 chore: TranslatedSelectBox doesn't need a skin parameter when it always uses the default anyway 2024-07-11 16:54:19 +03:00
yairm210
b58b73a790 Added "Can only start games from the starting era" conditional, "if [buildingFilter] is not constructed" unique 2024-07-11 16:34:03 +03:00
yairm210
2b752866bf Resolved #11941 - AI no longer declares war against defeated civs 2024-07-11 16:13:41 +03:00
yairm210
075a5c70c7 Unified AI and Human gold purchase logic 2024-07-11 13:23:44 +03:00
yairm210
2b65d59e77 Ruleset validation: Catch "building required for victory milestone but does not exist" errors 2024-07-10 23:35:21 +03:00
yairm210
6e389de4b2 "Will not be replaced by automated units" unique fix 2024-07-10 11:55:45 +03:00
yairm210
d7c606880f EOF 2024-07-10 10:37:43 +03:00
yairm210
b58570294b Separate tile update functions from the rest of WorldMapHolder, it's too big 2024-07-10 00:09:15 +03:00
yairm210
f021fb692d UNIT MOVEMENT ANIMATION
LET'S FUKKEN GO
2024-07-09 23:57:45 +03:00
yairm210
7c1e0c0d25 chore: renames 2024-07-09 23:28:18 +03:00
yairm210
a11d489bd6 chore: renames 2024-07-09 23:25:31 +03:00
Yair Morgenstern
05f7ac1529
Version rollout (#11935)
* Bump version and create initial changelog entry

* Update Turkish.properties (#11930)

* Update Simplified_Chinese.properties (#11923)

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: ygz213 <77006222+ygz213@users.noreply.github.com>
Co-authored-by: AutumnPizazz <114050365+AutumnPizazz@users.noreply.github.com>
2024-07-09 17:57:56 +03:00
SomeTroglodyte
3b40620cd6
UX: Notifications for map units select better when tapped (#11921)
* Use MapUnitAction for more notifications

* Enable MapUnitAction to select by ID

* Forgot "[N] of your cities can bombard..."
2024-07-09 17:25:38 +03:00
SomeTroglodyte
7b3a683c74
Fix GlobalPoliticsOverviewTable listing layout after switching back from diagram (#11934) 2024-07-09 17:24:49 +03:00
yairm210
3eb07c5956 Delete temporary files created when downloading mods 2024-07-09 14:03:33 +03:00
yairm210
28fc6a014c Allow purchasing air units whenever they can be built 2024-07-08 17:25:10 +03:00
yairm210
aee34de2f4 Resolved #10375 - ALWAYS reload images when loading
There were cases where the images would be changed out (in new game screen / mod screen) which led to reloading the same game causing missing images
2024-07-08 17:00:30 +03:00
yairm210
df96526f1e Resolved #11929 - Hidden conditionals are hidden in more places 2024-07-08 14:26:13 +03:00
yairm210
f31463782b URGH 2024-07-08 13:45:59 +03:00
yairm210
54e1555ddb Don't store it dammit 2024-07-08 13:45:31 +03:00
yairm210
15759b143f Resolve detekt error 2024-07-08 13:45:06 +03:00
yairm210
6ed43a2280 Resolved #11892 - Duplicate notifications are all shown
@SomeTroglodyte We need to better fine-tune the notification de-duplication, often we *do* want duplicates
2024-07-08 12:30:54 +03:00
yairm210
661d7a1b79 Resolved #11901 - Can no longer build infinite air units in cities 2024-07-08 00:24:25 +03:00
yairm210
13c1ef89a5 Resolved #11926 - Countable parameter doesn't display error for "[buildingFilter] Buildings" 2024-07-07 23:15:09 +03:00
yairm210
8b4d5195a3 Resolved #11886 - Friendship-based modifiers calculated correctly 2024-07-07 14:50:41 +03:00
Yair Morgenstern
351c515e02
Version rollout (#11917)
* Bump version and create initial changelog entry

* Ninjum patch 2 (#11916)

* Update Galician.properties

translate up to line 2000

* Update Galician.properties

line 2137

* Update Galician.properties

2249 line

* Update Galician.properties

translate up to line 2300

* Update Galician.properties

repair line 2269, translate up to line 2300

* Update Galician.properties

translate up to line 2400

* Update Galician.properties

translate up to line 2800

* Update Galician.properties

translate up to line 2800 and repair some lines

* Update Galician.properties

translate up to line 3200

* Update Galician.properties

translate up to line 3500

* Update Galician.properties

translate up to line 4090

* Update Galician.properties

translate up to line 4670

* Update Galician.properties

translate up to line 5057

* Update Galician.properties

translate update to line 6036

* Update Galician.properties

translate up to line 6700

* Update Galician.properties

all lines translated

* Update Turkish.properties (#11914)

* Update Catalan.properties (#11912)

* Update Hungarian.properties (#11910)

Added some translations

* Update Indonesian.properties (#11906)

Corrected the mistranslated word.

* Update Ukrainian translations (#11905)

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

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: ninjum <138787523+ninjum@users.noreply.github.com>
Co-authored-by: ygz213 <77006222+ygz213@users.noreply.github.com>
Co-authored-by: Joan Josep <juanjo.ng.83@gmail.com>
Co-authored-by: JurDan | Werewolf Cookie <80947706+JurDan775@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-07-05 16:17:46 +03:00
SomeTroglodyte
1483ac54b3
Fix TranslationFileWriter changing diacritic-using languages (#11913)
* Fix TranslationFileWriter so it works with original translations, not fake-alphabet-mapped ones.

* Kdoc and remove redundant code as per review
2024-07-05 16:10:24 +03:00
Md. Touhidur Rahman
461a7ac99d
Translate numbers to selected language (#11898)
* implement number translation

* fix previous error

* maybe this will fix things?

* try to make the regex more concise and fix the issues

* update implementation

* Transient cache

* implement Number.tr()

* Update core/src/com/unciv/models/metadata/GameSettings.kt

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

* fix formatting

* move getNumberFormatFromLanguage() to Translations.kt and cache NumberFormat

* remove null cases and resolve suggestions

* why was I doing this? I forgot.

* move getLocaleFromLanguage() to Translations.kt

* add tests

* Update TranslationTests.kt

fix issues

* also remove also

* fix all given cases

* fix missing language param

---------

Co-authored-by: Yair Morgenstern <yairm210@hotmail.com>
2024-07-05 16:09:19 +03:00
SomeTroglodyte
ebba2eaeea
Galician support (#11742)
* Galician support

* Redo Flags.atlas
2024-07-05 16:09:01 +03:00
yairm210
8ea510d239 perf: Don't update civ stats when calculating production for construction 2024-07-04 00:09:32 +03:00
yairm210
d9deb12df9 perf: Calculate resource modifiers *once* when calculating resources 2024-07-04 00:02:14 +03:00
yairm210
b6414aef9d Unified "all techs are researched" check 2024-07-03 23:43:11 +03:00
yairm210
32e7099ada perf: Add unique cache to building choices 2024-07-03 23:28:57 +03:00
yairm210
45ec525a47 perf: Send current tile stats when choosing improvement, ~6% CPU reduction 2024-07-03 23:19:21 +03:00
yairm210
740f7bdb93 Simulation - Print text on each simulation end, not just once at end of 2024-07-03 18:55:53 +03:00
yairm210
fba4128c02 Simulation civ names are constants, so we can reference them from wherever inside the code for A/B testing 2024-07-03 18:34:50 +03:00
yairm210
e397c52f4c Better simulation automation 2024-07-03 18:04:24 +03:00
yairm210
698b7db255 Added missing deprecation validation for unit uniques 2024-07-03 15:09:34 +03:00
Yair Morgenstern
ebd7f0cd34
Version rollout (#11902)
* Bump version and create initial changelog entry

* Update Italian.properties (#11897)

* Update French.properties (#11894)

* Update translations to Ukrainian (#11893)

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

* Update Indonesian.properties (#11887)

Put "" on the right of diacritics support codes.

* Bangla Translations (15%) (#11755)

* Start Bangla Translations

* translations from previous night

* try to fix linting errors

* Update GameSettings.kt

* Update completionPercentages.properties

* Add Bangladeshi Circular Flag

Designed by: Md. Touhidur Rahman (@touhidurrr)
Special thanks to: H M Naimuzzaman Shuvo

* Update Credits.md

* add changes from 0a357e3 and 5967f56

* start managing requires translation strings to track translation progress

* add more translations

* fix png metadata

* interlacing, rgba 16, compression 1, anitalias 2

* Update Credits.md

* add more translations

* add more translations, reached 500th line!

* possibly last commit for now

* fix flag issue

* add diacritics support stuff, thanks to #11806

* update diacritics settings for ae779ed and complete main screen translations for testing

* add some translations

* support modified diacritics settings

* Add changes from recent commits and some translations

* save work. lines translated: 1103 / 5665 (19.47%), characters translated: 24856 / 198675 (12.51%).

* Update completionPercentages.properties

---------

Co-authored-by: yairm210 <yairm210@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: 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: Md. Touhidur Rahman <46617994+touhidurrr@users.noreply.github.com>
2024-07-02 21:19:41 +03:00
Oskar Niesen
bcbe6a6812
Fixed team war giving "they declared war on us" notification to a civ declaring war (#11900) 2024-07-02 20:49:07 +03:00
yairm210
d9f0535a1f AI: Better placement for Great Improvements 2024-07-02 20:47:28 +03:00
yairm210
9776df3d81 City focus resets to default when annexed 2024-07-02 18:28:53 +03:00
yairm210
2700ef6963 Allow multiplication for event triggers 2024-07-02 10:25:14 +03:00
yairm210
2ea40c7cde "Consumes resources" unique not displayed twice for buildings in city screen 2024-07-01 19:21:29 +03:00
yairm210
a05b8e4177 "Consumes resources" unique not displayed twice for units 2024-07-01 19:19:47 +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
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
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
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
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
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
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
yairm210
54d872045c Better "Withdraws before melee combat" unique 2024-06-26 00:17:06 +03:00
yairm210
d075ad0100 Clearer "no damage penalty for wounded units" unique 2024-06-25 23:58:53 +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
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
SomeTroglodyte
a9d07f513d
Fix console city add/remove building format (#11835) 2024-06-25 16:10:23 +03:00
yairm210
0a19cfb739 Resolved #11829 - "after [amount] turns" -> "after turn number [amount]", "before [amount] turns" -> "before turn number [amount]" 2024-06-25 16:09:18 +03:00
yairm210
2093761e2d Resolved #11829 - "after [amount] turns" -> "after turn number [amount]" 2024-06-25 16:01:57 +03:00
yairm210
a540355cc9 docs: Resource unique documentation 2024-06-25 11:57:05 +03:00
Yair Morgenstern
60b374de8d Clean improvement queue from improvements not in ruleset 2024-06-25 00:26:52 +03:00
Yair Morgenstern
581c807da0 Resolve #11686 - Automation control fully moved over to 'automate' field rather than 'action' 2024-06-25 00:26:15 +03:00
Yair Morgenstern
39de50829a Resolve #11795 - fix performance problem for displaying air units in cities 2024-06-24 23:53:36 +03:00
Yair Morgenstern
0678957c8e Resolves #11820 - Fixed "edit existing trade" exploit 2024-06-24 23:42:16 +03:00
Yair Morgenstern
676ced0f8b Better unique documentation - resolves #11842 2024-06-24 23:20:36 +03:00
Yair Morgenstern
7bd0a03cab Remove unused parameters 2024-06-24 23:13:33 +03:00
SomeTroglodyte
77f02600fd
Unit test to catch game loading problems with religion enabled (#11821)
* Lint regions in UncivFiles

* Create a load-predefined-game test that catches the 4.12.2 bug
2024-06-23 19:18:58 +03:00
tuvus
30a91f2f4a 4.12.2-patch1 2024-06-23 03:30:04 +00:00
Oskar Niesen
5ab535badc
Revert "Cache 'majority religion' and uniques, recalc when updating followers (#11804)" (#11815)
This reverts commit 2087c36c6d.
2024-06-23 06:29:56 +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
Oskar Niesen
f65709ab09
Add personality uses (#11807)
* Reduced max motivationToAttack from relative combat strength

* Refactored MotivationToAttackAutomation to use a float instead of an int

* Added personality values to MotivationToAttackAutomation

* Fixed minor build errors

* Added DiplomacyAutomation personality modifiers

* Improved ConstructionAutomation personality values

* Added some more personality implementations

* Tweaked trainSettler

* Fixed civilizations asking for help against city-states

* Adjusted DiplomacyAutomation to account for war mongering

* Fixed typo
2024-06-22 22:23:38 +03:00
Yair Morgenstern
2087c36c6d
Cache 'majority religion' and uniques, recalc when updating followers (#11804)
Next step is caching follower uniques on the religion itself
2024-06-22 22:20:32 +03:00
SomeTroglodyte
de04c00dd0
Improvement picker fixes (#11801)
* 🎵 A little linting 🎶

* Prevent queueing unresearched removals by adding their problem reports on top

* More linting and bugfixes

* Hide "too advanced" Improvements in the PickerScreen

* ImprovementPickerScreen fully Civilopedia-linked

* Fix dumb mistake

* Slightly improve PickerPane descriptionLabel layout

* Slightly improve ImprovementPickerScreen top padding
2024-06-22 22:20:16 +03:00
SomeTroglodyte
05020a7d7e
Refactor: UncivTextField (#11705)
* Refactor UncivTextField to be a normal Widget

* Remove UncivTextField `create` factory
2024-06-22 22:14:54 +03:00
yairm210
149e90bfed Tech, policy, unit and terrain uniques provide multiplied uniques with "for every [countable]" / "for every [amount] [countable]" modifiers 2024-06-21 19:21:29 +03:00
yairm210
d12c6c10e7 Fix tests 2024-06-21 19:02:01 +03:00
yairm210
1bf494a6f7 perf 2024-06-21 17:30:56 +03:00
yairm210
ff775056de perf: Improvement filter cache, other small things 2024-06-21 16:54:05 +03:00
yairm210
66ed79298f perf: Cache civFilter results 2024-06-21 16:29:57 +03:00
yairm210
d9d704da60 perf: Performance improvements for worker automation by caching uniques 2024-06-21 16:23:46 +03:00
Yair Morgenstern
c6620f7470 Re-enable ConsoleLauncher to run simulations 2024-06-21 15:47:20 +03:00
Yair Morgenstern
f10bc07260 Resolved #11803 - units teleport out of open borders on war declaration 2024-06-21 12:25:10 +03:00
Yair Morgenstern
3558917dfc Inquisitors go out of city centers when spaceship parts need to be added in 2024-06-21 12:10:05 +03:00
Yair Morgenstern
c1d8402a48 Moved key + priority calculations into KeyShortcut data class 2024-06-21 12:10:05 +03:00
yairm210
c691510eca Upgrade actions checkout from v3 to v4 to avoid 'node 16 actions deprecated' warnings 2024-06-19 17:53:58 +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
Yair Morgenstern
4e5ec53d64
Resolves #11772 - Allow hidden conditionals (#11778)
* Allow hidden conditionals

* SomeTrog fixes

* We sure display uniques to users A LOT
2024-06-19 17:28:53 +03:00
Oskar Niesen
dff8133a7a
Defeated civilizations don't use spies (#11785)
* Fixed a crash when rigging a city-state election the turn before meeting them

* Civilizations move their spies back to the hideout when defeated

* Players can't move spies when defeated

* Removed some weird indents
2024-06-19 17:23:42 +03:00
yairm210
f52245865c perf(minor): Don't check stat purchases for non-purchacable stats 2024-06-19 17:15:12 +03:00
Oskar Niesen
27020fb796
Spies deselect when moved on map (#11767) 2024-06-19 17:14:04 +03:00
Oskar Niesen
2d2b730399
Civs can no longer declare war right after peace with a city-state (#11762)
* Signing peace with a civ and a city state adds a peace treaty with the city-state

* Added a comment
2024-06-19 17:13:36 +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
SomeTroglodyte
2f6c48a0cf
Fix Civilopedia content clipped at the top (#11788) 2024-06-19 17:13:02 +03:00
SomeTroglodyte
33f73f5aae
Thwart the nathty dithband thpammer (#11790) 2024-06-19 17:12:47 +03:00
SomeTroglodyte
9431e3cbc4
Fix coastal rivers near Rock of Gibraltar (#11789) 2024-06-19 17:12:07 +03:00
yairm210
0d91cf9983 perf: Resolved #11775 2024-06-19 17:05:10 +03:00
yairm210
94acb75967 Resolved #11787 - "join war" offers are only valid if you can actually declare war on them 2024-06-19 16:46:39 +03:00
Yair Morgenstern
109955c523 Simplified DispatcherVetoer, explained dispatcher 2024-06-19 00:37:07 +03:00
Yair Morgenstern
3b74e3311e
Fix misaligned change 2024-06-18 00:40:35 +03:00
Yair Morgenstern
6f868952bb minor corrections 2024-06-17 23:45:55 +03:00
Yair Morgenstern
79be14e291 Resolved #11082 - Added "Will not be replaced by automated units" unique 2024-06-17 23:12:50 +03:00
Oskar Niesen
bbea08364b
TechDebt: Made getDiplomacyManger() nullable (#11771)
* Made getDiplomacyManager nullable and added getDiplomacyMangerOrMeet

* Fixed AI Automation having problems when playing as a oneCityChallenger civ
2024-06-16 23:40:45 +03:00
tuvus
498c22396a 4.12.0-patch1 2024-06-16 15:01:33 +00:00
Oskar Niesen
4759287465
Fixed a city-state coup crash (#11769)
* Fixed the coup crash

* Fixed another potential crash on a failed coup
2024-06-16 18:01:25 +03:00
yairm210
61c5302d31 Don't notify for "0 stat" plunders 2024-06-16 14:27:44 +03:00
Yair Morgenstern
9dfd82e002 4.12.0 2024-06-15 22:47:04 +03:00
Yair Morgenstern
ac54209d6b Resolve #11752 - fix crash in spy automation 2024-06-15 22:35:18 +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
255e6c7fc9
Adds unique IDs to units (#11745)
* Adds unique IDs to units

* Add IDs to units in existing games

* civ.getUnitById function

* Fix 'no units' case
2024-06-15 22:00:41 +03:00
Oskar Niesen
4d1484923c
Renamed getDistanceToTilesWithinTurn to getDistanceToTilesAtLocation (#11754) 2024-06-15 21:59:01 +03:00
SomeTroglodyte
bb1057e515
Fix map editor can't place improvements (#11743)
* Fix map editor can't place improvements

* Prefer the 'has...' approach after all
2024-06-15 21:58:04 +03:00
Oskar Niesen
294a0a71a4
AI is more likely to sign Defensive pacts (#11740)
* Made the AI more likely to sign defensive pacts

* Reduced AI Declined flags time by half

* Fixed a value
2024-06-14 17:40:45 +03:00
SomeTroglodyte
3c91647fb2
Streamline and thereby reduce size of the save game json (#11728) 2024-06-14 17:39:59 +03:00
SomeTroglodyte
e74897469c
Improvement queue (#11677)
* Improvement queue: Framework

* Improvement queue: Minimal UI

* Remove debug code

* Fix merge error

* Address tuvus's input

* Implement tuvus's UI wishes

* Fix merge errors

* Fix more merge errors
2024-06-14 17:39:46 +03:00
Oskar Niesen
728713dc3e
Giving the AI good trades is stored as credit (#11326)
* AI Civs now are happy for good trades

* Each gift point is worth 100 gold without inflation

* Gifts can now be used as credit for future trades

* Fixed giftAmount conversions

* Fixed get inflation returning NAN when gpt is negative

* diplomatic gifts are now rounded when checking trade acceptability

* Changed gold gift scaling to account for relationship level

* Fixed percent based value reduction

* Added gold gifting functions to DiplomacyManager

* Added tests

* Declaring war removes gold gifts

* Reversed trade evaluation

* Added more tests for trading

* Fixed who the gifts are given to

* Added more comments

* Added more tests and fixed stuff

* Gifting does not occur with trade treaties

* Renamed handleGoldGifted to GiftGold

* Added two more tests

* Improved comments

* Liberating a civ no longer gives positive relations from open borders
2024-06-14 17:38:54 +03:00
yairm210
4f436e98bd rename: changeImprovement -> setImprovement 2024-06-13 12:23:25 +03:00
yairm210
db85cee3e5 4.11.19-patch1 2024-06-11 15:42:53 +00:00
Oskar Niesen
96951e21c6
Fix election crash (#11731)
* Fixed the election crash

* Added better comments
2024-06-11 18:42:45 +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
9ef3fec0ea
Reenable console unit sethealth and setmovement with trailing blank (#11726) 2024-06-10 22:22:56 +03:00
SomeTroglodyte
03a85fb3ad
Allow EmpireOverview persistence across game launches (#11725)
* Remove blank space between header and list in ResourceOverviewTab vertical mode

* Allow EmpireOverview persistence across game launches
2024-06-10 22:22:46 +03:00
Oskar Niesen
b61961d0a5
Moddable city ranges (#11708)
* Added city bombard, work and expand range ModConstants

* Changed some city range integers to city.getWorkRange() or some equivalent

* Fixed city screen

* Fixed create game error

* Improved support for CityScreen when work range is higher than expand range

* Improved WonderOverviewTab Style

* Improved Civilization.modConstants

* Improved random spacing

* Changed WonderOverviewTab to use a constant again

* Added comments in documentation
2024-06-10 22:22:30 +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
Oskar Niesen
b496784ab5
Extra Civ and Spy moddability (#11702)
* Made minimum duration of a war moddable

* Made turns until revolt moddable

* Made spy skill moddable

* Migrated city-state elections to use the Civ flag system

* Moved cityStateElectionTurns away from espionage

* Added new moddable constants to the documentation

* Fixed merge conflicts
2024-06-10 22:22:09 +03:00
SomeTroglodyte
7012297af6
Centralize and organize use of special unicode codepoints (#11647)
* Centralize and organize use of special unicode codepoints

* Centralize and organize use of special unicode codepoints - minor doc addition
2024-06-10 22:21:56 +03:00
Yair Morgenstern
be3260d770 History command no longer breaks on autocomplete sometimes 2024-06-10 22:19:21 +03:00
Yair Morgenstern
c0cec548e0 Fix broken console checkFilter due to capitalizing first letter 2024-06-10 22:02:42 +03:00
yairm210
c89b2666c9 Specific uniques to generic trigger: "upon expending a [mapUnitFilter] unit" 2024-06-10 17:35:23 +03:00
yairm210
b0c70e6ec8 Console: city addtile <cityName> takes an optional [radius] parameter 2024-06-09 19:34:38 +03:00
yairm210
d61df7fe51 Console: civ addtech / civ removetech commands 2024-06-09 19:25:44 +03:00
yairm210
78ac58fe39 4.11.18-patch1 2024-06-09 08:20:18 +00:00
Yair Morgenstern
2233d3df99
Fix "ask for help" crash (#11712)
* Solved combat resource conditionals vs cities being checked against the target's resources

* Crash fix - Don't attempt to ask civs you don't know for help
2024-06-09 11:20:10 +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
SomeTroglodyte
aa74c557d2
UX: Dev Console easier to use without installing keyboard apps (#11706)
* UI replacements for Tab, Up, Down in DevConsolePopup

* DevConsole history display via command or longpress on the Android UI
2024-06-08 21:59:33 +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
SomeTroglodyte
e276a08d61
UniqueParameterType getErrorSeverity/isKnownValue architecture simplification (#11701)
* UniqueParameterType getErrorSeverity/isKnownValue simplification

* Minor changes to a few UniqueType documentations

* Allow UnitsGainPromotion e.g. "[Melee] units gain the [Morale] promotion"
2024-06-08 21:58:38 +03:00
SomeTroglodyte
cf7f5a1c52
Remove 'Strategic Balance' and 'Legendary Start' from resource abundance select (#11699)
* Convert MapResources into an Enum

* Fix IsPartOfGameInfoSerialization where actually only the String is part of serialization

* Refactor MapResources to own file, package mapgenerator

* Refactor MapSize/MapSizeNew to own file and rename
2024-06-08 21:58:19 +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
SomeTroglodyte
6979ea8e85
Improve update of "Last seen improvement" (#11673)
* Restrict access to lastSeenImprovement

* Move TileInfoNormalizer to logic

* Remove all uses of gamestate- and transient-dependent changeImprovement from MapGenerator

* Update lastSeenImprovement from changeImprovement where appropriate

* Another rename removing an `Info`

* Remove redundant spectator test

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

---------

Co-authored-by: Yair Morgenstern <yairm210@hotmail.com>
2024-06-08 21:56:04 +03:00
yairm210
3d111465ec Resolved #11700 - "Promotes all spies [amount] time(s)" crash 2024-06-05 16:15:20 +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
4e28b9e75c
Console: Improve civ activatetrigger command (#11676)
* Limit visibility inside devconsole package

* Make City an INamed to allow use of INamed-bounded generics on it

* CliInput class treats all DocConsole command line tokens, allows autocompleting quoted input to quoted full names

* Alternate, more flexible but also validating `civ activatetrigger` implementation

* Allow undisturbed display of square brackets in UncivTextField's

* Fix minor bug with OneTimeRevealSpecificMapTiles and move OneTimeReveal* implementations together
2024-06-04 18:01:00 +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
SomeTroglodyte
7e3bbb6053
A ModOptions unique allowing a mod to control which map gets preselected (#11468)
* Minor linting

* UniqueType.ModMapPreselection
2024-06-04 18:00:29 +03:00
SomeTroglodyte
4b2f5e468d
Sortable unit overview (#11521)
* SortableGrid architecture changes: defaultSort instead of defaultDescending

* SortableGrid architecture changes: Header cell actor management

* SortableGrid architecture changes: General Services and reusable defaults

* Fix EmpireOverviewScreen sometimes forgetting the last active tab

* Reimplement Unit Overview using SortableGrid (but dropping unit supply)

* Get UnitSupplyTable back into Unit Overview

* Fix unit overview does not know PromotionPickerScreen changed the name

* Simplify update after rename

* Fix "Ooops" wrong value in ranged strength column
2024-06-04 18:00:04 +03:00
Oskar Niesen
9d8484cf75
Fixed spy steal tech timer (#11680)
* Fixed the time to steal a tech being infinity when the science produced by a city is negative

* Removed duplicate stealing tech checking behaviour
2024-06-04 17:58:46 +03:00
yairm210
8eda342613 Deprecated old uniques 2024-05-31 19:13:01 +03:00
yairm210
bdb0dcef65 Resolved #11675 - Unavailable techs work well with tech picker screen 2024-05-31 19:06:12 +03:00
yairm210
834567170e Added ruleset check for resource uniques with resource conditionals 2024-05-31 18:41:29 +03:00
yairm210
bed8d3b176 minor docs and city resource conditional test 2024-05-31 13:55:38 +03:00
yairm210
6da9fe23f2 Unify "get stat for conditional state" logic 2024-05-31 13:42:41 +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
9e5c113ee8
UI: Allow any mod sound to be selected as a multiplayer turn notification sound (#11623)
* Linting

* Fix potential crash when having a multiplayer notification sound configured that is no longer available

* New media finder architecture

* Unit tests for new media finder architecture

* Apply new media finder architecture to solve "allow all mod sounds as multiplayer notifications" request
2024-05-29 23:59:57 +03:00
SomeTroglodyte
655c98a7e5
Allow access to the Dev Console on mobile devices (#11588)
* Make DeveloperConsole callable from WorldScreenMenuPopup

* Better WorldScreenMenuPopup single/dual-column logic

* Allow developer console to stay open and persist history

* Fix console tab key closing onscreen keyboard

* Give the now persisted console history an upper size limit

* Ensure "up" always gives the new entry

* Fix merge leftovers

* Reviews
2024-05-29 23:59:35 +03:00
SomeTroglodyte
c6e3ff5d1b
Linting and re-sort Tile class so the regions are no longer lying (#11649)
* Rename TileInfoImprovementFunctions

* Linting and re-sort Tile class so the regions are no longer lying
2024-05-29 23:59:16 +03:00
Oskar Niesen
9757cae098
Removed espionage debug setting (#11658) 2024-05-29 23:59:04 +03:00
Oskar Niesen
498a64fa16
Added spy steal tech timer (#11657) 2024-05-29 23:58:50 +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
SomeTroglodyte
bc52704614
Console create natural wonder and tile find (#11664) 2024-05-29 23:58:26 +03:00
yairm210
cee2346c42 doc: getTriggerFunction 2024-05-28 23:38:19 +03:00