Commit Graph

764 Commits

Author SHA1 Message Date
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
Oskar Niesen
0412d4f143
Revert Espionage button icon (#11630)
* Reverted spy button to show the spy white icon

* Changed the docs credits

* Espionage button now uses a separate path

* Reverted changing Icons.png

* Changed Espionage.png to the new sprite
2024-05-27 12:31:04 +03:00
SomeTroglodyte
199a684409
Support for Zulu language (#11644) 2024-05-27 12:30:21 +03:00
Yair Morgenstern
4bbeece29e Added links to base ruleset template in docs 2024-05-22 23:33:04 +03:00
Oskar Niesen
a976bda25d
Personality Behaviors Template (#11165)
* Added behaviours

* Added the behaviours to the docs

* Fixed spelling

* Fixed references to PersonalityValue.Military

* Commented out Personality Behaviours docs and added a message

* Changed the names of some of the new personality behaviours
2024-05-21 20:11:41 +03:00
SomeTroglodyte
ec253a5886
ImagePacker detects changed settings file, improve documentation. (#11625) 2024-05-21 19:55:22 +03:00
SomeTroglodyte
1fed88acf6
Espionage icons (#11600)
* Icons for Espionage Buildings

* Update WorldScreen top left buttons
2024-05-16 07:01:47 +03:00
PLynx
cd9db42672
Added the culture-refunding remove policy unique (#11538) 2024-05-14 11:00:16 +03:00
Yair Morgenstern
d41a18ecd4 More movement uniques that have problems with conditionals 2024-05-05 20:39:48 +03:00
Yair Morgenstern
dee12bf23d 4.11.10 2024-05-04 21:51:28 +03:00
PLynx
a13f71e654
Added victoryType conditionals (#11542) 2024-05-04 21:03:22 +03:00
Hunter
df6b179102
[docs] fix links to Unique-parameters#terrainfilter and uniques.md (#11535) 2024-04-30 00:36:04 +03:00
Yair Morgenstern
2df8a405c7 Added "checkfilter" console commands for city, tile, and unit, for easy mod checking 2024-04-28 14:25:26 +03:00
SomeTroglodyte
a7d40faade
Fix: Android pause/resume cycle not working (#11511)
* Fix Concurrency being zombified but still tasked to run stuff

* Do not tie Android logcat output to whether Gdx was built for debugging

* Simplify GameStartScreen

* Add wiki page on Debugging/Building for Android
2024-04-25 15:44:40 +03:00
SomeTroglodyte
9dcfb963e3
Multi-filter improve code clarity and more unit tests (#11503)
* 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.
2024-04-24 00:00:40 +03:00
SomeTroglodyte
c75861af25
Prettier Events - that now respect 'hidden from users' (#11474)
* Expand Events to allow civilopediaText, fixing hidden uniques as side effect

* Fix ConditionalChance save scumming

* Fix ExtraImages not working within mods

* Missing documentation of the changes to Events

* Kdoc to clarify why helper returns nullable

* Lint getJavaClassByName: fix compiler warning and re-sort when

* FormattedLine now throws on problems with extraImage loading

* Fix Tutorial extraImage by removing auto and making it explicit

* Revert "FormattedLine now throws on problems with extraImage loading"

This reverts commit b5ab4084ee.

* Partially revert the revert, so bad extraImage fields are console-logged
2024-04-21 15:30:41 +03:00
SomeTroglodyte
8ef90cbaf1
Minor Scenarios UX improvements (#11466)
* Give "Scenarios" its own icon

* A little more wiki info on the console

* Minor ScenarioScreen UX improvements
2024-04-15 23:55:25 +03:00
Yair Morgenstern
43e38e3869 4.11.4 2024-04-12 00:10:52 +03:00
SomeTroglodyte
58243152c9
Images for Escort Formation (#11449)
* Replace and credit "Link" icon

* UnitActionIcons/Escort is a black version of "Link"

* Reprioritize UnitGroup "action" badge to prefer showing what Workers build over escorting
2024-04-11 23:37:57 +03:00
SeventhM
a072f452b6
Allow policy removal unique to remove multiple policies (#11427)
* Allow policy removal unique to remove multiple policies

* Fix typo and filter

* More accurate translation line. Not sure if the engine cares
2024-04-11 23:32:59 +03:00
Oskar Niesen
ef9965e218
Espionage Uniques, Buildings and Policy (#11401)
* Added OneTimeSpiesLevelUp, OneTimeGainSpy, SpyEffectiveness, EnemySpyEffectiveness and HiddenWithoutEspionage Uniques

* Spy effectiveness affects stealing tech and rigging elections

* Fixed HiddenWithoutEspionage

* Added Constabulary and Police Station

* Added cityFilter to SpyEffectiveness

* Added national Intelligence agency

* Added Great Firewall

* Fixed great firewall having a float value

* EspionageManager addSpy now returns Spy instead of name

* Added some simple espionage tests

* Fixed OneTimeSpiesLevelUp still wanting parameter

* Spy efficiency occurs after skill modifier

* Added another test

* Added Police State spy efficiency reduction unique

* Fixed "Hidden when espionage is disabled" wording

* Fixed "effectiveness" wording

* Changed "enemy spy effectiveness" unique to use negative matters

* Spy effectiveness only affect tech steal rate

* Changed "Gain an extra spy" and "Promotes all spies" uniques

* Removed Police State comment that is no longer accurate

* Changed spy effectiveness to be multiplicative
2024-04-09 23:12:21 +03:00
yairm210
7dfa6682e0 docs: Info regarding triggerable uniques 2024-04-08 08:55:12 +03:00
Jeremy Woo
d1606cdcb9
Added triggerable unique to remove policy (#11405)
* Added triggerable unique to remove policy

* Revert a completed branch to incomplete state

* Fixed grammatical error
2024-04-07 11:28:25 +03:00
SomeTroglodyte
cc45cefb99
Work boat construction automation tweaks (#11395)
* Minor lint and optimize addWorkBoatChoice

* Moddable findTileWorthImproving search distance

* Don't count bonus resources outside any city work range as worth improving

* Look for existing work boat in a fixed radius instead of city-owned tiles, depending on work boat speed

* Some UnitMovement readability

* Work boat construction and automation code synergies
2024-04-07 11:27:12 +03:00
Yair Morgenstern
0142c07b69 Added "crash early crash often" to guiding principles 2024-04-04 23:53:54 +03:00
SeventhM
3ea1e4a539
Allow for replacement improvements (#11369)
* Allow for replacement improvements

* imports

* Forgot the most important change, lol

* Docs

* Replacement description, validation, and filter

* Move more into ImprovementDescriptions

* Whoops, forgot to yield

* Fix some copy-paste artifacts

* New translations

* Fix double see also

* Add space for translation engine
2024-04-04 23:39:44 +03:00
PLynx
0caf0cb4fa
Add configurable natural wonder discovery stat bonuses (#11249)
* Added configurable natural wonder discovery stats

* Shortened the code

* Updated the base rulesets with new unique

* Updated the El Dorado unique

* Applied the suggestions

* Reintroduced the implementation for deprecated uniques

* Changed tile.naturalWonder to naturalWonder
2024-04-04 23:39:31 +03:00
Yair Morgenstern
be17bbb389 Added documentation about saved games and transients, cleaned up existing unique documentation 2024-04-02 19:17:52 +03:00
yairm210
c2a2bcb417 4.11.0 2024-04-01 14:22:17 +03:00
PLynx
5e89e2f46d
Countable comparison conditional uniques (#11308)
* Added the countable comparison conditional uniques

* Applied the suggestions of yairm

* Minor wording change
2024-04-01 12:01:20 +03:00
Yair Morgenstern
ef199683cd Clean up wiki main page - #8665 2024-03-26 23:13:40 +02:00
Yair Morgenstern
efcf270b07 Added "Guiding Principles" page 2024-03-18 22:29:21 +02:00
Yair Morgenstern
30b983c0c1 Updated how manual mod copying actually works on Android 2024-03-18 22:12:56 +02:00
Jeremy Woo
928f0df01f
Added multi filter support for BuildingFilter !! (#11319)
* Fixed policies do not grant production bonus to wonders

* Added multi-filter and tech filter for buildingFilter

* Rectification of the uniques of monument to the gods and marbles

* Fixed mod checker issued warnings regarding the techFilter in Unit and Building Filters.

* Edit Unique-parameters.md

* Undo 'Fixed policies do not grant production bonus to Wonders
2024-03-17 23:12:40 +02:00
Yair Morgenstern
c4f05b9a42 4.10.19 2024-03-15 12:01:44 +02:00
itanasi
bf047cf546
New ActionModifiers to enable Stats and Minimum Movement (#11291)
* Add variable Movement Cost

* Add new unique and support code
Modification invalidates the CanTransform
Still has debug

* Make UnitActionStatCost unique syntax
Remove debug code
Improve documentation

* Change text so we can add stockpiles later

* Rework into UnitActionModifier

* Clarifying comments

* rename

* remove bad imports
block if no City for Unit

* Add validation check to other UnitAction Uniques

* add requires and all movement
rework requirement check

* Simplify Transform code

* More efficiency. Add to TriggerUnique

* Allow by default Transform to use all movement

* Add variable Movement Cost

* Add new unique and support code
Modification invalidates the CanTransform
Still has debug

* Make UnitActionStatCost unique syntax
Remove debug code
Improve documentation

* Change text so we can add stockpiles later

* Rework into UnitActionModifier

* Clarifying comments

* rename

* remove bad imports
block if no City for Unit

* Add validation check to other UnitAction Uniques

* add requires and all movement
rework requirement check

* Simplify Transform code

* More efficiency. Add to TriggerUnique

* Allow by default Transform to use all movement

* Code cleanup

* Add variable Movement Cost

* Add new unique and support code
Modification invalidates the CanTransform
Still has debug

* Make UnitActionStatCost unique syntax
Remove debug code
Improve documentation

* Change text so we can add stockpiles later

* Rework into UnitActionModifier

* Clarifying comments

* rename

* remove bad imports
block if no City for Unit

* Add validation check to other UnitAction Uniques

* add requires and all movement
rework requirement check

* Simplify Transform code

* More efficiency. Add to TriggerUnique

* Allow by default Transform to use all movement

* Rework into UnitActionModifier

* remove bad imports
block if no City for Unit

* Code cleanup
2024-03-15 11:29:18 +02:00
Yair Morgenstern
0eb79c5209 4.10.18 2024-03-13 23:31:22 +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
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
Yair Morgenstern
ec131fe7cb Added documentation and schemas for events 2024-03-09 21:54:56 +02:00
Yair Morgenstern
1fc0f0ea68 Fix table formatting in all file documentation 2024-03-09 21:38:14 +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
86f0ed6e85 4.10.16 2024-03-05 23:38:01 +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
0cfee86864 4.10.15 2024-03-03 21:29:55 +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
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
Yair Morgenstern
4f5fdf1727 Civ-wide uniques for city-wide resources 2024-02-27 19:38:14 +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
6448f8e47e Fix links in mod file structure - #11183 2024-02-26 22:53:28 +02:00
Yair Morgenstern
1101f42957 4.10.13 2024-02-26 22:47:43 +02:00