Resolved #13063 - Updated docs regarding event choice fields

This commit is contained in:
yairm210 2025-03-13 14:52:37 +02:00
parent 2109e25fe2
commit 3ce2399841
2 changed files with 6 additions and 8 deletions

View File

@ -476,7 +476,6 @@ object TranslationFileWriter {
private val fieldsToProcessParameters = setOf(
"uniques", "promotions", "milestones",
"triggeredUniques", "conditions"
)
private fun isFieldTypeRelevant(type: Class<*>) =

View File

@ -131,13 +131,12 @@ You can use text and/or civilopediaText, if both are present both are shown (but
Event choices are comprised of:
| Attribute | Type | Default | Notes |
|------------------|-----------------------------|------------|----------------------------------------------------------------------------------------------------------------------|
| text | String | Required | Displayed to user as button. Should be an action name - "Do X" |
| triggeredUniques | List of trigger uniques | Required | The triggers that this choice activates upon being chosen |
| conditions | List of conditional uniques | Empty list | If any conditional is not met, this option becomes unpickable (not shown) |
| keyShortcut | key to select (name) | none | Key names see [Gdx.Input.Keys](https://github.com/libgdx/libgdx/blob/master/gdx/src/com/badlogic/gdx/Input.java#L69) |
| civilopediaText | List | Optional | See [civilopediaText chapter](5-Miscellaneous-JSON-files#civilopedia-text) |
| Attribute | Type | Default | Notes |
|-----------------|------------------------------------------------|------------|---------------------------------------------------------------------------------------------------------------------|
| text | String | Required | Displayed to user as button. Should be an action name - "Do X" |
| uniques | List of uniques to trigger or limit conditions | Required | The triggers that this choice activates upon being chosen, and "Unavailable" / "Only available" uniques |
| keyShortcut | key to select (name) | none | Key names see [Gdx.Input.Keys](https://github.com/libgdx/libgdx/blob/master/gdx/src/com/badlogic/gdx/Input.java#L69) |
| civilopediaText | List | Optional | See [civilopediaText chapter](5-Miscellaneous-JSON-files#civilopedia-text) |
Here, civilopediaText is shown outside the active Button, before the triggeredUniques.