References DLC units without creating whole new mod

ITcore

Warlord
Joined
Dec 25, 2016
Messages
248
Location
127.0.0.1
Current mod changes upgrade lines and some combat strength for some vanilla units. I want to update it for Australia. It's probably like 1 or 2 lines of code. Is there anyway I can put in the code and have it alter the DLC unit only if the DLC is present without having to make a whole new mod?

Or do I have to make a whole new mod for it?
 
It looks like the .modinfo format has been updated with a "criteria" attribute. The Austrialia mod uses that, I suspect, to attach files conditionally:
Code:
  <ActionCriteria>
      <Criteria id="Australia">
          <LeaderPlayable>StandardPlayers::LEADER_JOHN_CURTIN</LeaderPlayable>
      </Criteria>
  </ActionCriteria>
  <InGameActions>
      <UpdateDatabase id="AustraliaGameplay" criteria="Australia">
          <!-- ... -->
      </UpdateDatabase>
  </InGameActions>
I suggest trying the same thing in your mod.
 
Back
Top Bottom