mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-04 07:17:50 +07:00
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
This commit is contained in:
@ -182,11 +182,24 @@ Allowed values are:
|
||||
|
||||
This indicates a text comprised of specific stats and is slightly more complex.
|
||||
|
||||
Each stats is comprised of several stat changes, each in the form of `+{amount} {stat}`, where 'stat' is one of the seven major stats mentioned above.
|
||||
Each stats is comprised of several stat changes, each in the form of `+{amount} {stat}`,
|
||||
where 'stat' is one of the seven major stats
|
||||
(eg `Production`, `Food`, `Gold`, `Science`, `Culture`, `Happiness` and `Faith`).
|
||||
For example: `+1 Science`.
|
||||
|
||||
These can be strung together with ", " between them, for example: `+2 Production, +3 Food`.
|
||||
|
||||
## stockpiledResource
|
||||
|
||||
This indicates a text that corresponds to a custom Stockpile Resource.
|
||||
|
||||
These are global civilization resources that act similar to the main Civ-wide resources like `Gold` and `Faith`.
|
||||
You can generate them and consume them. And actions that would consume them are blocked if you
|
||||
don't have enough left in stock.
|
||||
|
||||
To use, you need to first define a TileResources with the "Stockpiled" Unique. Then you can reference
|
||||
them in other Uniques.
|
||||
|
||||
## technologyFilter
|
||||
|
||||
At the moment only implemented for [ModOptions.techsToRemove](Mod-file-structure/5-Miscellaneous-JSON-files.md#modoptionsjson).
|
||||
|
Reference in New Issue
Block a user