Commit Graph

715 Commits

Author SHA1 Message Date
SomeTroglodyte
65a99e23fd
Enhance modding freedom for Natural Wonders (#12062)
* Allow omitting `turnsInto` on Natural Wonders

* Support a wider range of parameters on NaturalWonderConvertNeighbors*

* Extend docDescription

* Good suggestion

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

---------

Co-authored-by: Yair Morgenstern <yairm210@hotmail.com>
2024-08-06 10:10:29 +03:00
yairm210
4e51c94fa4 the word 'default' is misleading since it's an overrider 2024-08-04 10:22:37 +03:00
yairm210
e01ba625ba Allow default unitset and tileset for base ruleset mods 2024-08-04 10:17:22 +03:00
Caballero Arepa
e10652964b
Clarify which entities are for Portraits (#12051)
* Clarify which entities are for Portraits

Would this work?

* Add documentation for autoupdate workflow

* Remove autoupdate doc
2024-08-02 14:42:24 +03:00
Oskar Niesen
155082471b
Made Gold Gifting moddable (#11995)
* Made gold gifting moddable

* Made gold gift degradation moddable

* Removed unused import statement
2024-07-24 16:31:57 +03:00
SomeTroglodyte
42d6218956
Easter eggs: Moddable floating imagery (#11483)
* New HolidayDates for potential easter eggs

* Dia de los Muertos

* Add Diawali

* Add Diwali credits

* Add some Qingming stuff

* Allow for zero images for a holiday configured to show floating art

* Revert contained art

* Simplify a few things

* Implement all special days I could think of

* Wiki

* Put chance back in so the full-range old holidays behave the same as before and unit tests work
2024-07-18 17:55:41 +03:00
yairm210
a50982e9bb Added terrains.json schema 2024-07-16 00:01:51 +03:00
yairm210
55b92b3fb5 Added error handling 2024-07-14 16:44:06 +03:00
yairm210
88ba177a9c Added documentation for autoupdates 2024-07-14 16:16:54 +03:00
yairm210
41bd1314b9 Mod CI step 1 - allow running Unciv as a cli tool for linting etc 2024-07-14 11:47:02 +03:00
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
51dbb3e6ed Modding docs: Show uniques on all targets 2024-07-11 10:05:37 +03:00
SpacedOutChicken
ac6964d290
Correct Unique parameters doc to display terrain quality (#11927)
* - Turn Privateer's unique ability into a promotion
- Add promotion to Privateer and Sea Beggar

* Update uniques for withdrawing before melee combat

* List terrain quality in relevant section - correct capitalization of Enemy Land
2024-07-07 23:12:41 +03:00
SomeTroglodyte
ebba2eaeea
Galician support (#11742)
* Galician support

* Redo Flags.atlas
2024-07-05 16:09:01 +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
Yair Morgenstern
1155aec310
Move detekt configs to workflow (#11899)
* Move detekt configs to workflow

* Update documentation
2024-07-01 22:55:53 +03:00
yairm210
37b9943ff3 Added promotionName as possible value for mapUnitFilter 2024-06-30 23:43:28 +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
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
54d872045c Better "Withdraws before melee combat" unique 2024-06-26 00:17:06 +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
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
Yair Morgenstern
39de50829a Resolve #11795 - fix performance problem for displaying air units in cities 2024-06-24 23:53:36 +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
9f4d0ace49
Add "release patch" section to the wiki (#11744) 2024-06-19 17:13:55 +03:00
Yair Morgenstern
109955c523 Simplified DispatcherVetoer, explained dispatcher 2024-06-19 00:37:07 +03:00
Yair Morgenstern
79be14e291 Resolved #11082 - Added "Will not be replaced by automated units" unique 2024-06-17 23:12:50 +03:00
SomeTroglodyte
c5d3bfca9d
Add wiki section on how to begin a new language (#11756) 2024-06-16 22:12:17 +03:00
Yair Morgenstern
0a357e3598 Resolved #11758 2024-06-15 23:14:51 +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
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
yairm210
616a297f49 Documentation for mobile console 2024-06-09 14:31:22 +03:00
Yair Morgenstern
2f8b8ca974 4.11.18 2024-06-08 23:33:38 +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
yairm210
1296b16f90 4.11.17 2024-06-04 18:18:49 +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
yairm210
bdb0dcef65 Resolved #11675 - Unavailable techs work well with tech picker screen 2024-05-31 19:06:12 +03:00
yairm210
5404b97009 4.11.16 2024-05-30 00:07:01 +03:00
yairm210
d7018de5c5 Add unit name and building name countables 2024-05-27 16:15:08 +03:00
Yair Morgenstern
11cee77fb9
"for every [countable]" unique modifier (#11641)
* "for every [countable]" unique modifier

* detekt fix

* Test city-unique edge cases
2024-05-27 12:32:12 +03:00