Skip to content
MaxDorob edited this page Nov 14, 2022 · 1 revision

Use hediffs-expressions to select texture

<Defs>
<GeneDef ParentName="GeneTailBase">
    <defName>Revia tail</defName>
    <label>Revian tail</label>
    <description>Revia ear - biotech port.</description>
    <!--<iconPath>UI/Icons/Genes/Gene_FerianTail</iconPath>-->
    <iconColor>(0.75, 0.75, 0.75)</iconColor>
    <displayOrderInCategory>1000</displayOrderInCategory>
    <statOffsets>
      <MeleeDodgeChance>0.25</MeleeDodgeChance>
      <MoveSpeed>1.0</MoveSpeed>
      <ComfyTemperatureMin>-5</ComfyTemperatureMin>
    </statOffsets>
    <biostatCpx>1</biostatCpx>
    <biostatMet>-1</biostatMet>
    <graphicData>
      <graphicPath>Things/Tails/Tail1</graphicPath>
      <colorType>Hair</colorType>
      <!--<drawOffsetNorth>(0.1, 0.2, -0.45)</drawOffsetNorth>
      <drawOffsetSouth>(0.2, -0.1, -0.05)</drawOffsetSouth>
      <drawOffsetEast>(-0.75, -0.1, -0.15)</drawOffsetEast>-->
    </graphicData>
    <modExtensions>
      <li Class="BetterGeneGraphicsFramework.GraphicsWithAge">
        <ages>
          <li>0</li>
        </ages>
        <bodyPartExpressions>
          <li>Global - lvl1</li>
          <li>Global - lvl2</li>
          <li>Global - lvl3</li>
          <li>Global - lvl4</li>
          <!--etc-->
        </bodyPartExpressions>
        <graphicPaths>
          <li>Things/Tails/Tail1</li>
          <li>Things/Tails/Tail2</li>
          <li>Things/Tails/Tail3</li>
          <li>Things/Tails/Tail4</li>
          <!--etc-->
        </graphicPaths>
      </li>

      <li Class="BetterGeneGraphicsFramework.ShaderSupport">
        <shaderType>CutoutComplex</shaderType>
        <colorType>Hair</colorType>
      </li>
    </modExtensions>
  </GeneDef>

  <GeneDef ParentName="GeneEarsBase">
    <defName>Ears_Revia</defName>
    <label>Revian ears</label>
    <description>Revia ear - biotech port.</description>
   
    <graphicData>
      <graphicPath>Things/Ears/EarMerged</graphicPath>
      <colorType>Hair</colorType>
      <useSkinShader>False</useSkinShader>
    </graphicData>
    <capMods>
      <li>
        <capacity>Hearing</capacity>
        <postFactor>1.25</postFactor>
      </li>
    </capMods>
    <biostatCpx>1</biostatCpx>
    <biostatMet>-1</biostatMet>
    <modExtensions>
      <li Class="BetterGeneGraphicsFramework.GraphicsWithAge">
        <ages>
          <li>0</li>
        </ages>
        <bodyPartExpressions>
          <li>Left ear|Right ear</li>
          <li>!Left ear|Right ear</li>
          <li>Left ear|Right ear -- MissingBodyPart</li>
          <li>!Left ear|!Right ear</li>
        </bodyPartExpressions>
        <graphicPaths>
          <li>Things/Ears/EarMerged</li>
          <li>Things/Ears/EarRight</li>
          <li>Things/Ears/EarLeft</li>
          <li>Things/Ears/EarNone</li>
        </graphicPaths>
      </li>

      <li Class="BetterGeneGraphicsFramework.ShaderSupport">
        <shaderType>CutoutComplex</shaderType>
        <colorType>Hair</colorType>
      </li>
    </modExtensions>
  </GeneDef>
</Defs>
Clone this wiki locally