Severity by Map - KonradHeinser/EBSGFramework GitHub Wiki
This hediff comp sets the hediff's severity based on whether the pawn is on a map or not, with some options for setting specific severities when they are in an ambush/camp, in a pocket map, or in a player map. Keep in mind that this comp is asking the map itself about its details rather than trying to figure it out itself, so if something doesn't appear to be working right (i.e. a player home not being given the correct severity, double-check that the map itself is what Rimworld would consider a player home:
<comps>
<li Class="EBSGFramework.HediffCompProperties_SeverityByMap">
</li>
</comps>
These are the options available:
- notInMap : Default (1) : Severity to use when the pawn isn't being held in a map (usually due to being in a caravan, shuttle, or other type of transportation
- inMap : Default (0.5) : Severity to use when the pawn is in a map, assuming that map isn't covered by one of the other options. The other options are put in order of priority, with the highest one being the only used severity even if multiple somehow qualify
- inTempIncidentMap : Default (0) : When not 0, this is the severity used when the pawn is in a map that the game labels a "temporary incident" map, which mostly consists of ambushes and camps
- inPlayerHome : Default (0) : When not 0, this is the severity used when the pawn is in a map that the game considers a player home (usually just the colony and/or gravship landing sites)
- inPocketMap : Default (0) : When not 0, this is the severity used when the pawn is in a pocket map