Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added PawnKindGeneExtensions; Organized JecsTools folders #30

Merged
merged 2 commits into from
Oct 28, 2022
Merged

Conversation

jecrell
Copy link
Owner

@jecrell jecrell commented Oct 28, 2022

Using JecsTools, one can now have random chances of genes on a pawn based on its PawnKindDef.
See example below where the pawnkinddef has a 15% chance of custom genes

  <PawnKindDef Name="TownsfolkBase" Abstract="True">
    <race>Human</race>
    <defaultFactionType>ROM_Townsfolk</defaultFactionType>
    <initialWillRange>1~3</initialWillRange>
    <initialResistanceRange>15~24</initialResistanceRange>
    <chemicalAddictionChance>0.025</chemicalAddictionChance>
    <invNutrition>2.55</invNutrition>
    <itemQuality>Normal</itemQuality>
    <backstoryCryptosleepCommonality>0</backstoryCryptosleepCommonality>
    <maxGenerationAge>75</maxGenerationAge>
    <modExtensions>
      <li Class="JecsTools.PawnKindGeneExtension">
        <genes>
          <li>
            <defName>ROM_InnsmouthLook_Ears</defName>
            <chance>15</chance>
          </li>
          <li>
            <defName>ROM_InnsmouthLook_Jaw</defName>
            <chance>15</chance>
          </li>
          <li>
            <defName>ROM_InnsmouthLook_Hands</defName>
            <chance>15</chance>
          </li>
          <li>
            <defName>ROM_InnsmouthLook_Eyes</defName>
            <chance>15</chance>
          </li>
          <li>
            <defName>ROM_InnsmouthLook_Headbone_Fin</defName>
            <chance>15</chance>
          </li>
        </genes>
      </li>
    </modExtensions>
  </PawnKindDef>```

@jecrell jecrell merged commit 85f7828 into master Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant