* Added support for new historyranking serialization - saved ~10% of save file size!
* Convert RankingType strings to chars
* Join to string using ranking char instead of generic delimiter
* Keep writing old format for now :)
* Handle negative rankings
* Fix test
* Minor perf
* Revert "Minor perf"
This reverts commit 470b3e9286.
* Wrote some failing unit tests to simulate the crash
* Fix escort movement crash
* getDistanceToTiles now searches once using both escorting units
* Added an extra test
* Moved checking for escort unit movement outside of getMovementCostBetweenAdjacentTiles
* 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>
* 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
* 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
* 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
* 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
* Barbarian encampments are no longer a HashMap since #9374 so that old compat code is unreachable
* Rename SerializationTests to GameSerializationTests and add a barb camp to the game
* Add SerializationTests (roundtrip tests for classes with custom serialization)
* Convert setSerializer to implement Json.Serializable where possible
* Created DeclareWarReason enum
* Created a new notifyOfWar function and a DeclareWarReason class
* moved handleCityStateDirectAttack to it's own function
* Moved changing modifiers to its own function
* Moved notifyOfWar above onWarDeclared
* Fixed defensive pact canceling notifications
* Added more comments
* Fixed DiplomacyManagerTests
* Warmongering does not stack with defensive pacts
* Reworked how shared enemy modifiers are given out
* Fixed JoinWar notifications
* Added join war translations
* Added missing defensive pact translations
* Fixed translation parameter problems
* Changed "canceled" to "cancelled"
* Some linting and region reorder
* Make MultiFilter accept a negated "and" list plus more unit tests
* MultiFilter gets 'or' capability
* Revert "MultiFilter gets 'or' capability"
This reverts commit 9f6e7c794a.