OpenXcom Forum

OpenXcom => Suggestions => Topic started by: Aldorn on May 22, 2014, 12:44:30 pm

Title: [MULTI-MOD INTEGRATION] Research -> new setting "addDependencies"
Post by: Aldorn on May 22, 2014, 12:44:30 pm
It is a wish, or an idea to dig in...

Currently integrating some mods together, I think it coud be nice to have a new setting "addDependencies" at our disposition

Aim is to be able to keep two mods independent one from the other without having to make too many changes

Assuming that we have a global research node that contains already lot of dependencies
Code: [Select]
research:
  - name: STR_MYRESEARCH
    dependencies:
    - STR_MYDEPENDENCY01
    - ...
    - STR_MYDEPENDENCY15

Suppose now I created two new research nodes, that have to be included, if and only if exists, as dependencies of MYRESEARCH

It could be easy to declare

(1st Mod)
Code: [Select]
research:
  - name: STR_MYNEWRESEARCH1
  ...
  - name: STR_MYRESEARCH
    addDependencies:
    - STR_MYNEWRESEARCH1
(2nd Mod)
Code: [Select]
research:
  - name: STR_MYNEWRESEARCH2
  ...
  - name: STR_MYRESEARCH
    addDependencies:
    - STR_MYNEWRESEARCH2

EDIT :
Same idea for addUnlocks, addGetOneFree
And regarding "Manufacture" & "Ufopaedia" : addRequires