mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-04 23:40:01 +07:00
Promotion picker allowing picking chains in one go (#9655)
* Try to allow chained promotion picking * Reorg PromotionPickerScreen into own package * Draft for new PromotionTree * Change PromotionPickerScreen to use new tree (picking still not done) * Finish new PromotionPickerScreen - code * Finish new PromotionPickerScreen - assets and linting * Finish new PromotionPickerScreen - polish positioning and lines * Finish new PromotionPickerScreen - fix sound * Finish new PromotionPickerScreen - little optimization * Finish new PromotionPickerScreen - emphasize line along path * Finish new PromotionPickerScreen - merge fix * Finish new PromotionPickerScreen - address comments * Finish new PromotionPickerScreen - fix sort and update wiki
This commit is contained in:
@ -44,14 +44,16 @@ Remember, promotions can be "bought" with XP, but also granted by the unit type,
|
||||
|
||||
Each promotion can have the following properties:
|
||||
|
||||
| Attribute | Type | Optional | Notes |
|
||||
| --------- | ---- | -------- | ----- |
|
||||
| name | String | Required | See above for "I, II, III" progressions |
|
||||
| prerequisites | List | Default empty | Prerequisite promotions |
|
||||
| effect | String | Default empty | Deprecated, use uniques instead |
|
||||
| unitTypes | List | Default empty | The unit types for which this promotion applies as specified in [UnitTypes.json](#unittypesjson) |
|
||||
| uniques | List | Default empty | List of effects, [see here](../Modders/Unique-parameters.md#unit-uniques) |
|
||||
| civilopediaText | List | Default empty | see [civilopediaText chapter](Miscellaneous-JSON-files.md#civilopedia-text) |
|
||||
| Attribute | Type | Optional | Notes |
|
||||
|-----------------|--------|---------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| name | String | Required | See above for "I, II, III" progressions |
|
||||
| prerequisites | List | Default empty | Prerequisite promotions |
|
||||
| effect | String | Default empty | Deprecated and ignored, use uniques instead |
|
||||
| column | Int | Yes | Determines placement order on the promotion picker screen. Name is historical, these coordinates no longer control placement directly. Promotions without coordinates are ensured to be placed last. (…) |
|
||||
| row | Int | Yes | … In base mods without any coordinates, promotions without prerequisites are sorted alphabetically and placed top down, the rest of the screen will structure the dependencies logically. If your mod has a "Heal instantly", it is suggested to use row=0 to place it on top. |
|
||||
| unitTypes | List | Default empty | The unit types for which this promotion applies as specified in [UnitTypes.json](#unittypesjson) |
|
||||
| uniques | List | Default empty | List of effects, [see here](../Modders/uniques.md#unit-uniques) |
|
||||
| civilopediaText | List | Default empty | see [civilopediaText chapter](Miscellaneous-JSON-files.md#civilopedia-text) |
|
||||
|
||||
## UnitTypes.json
|
||||
|
||||
|
Reference in New Issue
Block a user