Commit Graph

7044 Commits

Author SHA1 Message Date
Yair Morgenstern
83829a40da Resolved #11307 - zero-cost constructions no longer cause automation crash 2024-03-14 20:48:23 +02:00
Yair Morgenstern
0f3ff99d1f Revert "Worker automation takes city focus and civ personality into account"
This reverts commit a9595549bc.
2024-03-14 12:29:34 +02:00
Yair Morgenstern
78ab65addf
Version rollout (#11300)
* Bump version and create initial changelog entry

* Update Simplified_Chinese.properties (#11298)

* Update Simplified_Chinese.properties

Correct the mistranslation of the Great Mosque of Djenne and provide translations for some newly added sentences.

* Update Simplified_Chinese.properties

* Update French.properties (#11295)

* Update German translation (#11294)

* Update German translation

* Update German translation

* Update hungarian translation file (#11292)

* Update Brazilian_Portuguese.properties (#11288)

* Update Indonesian.properties (#11285)

* Update Indonesian.properties

Added and fixed translation.

* Update Indonesian.properties

* Update Indonesian.properties

* Update Indonesian.properties

* Update Indonesian.properties

* Update Indonesian.properties

* Update Indonesian.properties

* Update Italian.properties (#11284)

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: AutumnPizazz <114050365+AutumnPizazz@users.noreply.github.com>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: mape6 <mape6@posteo.de>
Co-authored-by: Krisztian Papp <30371056+pehsa@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
Co-authored-by: M792003 <158552928+M792003@users.noreply.github.com>
Co-authored-by: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
2024-03-13 23:25:35 +02:00
SeventhM
b60dabc089
Allow resources from follower beliefs (#11252)
* Allow resources from follower beliefs

* incorporate suggestions
2024-03-13 23:19:18 +02:00
PLynx
fc1e701c7f
Add the unfiltered version of new era unique (#11255)
* Added the unfiltered version of new era unique

* Changed some strings according to yairm suggestions
2024-03-13 23:13:11 +02:00
itanasi
e9c3350ec5
Expand CanOnlyBeBuiltInCertainCities to include Units and convert to use Conditionals (#11274)
* Remove Transform requirement checks

* Add back in requirement for OnlyAvailable
New BuildableOnly unique

* Instead of a new unique, expand CanOnlyBeBuiltInCertainCities to instead take conditionals

* Rename to notMetRejections and copy to BaseUnit
Add CanOnlyBeBuiltInSpecificCities to constructionRejectionReasonType

* Setup CanOnlyBeBuiltInCertainCities as depreciated (renamed CanOnlyBeBuiltInCertainCities_dep)

* Redirect Depreciation

* Quick Camel Case rename

* Function renaming and moving Unique to general Construction Uniques

* spelling

* Move Unique. Update Error message

* version
2024-03-13 23:12:10 +02:00
Yair Morgenstern
1542b92e63 Resolved #11289 - Free buildings granted properly when era-free cities also granted 2024-03-13 23:11:39 +02:00
Yair Morgenstern
2294b7a6b3 Resolved #11290 - "Connect road" unit action takes tiles where road is unbuildable into account 2024-03-13 22:50:25 +02:00
Yair Morgenstern
a9595549bc Worker automation takes city focus and civ personality into account 2024-03-13 22:29:20 +02:00
Yair Morgenstern
ece8fe9a5c rankStatsForCityWork doesn't need to get cityStats as a parameter 2024-03-13 22:26:11 +02:00
Yair Morgenstern
d05bb35129 rankSpecialist doesn't need to get cityStats as a parameter 2024-03-13 22:22:07 +02:00
Yair Morgenstern
31b13fc1b7 rankStatsForCityWork doesn't need to get cityStats as a parameter 2024-03-13 22:19:02 +02:00
Yair Morgenstern
b75eb52468 Resolved #11297 - Religious victory no longer causes crash 2024-03-13 21:59:21 +02:00
Yair Morgenstern
d6ac736d6e perf: Only attempt to get game ID for multiplayer game if current game is actually multiplayer 2024-03-09 23:45:09 +02:00
Yair Morgenstern
55aa3d56e6 4.10.17-patch1 2024-03-09 23:40:08 +02:00
Yair Morgenstern
9a70ad631e Don't update city stats when simulating improvement changes to see new stats! 2024-03-09 23:38:16 +02:00
Yair Morgenstern
1bc3c4de04 Catch error we've been encountering for a while but can't actually debug :(
Async fun, as if, async is *not* fun
2024-03-09 23:31:09 +02:00
Yair Morgenstern
d76ade3d44 4.10.17 2024-03-09 23:24:20 +02:00
Yair Morgenstern
1558a1dc6f
Version rollout (#11282)
* Bump version and create initial changelog entry

* Update Catalan.properties (#11281)

* Create Norwegian.properties (#11275)

* Create Norwegian.properties

Created Norwegian.properties and some translations.

* Update Norwegian.properties

Updated and added more translations.

* Update Norwegian.properties

Added missing placeholders [civName], [city], [amount], and [mod], as well as a couple new translations.

* Update completionPercentages.properties

Added 'Norwegian = 0' to the percentages.

* Create folder /no/

Created the folder /no/ with the description files in Norwegian.

* Delete fastlane/metadata/android/no directory

Wrongfully created the folder and files.

* Update Norwegian.properties

Added Fastlane descriptions, other translations

* Added Norwegian.png

* Delete android/Images.Flags/FlagIcons/Norwegian.png

Removed for wrong size

* Create Norwegian.png

Correct size for Norwegian flag.

* Update Czech.properties (#11273)

* Translation part 1

* Translation part 2

* Translation part 3

* Fix brain not braining moment

* Translated Wesnoth map import lines

* Update French.properties (#11271)

* Update Italian.properties (#11270)

* Update Brazilian_Portuguese.properties (#11266)

* Update Brazilian_Portuguese.properties

* Update Brazilian_Portuguese.properties

* Update Indonesian.properties (#11265)

* Update Indonesian.properties

Added and fixed the translation.

* Update Indonesian.properties

* Add the Conditional Unique for checking speed (#11260)

* Added the conditionalSpeed unique

* Changed the unique wording

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Joan Josep <juanjo.ng.83@gmail.com>
Co-authored-by: Floxudoxu <67422605+Floxudoxu@users.noreply.github.com>
Co-authored-by: jahodovykolac <79529669+jahodovykolac@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: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
Co-authored-by: M792003 <158552928+M792003@users.noreply.github.com>
Co-authored-by: PLynx <pawelrys2011@gmail.com>
2024-03-09 23:07:39 +02:00
Oskar Niesen
9d1614372e
Fixed swapping a unit with a unit that is escorting (#11268) 2024-03-09 23:05:49 +02:00
Oskar Niesen
b10ed5ff87
Next turn button reactivates after closing a popup menu (#11267) 2024-03-09 23:05:39 +02:00
SomeTroglodyte
41b29256fe
River terraform (#11256)
* Allow terraformers to place Rivers

* Someone said Ruleset is not a Set

* Turn setConnectedByRiver into a public Tile API

* Follow review suggestions
2024-03-09 23:02:18 +02:00
Yair Morgenstern
44528d26d0 Added ruleset validation for event uniques 2024-03-09 22:59:43 +02:00
Yair Morgenstern
20b4e6674b
Events! (#11276)
* Events!

* Whoops

* Resolved #11277 - "Upon turn end" also works for unit uniques
2024-03-09 21:26:45 +02:00
Yair Morgenstern
abf54c7039
Version rollout (#11263)
* Bump version and create initial changelog entry

* Update Polish.properties (#11259)

* Update Italian.properties (#11258)

* Update Ukrainian.properties - added missing translations (#11251)

* Update French.properties (#11248)

* Update Brazilian_Portuguese.properties (#11247)

* Update Indonesian.properties (#11242)

* Update Indonesian.properties

Added and fixed translation.

* Update Indonesian.properties

* Update Indonesian.properties

* Update Indonesian.properties

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Lesiakower <125187776+Lesiakower@users.noreply.github.com>
Co-authored-by: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
Co-authored-by: Mykola Makhin <mvmn.inbox@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: M792003 <158552928+M792003@users.noreply.github.com>
2024-03-05 23:31:08 +02:00
Oskar Niesen
28e0e7ee2c
Skip next unit button (#11244)
* Added a next turn menu to skip all the next unit actions

* Added a move automated units button

* Added whitespace

* Added unique NextTurnMenu KeyboardBindings
2024-03-05 23:06:13 +02:00
SomeTroglodyte
b5a39bbb39
Centralize infinity symbol (#11257) 2024-03-05 23:05:41 +02:00
SomeTroglodyte
06a675c44f
More city filters (#11253) 2024-03-05 23:05:31 +02:00
SeventhM
60d93e5ff9
Allow AI to consider production bonuses when building (#11254)
* Allow AI to consider production bonuses when building

* Optimization
2024-03-05 23:05:15 +02:00
Oskar Niesen
8100d0bf73
Better Unit Actions Sorting (#11243)
* Added a use frequency to UnitAction that allows for the buttons to be sorted

* Improved use frequency ordering

* Chained useFrequency to be a float
2024-03-05 23:05:01 +02:00
SomeTroglodyte
d5fda541ad
Competition quests in progress display tied leaders (and your place if you're behind) (#11224)
* Minor Quest/QuestManager linting

* Cache Quest and QuestName references and use them

* Nicer randomWeighted and fix UniqueType.ResourceWeighting

* Integrate @soggerr's #10739 - show tied leaders and your position if you aren't leading

* One more lint
2024-03-05 23:04:40 +02:00
Jeremy Woo
31931d3849
Added ConditionalWhenBetweenStatResource unique (#11212)
* Added ConditionalWhenBetweenStatResource unique

* Currently the ConditionalBetweenHappiness function only applies to Happiness. Wouldn't it be more better if it could also be extended to other stats and resources. 😊

* Resolved the issue with ConditionalWhenAboveStatResource, ConditionalWhenBelowStatResource, and their modified speed versions not functioning properly on city-level stats (food & production).

This new unique has been tested using the following examples:
    1. In GlobalUniques.json:
        - "[+12]% [Gold] [in all cities] <when between [1] to [100] [Gold]>",
        - "[+24]% [Gold] [in all cities] <when between [1] to [100] [Gold] (modified by game speed)>",
    2. In Buildings.json:
        - "[+12]% [Production] [in this city] <when between [1] to [5] [Production]>",
        - "[+12]% [Food] [in this city] <when between [1] to [5] [Food]>",

* Update uniques.md

* Correct english mistake of the new unique

* Refactor checkResourceOrStatAmount function

* Unified all related functions into one
2024-03-05 22:40:27 +02:00
Yair Morgenstern
03a30ea7c9 Doc for stats per policies 2024-03-03 21:55:24 +02:00
Yair Morgenstern
abc876f4a1 Allow multifilter uniques to count for filtering 2024-03-03 21:51:15 +02:00
Yair Morgenstern
0cfee86864 4.10.15 2024-03-03 21:29:55 +02:00
Yair Morgenstern
a0985194fb Options popup closes naturally 2024-03-03 21:28:15 +02:00
Yair Morgenstern
47e3397fae
Version rollout (#11241)
* Bump version and create initial changelog entry

* Update Filipino.properties (#11240)

* Update Catalan.properties (#11237)

* Update French.properties (#11226)

* Update Brazilian_Portuguese.properties (#11223)

* Update Italian.properties (#11222)

* Update Indonesian.properties (#11221)

Added and fixed the translation of some words.

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Earl <86307061+Earl8D@users.noreply.github.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: M792003 <158552928+M792003@users.noreply.github.com>
2024-03-03 21:12:00 +02:00
SomeTroglodyte
5e685e10aa
Fix tileset sanity check for builtin rulesets when run from jar (#11230)
* Avoid using folder listing for tileset sanity checks for builtin rulesets from jar

* Remove an unnecessary java import

* Revert the builtin-tileset-within-jar special check, not necessary for a release
2024-03-03 20:03:40 +02:00
SomeTroglodyte
3869f8e4a5
Improve DiplomacyScreen left side UX (nation icons) on really cramped screens (#11227) 2024-03-03 20:03:27 +02:00
SeventhM
d99bd03277
Allow city state uniques for nation descriptions (#11232) 2024-03-03 20:03:20 +02:00
PLynx
2d1e55a4d4
Add MovedToNewCapital buiding unique (#11213)
* Added MovedToNewCapital building unique

Yet to be tested

* Applied the suggestions

Of @yairm210 and @SomeTroglodyte
2024-03-03 20:03:12 +02:00
SomeTroglodyte
61972cd50e
Move DiplomacyScreen close button to top right (#11225) 2024-03-03 20:03:04 +02:00
SomeTroglodyte
69c047790e
Validation warning Suppression as Unique or modifier (#11142)
* Make source object available to RulesetErrorList.add

* Make ruleset available to RulesetErrorList

* Introduce UniqueTarget.MetaModifier - ModifierHiddenFromUsers won't stay alone

* There was no use of prefix without the unique name - fold

* Introduce UniqueTarget.MetaModifier - doc

* Pass context down even inside UniqueValidator, convenience factory for limited RulesetErrorList's

* Clean up RulesetErrorList.of factory

* Reorder parameters of RulesetErrorList.add

* Suppression Unique and implementation

* Remove logging
2024-03-03 20:02:54 +02:00
Oskar Niesen
657ec94f4a
Better military unit retreat (#11192)
* Refactored tryRetreat checking if a tile has a unit or not

* Refactored tryRetreat to put ourDistanceToClosestEnemy outside of the loop
2024-03-03 20:02:42 +02:00
SomeTroglodyte
d843ac0c68
UI: Fix options popup "spilling" in cramped screen conditions (#11235)
* Remove unused "Closing page" feature from TabbedPager

* Minor linting

* Ensure Popup's innerTable doesn't exceed its Cell within Popup

* Change a few defaults and remove a misguided comment

* Move OptionPopup's close button to top right - another Red X
2024-03-03 20:02:31 +02:00
Yair Morgenstern
b577f5ee9a
Fix double-count of civ-wide resources, while allowing propagation of city-wide resources via uniques (#11236)
* Fix double-count of civ-wide resources, while allowing propagation of city-wide resources via uniques

* Added test to ensure civ-wide resources propagate between cities (they do)

GetResourceAmount -> GetAvailableResourceAmount

* Extra clarity in function names! Better than possible confusion.
2024-03-03 20:02:21 +02:00
Yair Morgenstern
2ec4d3be8e Changed tech trigger to accept tech filters 2024-03-03 19:40:52 +02:00
Yair Morgenstern
971758f732
Version rollout (#11220)
* Bump version and create initial changelog entry

* Update French.properties (#11214)

* Update Italian.properties (#11211)

* Update Brazilian_Portuguese.properties (#11210)

* Update Indonesian.properties (#11209)

* Update Indonesian.properties

Fixed and added translation to some words.

* Update Indonesian.properties

* Update Indonesian.properties

* Added a Russian translation for the introductory text of Queen Elizabeth (#11206)

This is a translation close to the text. However, I have tried to keep the solemn style in translation, so there is a slight departure from the original.

---------

Co-authored-by: yairm210 <yairm210@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: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
Co-authored-by: M792003 <158552928+M792003@users.noreply.github.com>
Co-authored-by: NoobTutorial <142553623+NoobTutorial@users.noreply.github.com>
2024-02-29 00:13:33 +02:00
Yair Morgenstern
e6893ef298 AI tile evaluation considers Faith 2024-02-29 00:06:42 +02:00
SomeTroglodyte
83fb2d048c
Unit upgrade menu can scroll (#11218)
* ScrollableAnimatedMenuPopup widget and base UnitUpgradeMenu off it

* More lack of resources info in UnitUpgradeMenu

* Make UnitUpgradeMenu available even if you can't afford any upgrade
2024-02-28 23:53:04 +02:00
SomeTroglodyte
8946ee8bfa
Remove unnecessary/harmful open on classes without subclasses (#11217)
* Remove open modifier from classes never actually subclassed

* Correct resulting compilation errors with readabilty improvement
2024-02-28 23:52:46 +02:00
SomeTroglodyte
6a61a71c36
Type declaration colon blanks linting (#11216) 2024-02-28 23:46:21 +02:00
Oskar Niesen
a5f1ba0401
Military unit healing improvement (#11195)
* Military units prioritize healing more

* Military units try to pillage tiles when attacking

* tryHeal() now tries to pillage multiple times if a unit have more movement

* Barbarians now pillage more

* Units stay healing on its tile if it can heal in two turns

* Units will heal when no enemies are around in their territory

* TryHealUnit returns false after pillaging to full health

* Refactored canUnitHealInTurnsOnCurrentTile

* Refactored movePreparingAttack pillaging
2024-02-28 23:45:35 +02:00
SomeTroglodyte
c8f9f38d96
Some linting and readability helpers (#11215) 2024-02-28 23:41:39 +02:00
Yair Morgenstern
ce8a7e9e3e Mods with no policy branches don't crash when clicking on culture icon 2024-02-27 23:37:54 +02:00
Yair Morgenstern
9054d84626 Simplified blockade function 2024-02-27 19:46:15 +02:00
Yair Morgenstern
4f5fdf1727 Civ-wide uniques for city-wide resources 2024-02-27 19:38:14 +02:00
Yair Morgenstern
04528696f7 Added conditional for exact amount of population in a city 2024-02-27 16:00:42 +02:00
Yair Morgenstern
ffeae91b0a Suggest corrections for misspelt conditionals; Better text similarity for strings with errors at the start 2024-02-27 14:28:08 +02:00
Yair Morgenstern
817ac64e58 Only require explicit building/wonder costs for tech columns that have buildings/wonders with unspecified cost 2024-02-27 14:05:53 +02:00
Yair Morgenstern
27d63f00f4 Added 'city addbuilding', 'city removebuilding' console commands 2024-02-27 13:22:10 +02:00
Yair Morgenstern
3689eed3aa Add unique to conditionally control construction costs 2024-02-27 11:13:26 +02:00
Yair Morgenstern
b4cb0e3d75 getProductionCost can receive city - this will allow us to control city-specific production cost changes! 2024-02-27 11:05:50 +02:00
Yair Morgenstern
fd428ce606 RemoveIf -> RemoveAll to avoid jvm dependencies 2024-02-27 11:00:39 +02:00
Yair Morgenstern
1101f42957 4.10.13 2024-02-26 22:47:43 +02:00
Yair Morgenstern
f34948d0c2
Version rollout (#11208)
* Bump version and create initial changelog entry

* Update French.properties (#11199)

* Update Italian.properties (#11198)

* Update Catalan.properties (#11197)

* Update Indonesian.properties (#11196)

Translated and fixed the translation of some words.

* Update Brazilian_Portuguese.properties (#11194)

* Update Brazilian_Portuguese.properties

* Update Brazilian_Portuguese.properties

---------

Co-authored-by: yairm210 <yairm210@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: Joan Josep <juanjo.ng.83@gmail.com>
Co-authored-by: M792003 <158552928+M792003@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
2024-02-26 22:39:43 +02:00
SomeTroglodyte
a899a11ad2
New notifications bell icon with actual count (#11205)
* Refactor OtherIcons/Circle handling

* New "Bell" icon for Notifications

* Remove "todo" line
2024-02-26 22:20:40 +02:00
PLynx
91bfcbab2f
Added ConditionalAboveHappiness unique (#11207) 2024-02-26 22:20:34 +02:00
SomeTroglodyte
d7a2af5ced
Fix TabbedPager geometry - the cell for the close button needs to be ignored in the rest of the Table! (#11204) 2024-02-26 22:20:26 +02:00
Yair Morgenstern
a0f710b885 Resolved #11200 - Add AI for land-based nukes 2024-02-26 22:13:20 +02:00
Yair Morgenstern
e6a132a9d7 Fixed game load, removed extraneous getBaseUnit() function 2024-02-26 21:30:29 +02:00
Yair Morgenstern
4dbed12e45 Keep opened mods open and at top of list when reloading mods in 'locate mod errors' tab 2024-02-25 23:07:02 +02:00
Yair Morgenstern
83655bbd34 Resolves #11193 - above/below HP conditionals work outside of combat 2024-02-25 22:45:21 +02:00
Yair Morgenstern
72fa2a3f48 Resolves #11193 - update uniques upon taking damage and other situations 2024-02-25 21:42:05 +02:00
Yair Morgenstern
2494b1dcbc Move takeDamage function from MapUnitCombatant to MApUnit where it belongs 2024-02-25 21:35:08 +02:00
Yair Morgenstern
f5d80c5463
Version rollout (#11191)
* Bump version and create initial changelog entry

* Update French.properties (#11171)

* Update Italian.properties (#11168)

* Update Indonesian.properties (#11166)

* Update Indonesian.properties

Added and fixed some translation.

* Update Indonesian.properties

* Update Indonesian.properties

* Update Indonesian.properties

* Update Indonesian.properties

* Update Indonesian.properties

* Update Indonesian.properties

* Update Indonesian.properties

---------

Co-authored-by: yairm210 <yairm210@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: M792003 <158552928+M792003@users.noreply.github.com>
2024-02-24 22:51:54 +02:00
SomeTroglodyte
4a138478f6
Right-click/longpress for World screen city buttons (#10771)
* City buttons support right-click / long-press to enter CityScreen directly

* City r-click: Rename helper and UI tips

* City capitalization follows getCurrentTutorialTask precedent

* City capitalization change applied to existing translation keys

* Revert "City capitalization change applied to existing translation keys"

This reverts commit c3638a0daf.

* Revert "City capitalization follows getCurrentTutorialTask precedent"

This reverts commit b618f4cae3.

* City capitalization in new text follows getCurrentTutorialTask precedent
2024-02-24 22:42:31 +02:00
SomeTroglodyte
dd1f0142f1
Unit actions from Uniques shouldn't be active at zero movement (#11188) 2024-02-24 22:41:39 +02:00
Oskar Niesen
04083de766
Added unit escorting formation!!! (#11057)
* Added escort button

* Added basic escort movement

* Improved escort movement

* Swapping breaks escorting

* Added stop escorting button

* Added link icon to unit

* getDistanceToTiles() now automatically includes escorting

* Multi-turn movement with different units works somewhat

* Escorting units persist to escort across saves

* Escorting units are only idle if their partner unit is idle as well

* Fixed multi-turn escort movement where one unit has more movement points left over

* Added basic tests

* Added a test for formation idle units

* Added some basic movement tests

* Added some canMoveTo tests

* getDistanceToTiles only caches when includeEscort is true

* added getDistanceToTiles test

* An entire commit to remove one line of white space just for you! And yes, there are no semi-colons;

* Added translations

* Added more stopEscorting() calls when the unit is removed

* Added extra comments and refactoring

* Refactored removeAllTilesNotInSet to use a mutableIterator

* Refactored code based on review

* Refactored removing tiles in PathsToTilesWithinTurn that aren't in another PathsToTilesWithinTurn
2024-02-24 22:39:04 +02:00
SeventhM
54201c381c
Allow conditional timed triggers for unit actions or most other trigger conditionals (#11181)
* Allow conditional timed triggers to be visible from all uniqueMaps

* Whoops
2024-02-24 22:38:32 +02:00
SpacedOutChicken
b17f162be9
Allow Barbarians to make set-up ranged units (#11173)
Allow Barbarians to create units that must set up to ranged attack, unless specifically forbidden by the relevant unique

Since we have a unique for this explicit purpose, we no longer need this extra prevention for Barbarian unit types.
2024-02-24 22:38:22 +02:00
SomeTroglodyte
bebe0c67da
Fix double "close" action from Overview ESC key (#11185) 2024-02-24 22:38:12 +02:00
SomeTroglodyte
84902b7957
Fix a few applications of the "hidden from users" modifer (#11186)
* Respect hidden modifier in a nation's unique improvements display

* Respect hidden modifier in the Unhappiness stat overview

* No auto-icons for an ExpanderTab title
2024-02-24 22:38:02 +02:00
SomeTroglodyte
6092702f96
Fix fortified units upgraded to ones that can't fortify still keeping their fortification (#11187) 2024-02-24 22:37:53 +02:00
Yair Morgenstern
5b04d1b0d6 Make terraform unique triggerable from improvements 2024-02-23 10:53:17 +02:00
SomeTroglodyte
52eae2a3f9
Fix options setting for the notifications scroll visibility being wrong for new installs (#11177) 2024-02-22 17:34:29 +02:00
SomeTroglodyte
382d966696
Change EmpireOverviewScreen closing to use the same button and UX as Civilopedia (#11169)
* Centralize a "round X" close button factory with global scope

* Change EmpireOverviewScreen closing to use the same button and UX as Civilopedia
2024-02-22 17:33:26 +02:00
Yair Morgenstern
5cba78cd9b
Version rollout (#11164)
* Bump version and create initial changelog entry

* Update Simplified Chinese (#11161)

* Update French.properties (#11153)

* Update Indonesian.properties (#11151)

* Update Indonesian.properties

Added translation for vanilla civ introduction.

* Update Indonesian.properties

* Update Indonesian.properties

* Update Indonesian.properties

* Update Indonesian.properties

* Update Italian.properties (#11150)

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: chr_56 <30681738+chr56@users.noreply.github.com>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: M792003 <158552928+M792003@users.noreply.github.com>
Co-authored-by: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
2024-02-20 23:43:12 +02:00
Yair Morgenstern
23edf07a41
Terraforming! (#11152)
* Terraforming!

* comment

* whoops

* And better tests, that actually output text.

* SomeTrog caught this doc error :)

* Fix natural wonder placement, it better belongs with base terrain
Also, normalize tiles to ruleset after plonking a new terrain

* Out Of Cheese Error, Redo From Start

- Only terrains, no improvements - one problem at a time
- Fit new functional trigger format
- Respect occursOn
- Teleport units out of tiles if they can't pass through (nat wonders for example)
- No need for terrainFeature unique parameter
- Tested with "Turn this tile into a [Grand Mesa] tile <for [0] movement>", "Turn this tile into a [Forest] tile <for [0] movement>" uniques

* Don't allow city tiles to turn into water/wonders etc kudos @SomeTrog
2024-02-20 23:38:23 +02:00
SomeTroglodyte
2c96c6f244
ConditionalWhileResearching as suggested by @woo1127 (#11156) 2024-02-20 23:25:16 +02:00
SeventhM
8eadaa9d8e
Fix victory focus being ignored (#11158)
* Fix victory focus being ignored

* Move to Civilization
2024-02-20 23:25:06 +02:00
SomeTroglodyte
7d17b9296d
External links: Right-click and some housecleaning (#11155)
* Right-click external links to copy url

* Add hint about right-clicking links to UI Tips tutorial

* Add wiki link to about and centralize repo/wiki external link bases
2024-02-20 23:24:54 +02:00
SeventhM
17abf7840b
Add unique for Personality to avoid building object (#11160)
* Add unique for Personality to avoid building object

* Switch civInfo with city

* Missed a spot

* baseUnitFilter instead of "unitFilter"
2024-02-20 23:23:56 +02:00
Yair Morgenstern
b80ab2d3e6 Fix timed uniques without further conditionals not getting type recognized 2024-02-20 14:49:26 +02:00
Yair Morgenstern
fc6d913204 Ensure that each uniquetype specified returns a value =- thank you amazing Kotlin compiler :) 2024-02-20 14:03:51 +02:00
Yair Morgenstern
3a7401a939 Only allow a trigger-based unit action if the trigger function is not null
Tested with "Adopt [Legalism] <for [0] movement>" - it allows me to click once, adopting the policy, but not a second time since the policy is already adopted thus the trigger function is null
2024-02-20 11:03:07 +02:00
Yair Morgenstern
27465425b0 Allow determining *if* a unique can trigger a triggerable effect, *without* actually doing so 2024-02-20 10:52:36 +02:00
itanasi
d3356c94fd
Minor style updates (#11154)
* Properly Calculate Population based on Food Conversion to Prod
Trigger properly when Queue is changed

* Remove triggers

* Missed a trigger

* Add triggers in CityConstructionsTable so we can call cityScreen.update()

* Properly Calculate Population based on Food Conversion to Prod
Trigger properly when Queue is changed

* Remove triggers

* Missed a trigger

* Add triggers in CityConstructionsTable so we can call cityScreen.update()

* Minor style cleanups

* Properly Calculate Population based on Food Conversion to Prod
Trigger properly when Queue is changed

* Remove triggers

* Missed a trigger

* Properly Calculate Population based on Food Conversion to Prod
Trigger properly when Queue is changed

* Remove triggers

* Missed a trigger

* Minor style cleanups
2024-02-19 21:46:57 +02:00
Yair Morgenstern
b2bbd8d145
Version rollout (#11149)
* Bump version and create initial changelog entry

* Update Brazilian_Portuguese.properties (#11143)

* Update Italian.properties (#11140)

* Update Italian.properties

* Update Italian.properties

* Fixed mistranslations and made the translation more natural (#11139)

Some of the diplomacy wording are clearly machine translated, so I improved it.

* Update Indonesian.properties (#11136)

* Update Indonesian.properties

Translated some words and fixed some mistranslated words.

* Update Indonesian.properties

* Update Indonesian.properties

* Update Indonesian.properties

* Update French.properties (#11135)

* Update Spanish.properties (#11132)

* Update Spanish.properties

* Update Spanish.properties

---------

Co-authored-by: yairm210 <yairm210@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: chenxing61 <70869440+chenxing61@users.noreply.github.com>
Co-authored-by: M792003 <158552928+M792003@users.noreply.github.com>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: Caballero Arepa <78449553+Caballero-Arepa@users.noreply.github.com>
2024-02-17 23:09:51 +02:00
SomeTroglodyte
5b698102ef
Don't prematurely round Great person point boni and GPP breakdown UI (#10924)
* GreatPersonPointsBreakdown class and logic use

* Minor comment

* Fix untrue wiki claim that civilopediaText color accepts names

* GreatPersonPointsBreakdown UI available by clicking in the CityStatsTable GPP section

* Two separate assembly lines for two different products of the factory

* One more code-deduplication

* Fix rounding - rounds *up* on x.5

* Clearer display code (but output unchanged)

* Minor comment clarification
2024-02-17 21:45:02 +02:00
SomeTroglodyte
7dc398184f
Fix creating 105x90 rectangular no-wrap maps (#11144) 2024-02-17 21:43:17 +02:00
SeventhM
cc7b8cd26c
Documentation for Personality json (#11138)
* Documentation for Personality json

* whoops, bad link

* Fix inaccurate "double focus" comment

* Fix accidental copy-paste error

* Edit priority text to maybe be clearer
2024-02-17 21:43:05 +02:00
itanasi
c8a7cf29b6
AutoAssign Population with Food Converts to Production (#11141)
* Properly Calculate Population based on Food Conversion to Prod
Trigger properly when Queue is changed

* Remove triggers

* Missed a trigger

* Add triggers in CityConstructionsTable so we can call cityScreen.update()

* Properly Calculate Population based on Food Conversion to Prod
Trigger properly when Queue is changed

* Remove triggers

* Missed a trigger

* Add triggers in CityConstructionsTable so we can call cityScreen.update()
2024-02-17 21:42:23 +02:00
SomeTroglodyte
88df2c26e6
Framework stuff: Preparation for another Warning-Suppression branch (#11128)
* Make source object available to RulesetErrorList.add

* Make ruleset available to RulesetErrorList

* Introduce UniqueTarget.MetaModifier - ModifierHiddenFromUsers won't stay alone

* There was no use of prefix without the unique name - fold

* Introduce UniqueTarget.MetaModifier - doc

* Pass context down even inside UniqueValidator, convenience factory for limited RulesetErrorList's

* Clean up RulesetErrorList.of factory

* Reorder parameters of RulesetErrorList.add
2024-02-17 21:41:37 +02:00
SeventhM
ec1f51dfb8
Allow barb camps to function after giving ruins effects (#11137)
* Allow barb camps to function after giving ruins effects

* Add comment
2024-02-17 21:41:21 +02:00
SeventhM
5730d1b80a
Conditional for building in amount of cities (#11101)
* Conditional for building in amount of cities

* fix order of operations

* Deprecate old require in amount cities uniques

* import

* Fix referring to the unique instead of the conditional

* Fix yield message

* I have no clue how this isn't imported, but I'mma assume this translates fine anyways

* Rename text for unique

* revert unique text

* Whoops

* Remove unnecessary puppet check

* Move additional description to it own function

* Split missing city text into its own function

* Move ToDo comment

* flip to be easier to read

* Move onlyAvailable rejections to its own function to be easier to work with

* Add in the word "of"
2024-02-17 21:41:05 +02:00
Yair Morgenstern
80d57afee0
Version rollout (#11131)
* Bump version and create initial changelog entry

* Update Dutch.properties (#11120)

* Update Dutch.properties

* Update Dutch.properties

* Update Polish.properties (#11118)

* Update Finnish.properties (#11117)

* Update French.properties (#11114)

* Update Italian.properties (#11113)

* Update Brazilian_Portuguese.properties (#11112)

* Update Indonesian.properties (#11110)

* Update Indonesian.properties

Translated some untranslated words and fixed some mistranslated words.

* Update Indonesian.properties

* Update Indonesian.properties

* Update Indonesian.properties

* Update Indonesian.properties

* Update Indonesian.properties

* Update Indonesian.properties

* Update Indonesian.properties

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Lena Bullens <95299589+LenaBullens@users.noreply.github.com>
Co-authored-by: Lesiakower <125187776+Lesiakower@users.noreply.github.com>
Co-authored-by: Gekko03 <148203740+Gekko03@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: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
Co-authored-by: M792003 <158552928+M792003@users.noreply.github.com>
2024-02-13 23:36:38 +02:00
SeventhM
a7c0df8c0b
Initial Civ Personality implementation (#10939)
* Barebones implementation

* Personality Policy branch

* Initial addtions to Victory.Focus based changes

* Have no focus or personality if human

* Add getter/setter for easier access to focuses

* Add scaled value to various areas

* Make getPersonality non null to simplify checks

* Forgot to add in changes to the base class

* Ugly code to add in Personality preferred victory type. Not sure how to make it cleaner

* Fix typo

* Early return Faith building choice

* Change set concatination to listOf

* fix missing equal sign

* vals for getPersonality

* Remove unnecessary parenthesis

* Early return the other buildings as well

* Some linting and renames
2024-02-13 23:27:38 +02:00
SomeTroglodyte
eb8fee8edd
Autoplay menu cleanup (#11115)
* Minor linting and fix folder-package mismatch

* Actually make AnimatedMenuPopup stay inside the stage in all directions (was done for bottom left only before)

* Proper keyboard bindings for AutoPlay and -menu

* Testing translations

* AutoPlay as widely used term
2024-02-13 23:27:18 +02:00
SomeTroglodyte
9f53b7e1ee
Key binding categories properly sorted in options popup (#11116)
Delay some of the KeyBindingsTab work until it's viewed
2024-02-13 23:27:00 +02:00
Oskar Niesen
539db00cb6
Workers wake up on tile expansion (#11119)
* Workers wake up on tile expansion

* Only owned workers will wake up
2024-02-13 23:26:04 +02:00
Oskar Niesen
ccea2c88d3
Further Espionage Implementation (#11077)
* Added getSpiesInCity method in EspionageManager

* Expanded stealing technology code

* Spies can now die and revive

* Added basic rigging elections

* Spies rigging elections can now be caught

* Added spy rank

* Players can now move spies to city-states

* Spies at a higher rank steal tech quicker

* EspionageAutomation now sends spies to city-states and to do counter intelligence

* Fixed some EspionageAutomation logic

* Fixed EspionageAutomation error

* Spy.location is now stored as a vector2

* Accounted for the only able to be one spy of a civ in each city

* Spies level up when successfully stealing tech.

* Increased tech steal rate by spy rank

* Increased influence gained by rigging elections

* Added a spy level cap

* Spies no longer get stuck on counter-intelligence action

* Spy automation no longer tries to rig elections in city states that it is at war with

* canMoveTo now checks if the city tile is visible

* Added espionage translations

* Changed automateSpySteal/Rig/Counter intelligence return types

* Simplifies automateSpies in EspionageAutomation

* Added blank lines before titles

* Improved spy being found and killed message phrasing
2024-02-13 23:25:07 +02:00
Yair Morgenstern
6b9c98edc5
Compile to jre 8 target (#11122)
* Allow Java 8 to run this seamlessly, because really, why not?
Resolves #11121
Resolves #11074

* Apparently

* Correct version-to-string
2024-02-12 00:49:08 +02:00
Yair Morgenstern
58318cb199 Allow lower-case "all" for all filters 2024-02-10 20:02:59 +02:00
Yair Morgenstern
e7a2b94c60
SomeTrog's versioning test - compile on jdk 17 FOR jre 11, includes gradle upgrade (#11111) 2024-02-10 19:44:47 +02:00
Yair Morgenstern
a9c367907d Allow combatantFilter for cities to use cityFilter 2024-02-09 12:44:56 +02:00
Yair Morgenstern
eb984f06dc 4.10.8 2024-02-09 12:37:42 +02:00
Yair Morgenstern
31b7a0f93f
Version rollout (#11109)
* Bump version and create initial changelog entry

* Update Simplified_Chinese.properties (#11106)

* Update Spanish.properties (#11093)

* Update Spanish.properties

* Update Spanish.properties

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: AutumnPizazz <114050365+AutumnPizazz@users.noreply.github.com>
Co-authored-by: yetanotherfossman <83962798+yetanotherfossman@users.noreply.github.com>
2024-02-09 12:30:41 +02:00
SeventhM
09413a3182
Add unique for increasing price every time it's built (#11100)
* Add unique for increasing price every time it's built

* Update name to be more accurate

* whoops
2024-02-09 12:19:42 +02:00
Yair Morgenstern
f8137b8a52 Allow BaseUnit unique functions to return UnitType uniques
Resolves #9135
2024-02-09 12:01:01 +02:00
SomeTroglodyte
5568cc08c0
Tweak Overview-Politics-Diagram for a defeated player (#11094)
* Adapt Overview Politics diagram view to show a defeated player a little more intuitively

* Fix lines to defeated civ - each is drawn twice, one for each direction

* Defeated civ has no relations on the table view as well
2024-02-08 21:33:38 +02:00
SomeTroglodyte
1ad8c69e60
Patch AlertPopup to correctly close when it cannot find a required asset (#11095) 2024-02-08 21:33:25 +02:00
SomeTroglodyte
4aba1c2751
Fix Capture when a teleport was necessary (#11096)
* Fix captured civilian liberation in the had-to-be-teleported case

* Refactor captureOrConvertToWorker to return where the unit ended up, if at all - and harden the captureCivilianUnit else branch a bit

* Minor lint
2024-02-08 21:32:52 +02:00
SeventhM
3a6a64576d
Fix mistakes with unavailable unique (#11102) 2024-02-08 21:18:09 +02:00
Yair Morgenstern
c0e85938a6 4.10.7 2024-02-06 00:27:59 +02:00
Yair Morgenstern
645a7fdac9
Version rollout (#11086)
* Bump version and create initial changelog entry

* Update Spanish.properties (#11079)

* Update Spanish.properties

* Update Spanish.properties

* Update Catalan.properties (#11078)

* Update French.properties (#11072)

* Update Polish.properties (#11071)

* Update Indonesian.properties (#11067)

* Update Indonesian.properties

* Update Indonesian.properties

* Update Indonesian.properties

* Update Italian.properties (#11065)

* Update Brazilian_Portuguese.properties (#11064)

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Caballero Arepa <78449553+Caballero-Arepa@users.noreply.github.com>
Co-authored-by: Joan Josep <juanjo.ng.83@gmail.com>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: Lesiakower <125187776+Lesiakower@users.noreply.github.com>
Co-authored-by: M792003 <158552928+M792003@users.noreply.github.com>
Co-authored-by: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
2024-02-06 00:20:13 +02:00
SeventhM
91400a2298
Split Strat Balance and Legend Start into its own checkbox (#11081) 2024-02-06 00:17:33 +02:00
SeventhM
d6abd3a941
Avoid crash from city combantants (#11066)
* Avoid crash from city combantants

* null

* Assume the city from CityCombatant

* Not at Computer manually writing imports
2024-02-05 23:54:02 +02:00
SeventhM
bfc18f53d8
Remove cache for nonstandard tile damage (#11080) 2024-02-05 23:53:52 +02:00
Oskar Niesen
10f3781e6f
ThreatManager improvement (#11030)
* Reworked ThreatManager to be optimised for getTilesWithEnemyUnitsInDistance

* Refactored and added an exception

* doesTileHaveMilitaryEnemy now searches all military units on the tile and not just the unit in the military slot

* Fixed some errors

* Refactored getTilesWithEnemyUnitsInDistance to use a mutableIterator

* Added some more comments
2024-02-05 23:53:34 +02:00
Yair Morgenstern
cfc26e03fd Allow city filters to be multifilters and not throw ruleset errors 2024-02-05 23:48:33 +02:00
Yair Morgenstern
3714600384 Resolved #11076 - Korean science boost only applies for buildings *in capital* 2024-02-03 21:49:48 +02:00
Yair Morgenstern
d49b619e9e Further split between different road automations, some cleanup of the roadTo automation (but not enough, still pretty bad) 2024-02-02 00:30:13 +02:00
Yair Morgenstern
779fd51d9e Separated road automation to a separate file, but actually we have 2 completely different functions here, not sure if requires subdivision 2024-02-02 00:14:39 +02:00
Yair Morgenstern
88c7804490 4.10.6 2024-02-01 23:43:07 +02:00
Yair Morgenstern
addae29649
Version rollout (#11063)
* Bump version and create initial changelog entry

* Update Korean.properties (#11059)

* Update Simplified Chinese (#11058)

* Update Brazilian_Portuguese.properties (#11054)

* Update French.properties (#11053)

* Update Polish.properties (#11052)

* Update Italian.properties (#11051)

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Yattong the Mackerel <saud2410@naver.com>
Co-authored-by: chr_56 <30681738+chr56@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: Lesiakower <125187776+Lesiakower@users.noreply.github.com>
Co-authored-by: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
2024-02-01 23:28:28 +02:00
SomeTroglodyte
d25b1c8c41
Fix ModOptions unique parameter types not checked and "uniquetype" ModOptionsConstants (#10930)
* Kill evil ModOptionsConstants

* UniqueFlag to EnumSet and add `NoConditionals`

* Linting or import reorder

* Fix ModOptions unique parameter types not checked

* ModOptions Unique to suppress validation warnings

* Silence spurious RulesetValidator complaints about Denmark

* Revert "ModOptions Unique to suppress validation warnings"
2024-02-01 23:24:59 +02:00
SomeTroglodyte
9e9ffa51d4
Policy picker colors skinnable (#11050)
* Centralize Policy picker colors and make them skinnable

* Most Policy picker colors skinnable, names, UiElementDocsWriter tricked
2024-02-01 23:24:43 +02:00
Oskar Niesen
d1b4d31d87
Players can't move spies when it is not their turn (#11056)
* Players can't move spies when it is not their turn

* Inversed the statement to have the proper behavior.

* Update core/src/com/unciv/ui/screens/overviewscreen/EspionageOverviewScreen.kt

---------

Co-authored-by: Yair Morgenstern <yairm210@hotmail.com>
2024-02-01 23:24:19 +02:00
Yair Morgenstern
67a7fb7d22 Fixed crash due to ranged unit trying to capture civilian but being unable to reach the tile
Resolves #11062
Resolves #11044
Resolves #11040
@tuvus
2024-02-01 23:21:29 +02:00
Yair Morgenstern
875da6cd48 Added unit conditional support to pillage yield uniques
Added doc note in cached uniques so modders can know ahead of time
See #11060
2024-02-01 23:02:31 +02:00
Yair Morgenstern
a8446be6ad Added unit conditional support to pillage yield uniques 2024-02-01 22:20:57 +02:00
Yair Morgenstern
ddea67c608
Version rollout (#11049)
* Bump version and create initial changelog entry

* Update Italian.properties (#11045)

* Update Hungarian.properties (#11042)

* Update Korean.properties (#11038)

* Update Korean.properties

* Update Korean.properties

* Update Korean.properties

* Update Korean.properties

* Update Brazilian_Portuguese.properties (#11037)

* Update French.properties (#11036)

* update Belarusian translation (#11033)

* update android/assets/jsons/translations/Belarusian.properties

* update android/assets/jsons/translations/Belarusian.properties

* update android/assets/jsons/translations/Belarusian.properties

* update android/assets/jsons/translations/Belarusian.properties

* update android/assets/jsons/translations/Belarusian.properties

* update android/assets/jsons/translations/Belarusian.properties

* update android/assets/jsons/translations/Belarusian.properties

* update android/assets/jsons/translations/Belarusian.properties

* update android/assets/jsons/translations/Belarusian.properties

* update android/assets/jsons/translations/Belarusian.properties

* update android/assets/jsons/translations/Belarusian.properties

* update android/assets/jsons/translations/Belarusian.properties

* update android/assets/jsons/translations/Belarusian.properties

* update android/assets/jsons/translations/Belarusian.properties

* update android/assets/jsons/translations/Belarusian.properties

* update android/assets/jsons/translations/Belarusian.properties

* update android/assets/jsons/translations/Belarusian.properties

* Update Belarusian.properties

* update android/assets/jsons/translations/Belarusian.properties

* update android/assets/jsons/translations/Belarusian.properties

* update android/assets/jsons/translations/Belarusian.properties

* update android/assets/jsons/translations/Belarusian.properties

* update android/assets/jsons/translations/Belarusian.properties

* update android/assets/jsons/translations/Belarusian.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: balazsszalab <balazsszalab@freemail.hu>
Co-authored-by: Yattong the Mackerel <saud2410@naver.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: flac <87523240+twinflac@users.noreply.github.com>
2024-01-30 20:09:25 +02:00
SeventhM
f7702bd71a
Add additional cityFilters (#11047)
* Add additional cityFilters

* Maybe viewingCiv shouldn't be null

* Studio complains it is unnecessary now

* I'm doomed to forget imports

* Ignore this

* typo
2024-01-30 20:06:36 +02:00
Yair Morgenstern
5fb3ab268b Added 'copy to clipboard' button on map errors so we can debug them 2024-01-30 20:06:04 +02:00
SeventhM
277ec5e2a5
Fix gain stat modifier by speed unique action text (#11046)
* Fix gain stat modifier by speed unique action text

* Whoops, should be toInt toString

* I can't escape forgetting imports

* OneTimeGainStatRange also uses modifiers
2024-01-30 20:01:45 +02:00
Yair Morgenstern
da5a1d1a9e
Restrict happiness change updates only to relevant thresholds (#11034)
* As discussed - we currently update on every happiness change, we can limit this to only update all cities if we pass a happiness threshold that is relevant to *some* unique

* Forgot a conditional, and uniqueified results
2024-01-30 19:59:17 +02:00
SomeTroglodyte
d75bb69f4b
Fix: Damage average was raw before clamping to health range (#11041) 2024-01-30 19:58:37 +02:00
SomeTroglodyte
a91f45f410
RulesetValidator: Raise severity for untyped uniques with parameters (#11048) 2024-01-30 19:58:26 +02:00
Yair Morgenstern
52a9eebe28 Gradle 8.2, remove all IOS references due to robovm bug (which we don't use) 2024-01-28 12:35:29 +02:00