I would like to create two mods that add ammunition to a weapon in a vanilla game, along with some other items specific to each mod.
A question is, how could this be accomplished with current configuration interpretation semantics.
Currently, there exists a definition
- type: STR_SMALL_LAUNCHER
compatibleAmmo:
- STR_STUN_BOMB
- STR_ELERIUM_BOMB
- STR_EMP_BOMB
which corresponds to configuration
{ { type : "STR_SMALL_LAUNCHER" ,
compatibleAmmo: [ "STR_STUN_BOMB" , "STR_ELERIUM_BOMB" , "STR_EMP_BOMB" ]
},
# ...
}
I would like to provide additional definitions, along the lines of
- type: STR_SMALL_LAUNCHER
compatibleAmmo:
- insert: STR_MEGA_BOMB
- insert: STR_GIGA_BOMB
in one mod and also
- type: STR_SMALL_LAUNCHER
compatibleAmmo:
- insert: STR_GIANT_BOMB
- insert: STR_ULTRA_BOMB
in another mod in order to yield the following configuration:
{ { type : "STR_SMALL_LAUNCHER" ,
compatibleAmmo: [ "STR_STUN_BOMB" , "STR_ELERIUM_BOMB" , "STR_EMP_BOMB",
"STR_MEGA_BOMB", "STR_GIGA_BOMB", "STR_GIANT_BOMB", "STR_ULTRA_BOMB" ] },
# ...
}
What is the best way to accomplish that?