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( private val fieldsToProcessParameters = setOf(
"uniques", "promotions", "milestones", "uniques", "promotions", "milestones",
"triggeredUniques", "conditions"
) )
private fun isFieldTypeRelevant(type: Class<*>) = private fun isFieldTypeRelevant(type: Class<*>) =

View File

@ -132,10 +132,9 @@ You can use text and/or civilopediaText, if both are present both are shown (but
Event choices are comprised of: Event choices are comprised of:
| Attribute | Type | Default | Notes | | Attribute | Type | Default | Notes |
|------------------|-----------------------------|------------|----------------------------------------------------------------------------------------------------------------------| |-----------------|------------------------------------------------|------------|---------------------------------------------------------------------------------------------------------------------|
| text | String | Required | Displayed to user as button. Should be an action name - "Do X" | | 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 | | uniques | List of uniques to trigger or limit conditions | Required | The triggers that this choice activates upon being chosen, and "Unavailable" / "Only available" uniques |
| 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) | | 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) | | civilopediaText | List | Optional | See [civilopediaText chapter](5-Miscellaneous-JSON-files#civilopedia-text) |