OpenXcom Forum
Modding => OpenXcom Extended => OXCE Support => Topic started by: krautbernd on May 25, 2020, 01:49:42 am
-
This in regards to a recent addition to OXCE
- Option to modify ruleset lists without completely redefining them (!add and !remove YAML tags) : https://openxcom.org/forum/index.php/topic,6586.msg127524.html#msg127524
I'm trying to additional soldier types to starting conditions (as a submod for XCF):
startingConditions:
- type: STR_LABOR_GEAR
defaultArmor: !add
STR_VETERAN_SOLDIER:
STR_WORKSUIT_UC: 100
But this overwrites the definition instead. Are !add and !remove not supported for those type of lists?
-
This right now work only for list and list look like:
somthing:
- AAAA
- BBBBB
- CCC
You have map:
foo:
AAAAAA: bbbb
CCCC: ddd
I need look at this case if is easy to add this new functionality here too
-
Thanks for clearing that up. It would be great to see that functionality expanded since it would make (sub)mods a lot simpler to implement. Or is there another way to do this without having to copy&modify the complete definition?
-
Right now you need copy and paste it.
-
I now testing new version that will allow for this node to add new values without overwriting old ones.
-
But this overwrites the definition instead. Are !add and !remove not supported for those type of lists?
For the record, this is available since OXCE 6.6
Closing as solved.