Layer Conditional Stat Affecter - KonradHeinser/EBSGFramework GitHub Wiki

Return to Main Conditional Stat Affecters Page


This conditional stat affecter checks what layer the pawn is on:

        <conditionalStatAffecters>	
            <li Class="EBSGFramework.ConditionalStatAffecter_WorldLayer">
                <label>label</label>
                <statFactors>

                </statFactors>
                <statOffsets>

                </statOffsets>
                <layers>
                    <li></li>
                </layers>
            </li>
        </conditionalStatAffecters>

These are the options available:

  • label : A label to override the default
  • layers : A list of PlanetLayerDefs to look for. If the pawn doesn't have a world tile for whatever reason, this will never be checked and the condition will always fail
  • invert : Default (False) : Makes it so layers is looking to make sure the pawn is not on one of the layers. If your goal is something like "not on the surface" or "not in orbit", it's recommended to set this to true instead of listing all the allowed layers so unexpected layers aren't excluded (i.e. a mod adding an underwater layer)
⚠️ **GitHub.com Fallback** ⚠️