Generic Prerequisites - KonradHeinser/EBSGFramework GitHub Wiki

Many comps in this framework allow for a prerequisites tag that contains a bunch of checks that can be made. Every time you see this prerequisites tag, all of the options within it are the same as any other location with the tag, and the general behaviour will be the same. These are the options available:

  • prerequisites : A special item that limits who can use the item
    • hasAnyOfHediffs : List of HediffDefs that the pawn must have any one of
    • hasAllOfHediffs : List of HediffDefs that the pawn must have all of
    • hasNoneOfHediffs : List of HediffDefs that the pawn must have none of
    • hasAnyOfGenes : List of GeneDefs that the pawn must have any one of
    • hasAllOfGenes : List of GeneDefs that the pawn must have all of
    • hasNoneOfGenes : List of GeneDefs that the pawn must have none of
    • isAnyOfXenotype : List of XenotypeDefs that the pawn must be one of
    • isNoneOfXenotype : List of XenotypeDefs that the pawn must not be one of
    • skillRequirements : Special list of skills that use the SkillDef's defName for the tag, and a range of skill levels for the value. If no value is entered (i.e. ), then the condition is met as long as the skill is not disabled. Aptitude is not included in the level, so other genes won't affect this
    • complexSkillRequirements : A list of special lists that use the SkillDef's defName for the tag, and a range of skill levels for the value. Each li acts similar to skillRequirements where all of skills in the li must be within the range. If any of the li's have all of their skills met, then this condition is considered met

These are the comps that use prerequisites:

⚠️ **GitHub.com Fallback** ⚠️