<?xml version="1.0" encoding="utf-8" ?>
<Defs>

  <!-- ============================ Crystal Base ========================== -->

  <PawnKindDef Name="CrystalBase" Abstract="True">
    <defaultFactionType>CrystalFaction</defaultFactionType>
    <race>Alien_Crystal</race>
	<backstoryCategory>CrystalBackstory</backstoryCategory>
    <baseRecruitDifficulty>.85</baseRecruitDifficulty>
	<chemicalAddictionChance>0.05</chemicalAddictionChance>
	<invNutrition>4</invNutrition>
    <!--<apparelAllowHeadwearChance>0</apparelAllowHeadwearChance>-->
    <apparelTags>
		<li>Tribal</li>
    </apparelTags>
	 <weaponTags>
		<li>NonNeolithicOnlyMelee</li>
		<li>NeolithicMeleeAdvanced</li>
		<li>NeolithicRanged</li>
		<li>NeolithicRangedBasic</li>
		<li>NeolithicRangedHeavy</li>
    </weaponTags>
  </PawnKindDef>
  
  <!-- ============================ Crystal Civilian Base ========================== -->

  <PawnKindDef Name="CrystalCivBase" ParentName="CrystalBase" Abstract="True">
    <combatPower>25</combatPower>
	<race>Alien_Crystal</race>
    <itemQuality>Normal</itemQuality>
    <isFighter>false</isFighter>
    <gearHealthRange>
      <min>0.2</min>
      <max>2.0</max>
    </gearHealthRange>
    <apparelMoney>
      <min>300</min>
      <max>900</max>
    </apparelMoney>
	<!--
    <weaponMoney>
      <min>1400</min>
      <max>2500</max>
    </weaponMoney>
    <weaponTags>
	  <li>NeolithicMeleeAdvanced</li>
	  <li>NeolithicRangedHeavy</li>
    </weaponTags>
	-->
    <techHediffsMoney>
      <min>200</min>
      <max>300</max>
    </techHediffsMoney>
    <techHediffsTags>
      <li>Simple</li>
    </techHediffsTags>
    <techHediffsChance>0.01</techHediffsChance>
    <invNutrition>2.55</invNutrition>
	
	<baseRecruitDifficulty>0.9</baseRecruitDifficulty>
    <chemicalAddictionChance>0.1</chemicalAddictionChance>
	
    <inventoryOptions>
      <skipChance>0.45</skipChance>
      <subOptionsChooseOne>
        <li>
          <choiceChance>90</choiceChance>
          <thingDef>Silver</thingDef>
          <countRange>
            <min>25</min>
            <max>70</max>
          </countRange>
        </li>
        <li>
          <choiceChance>10</choiceChance>
          <thingDef>Silver</thingDef>
          <countRange>
            <min>150</min>
            <max>400</max>
          </countRange>
        </li>
      </subOptionsChooseOne>
    </inventoryOptions>
  </PawnKindDef>
  
  <!-- ============================ Crystal Civilians ========================== -->
  
<PawnKindDef ParentName="CrystalCivBase">
    <defName>CrystalColonist</defName>
    <label>colonist</label>
</PawnKindDef>
<!--
<PawnKindDef ParentName="CrystalCivBase">
    <defName>CrystalTransfuge</defName>
    <label>Ancestor</label>
	<race>Alien_Rockman</race>
	<minGenerationAge>110</minGenerationAge>
	<maxGenerationAge>200</maxGenerationAge>
</PawnKindDef>
-->
  
  <PawnKindDef ParentName="CrystalCivBase">
    <defName>CrystalHistSpeaker</defName>
    <label>Hist speaker</label>
    <labelPlural>Hist speakers</labelPlural>
    <factionLeader>true</factionLeader>
	<minGenerationAge>100</minGenerationAge>
	<maxGenerationAge>250</maxGenerationAge>
  </PawnKindDef>
  
	<PawnKindDef ParentName="CrystalCivBase">
	<defName>CrystalTrader</defName>
	<label>colony trader</label>
	<trader>true</trader>
	<weaponMoney>
		<min>200</min>
		<max>400</max>
	</weaponMoney>
	<weaponTags>
		<li>SimpleGun</li>
	</weaponTags>
	</PawnKindDef>

	<PawnKindDef ParentName="CrystalCivBase">
	<defName>CrystalArmlessTrader</defName>
	<label>armless trader</label>
	<inventoryOptions>
      <skipChance>0.5</skipChance>
	      <subOptionsChooseOne>
        <li>
          <thingDef>Silver</thingDef>
          <countRange>
            <min>50</min>
            <max>250</max>
          </countRange>
        </li>
		<li>
          <thingDef>RawPotatoes</thingDef>
          <countRange>
            <min>5</min>
            <max>75</max>
          </countRange>
        </li>
		</subOptionsChooseOne>
	</inventoryOptions>
	<trader>true</trader>
	</PawnKindDef>
	
    <PawnKindDef ParentName="CrystalCivBase">
		<defName>CrystalSlave</defName>
		<label>slave</label>
	</PawnKindDef>

	<PawnKindDef ParentName="CrystalCivBase">
		<defName>CrystalRefugee</defName>
		<label>refugee</label>
	</PawnKindDef>
	
	<PawnKindDef ParentName="CrystalCivBase">
		<defName>CrystalWanderer</defName>
		<label>wanderer</label>
	</PawnKindDef>
	
	<PawnKindDef ParentName="CrystalCivBase">
		<defName>CrystalExperiment</defName>
		<label>experiment</label>
		<techHediffsMoney>
		  <min>2000</min>
		  <max>15000</max>
		</techHediffsMoney>
		<techHediffsTags>
			<li>Poor</li>
			<li>Simple</li>
			<li>Advanced</li>
		</techHediffsTags>
		<techHediffsChance>1</techHediffsChance>
	</PawnKindDef>
	
  <PawnKindDef ParentName="CrystalCivBase">
    <defName>CrystalAddicted</defName>
    <label>dealer</label>
    <combatPower>50</combatPower>
    <minGenerationAge>20</minGenerationAge>
    <apparelTags>
		<li>Outlander</li>
    </apparelTags>
	<invNutrition>1</invNutrition>
	<apparelAllowHeadwearChance>0.5</apparelAllowHeadwearChance>
	<backstoryCryptosleepCommonality>0.1</backstoryCryptosleepCommonality>
    <itemQuality>Normal</itemQuality>
    <weaponMoney>
		<min>500</min>
		<max>1000</max>
    </weaponMoney>
    <weaponTags>
		<li>SimpleGun</li>
    </weaponTags>
    <techHediffsMoney>
      <min>50</min>
      <max>1500</max>
    </techHediffsMoney>
    <techHediffsTags>
		<li>Poor</li>
		<li>Advanced</li>
    </techHediffsTags>
	
	<combatEnhancingDrugsCount>
		<min>0</min>
		<max>2</max>
	</combatEnhancingDrugsCount>
	
	<chemicalAddictionChance>.7</chemicalAddictionChance>
    <techHediffsChance>.7</techHediffsChance>
	<trader>true</trader>
    <inventoryOptions>
      <skipChance>0.5</skipChance>
      <subOptionsChooseOne>
        <li>
          <thingDef>Silver</thingDef>
          <countRange>
            <min>180</min>
            <max>400</max>
          </countRange>
        </li>
		<li>
          <thingDef>WakeUp</thingDef>
          <countRange>
            <min>1</min>
            <max>5</max>
          </countRange>
        </li>
        <li>
          <thingDef>SmokeleafJoint</thingDef>
          <countRange>
            <min>10</min>
            <max>20</max>
          </countRange>
        </li>
		<li>
          <thingDef>Flake</thingDef>
          <countRange>
            <min>5</min>
            <max>15</max>
          </countRange>
        </li>
		
		<li>
          <thingDef>Luciferium</thingDef>
          <countRange>
            <min>1</min>
            <max>1</max>
          </countRange>
        </li>
      </subOptionsChooseOne>
    </inventoryOptions>
  </PawnKindDef>
  
  <!-- ============================ Crystal Security ========================== -->
  
	<PawnKindDef ParentName="CrystalCivBase">
		<defName>CrystalGuard</defName>
		<label>guard</label>
		<combatPower>50</combatPower>
		
		<minGenerationAge>50</minGenerationAge>
		<maxGenerationAge>150</maxGenerationAge>
		
		<gearHealthRange>
			<min>0.5</min>
			<max>1.8</max>
		</gearHealthRange>
		<apparelMoney>
			<min>700</min>
			<max>4000</max>
		</apparelMoney>
		<weaponMoney>
			<min>1400</min>
			<max>3000</max>
		</weaponMoney>
		<weaponTags>
			<li>NeolithicRanged</li>
			<li>SimpleGun</li>
		</weaponTags>
		<techHediffsMoney>
			<min>200</min>
			<max>5000</max>
		</techHediffsMoney>
		<techHediffsTags>
			<li>Simple</li>
		</techHediffsTags>
		<techHediffsChance>0.03</techHediffsChance>
		<invNutrition>2.55</invNutrition>
		<inventoryOptions>
			<skipChance>0.95</skipChance>
			<thingDef>Silver</thingDef>
			<countRange>
				<min>30</min>
				<max>100</max>
			</countRange>
		</inventoryOptions>
	</PawnKindDef>
  
 
  <!-- ============================ Crystal Military Base ========================== -->
  
	<PawnKindDef Name="CrystalMilBase" ParentName="CrystalBase" Abstract="True">
		<chemicalAddictionChance>0</chemicalAddictionChance>
		<isFighter>true</isFighter>
		<race>Alien_Crystal</race>
		<invNutrition>2.55</invNutrition>
		<itemQuality>Normal</itemQuality>
		
		<minGenerationAge>40</minGenerationAge>
		<maxGenerationAge>300</maxGenerationAge>
		
		<gearHealthRange>
			<min>0.7</min>
			<max>2.3</max>
		</gearHealthRange>
		<apparelTags>
			<li>Tribal</li>
		</apparelTags>
		<apparelMoney>
			<min>1500</min>
			<max>5800</max>
		</apparelMoney>
		<weaponMoney>
			<min>1400</min>
			<max>20000</max>
		</weaponMoney>
		<weaponTags>
			<li>Gun</li>
			<li>NeolithicRanged</li>
			<li>NeolithicMeleeAdvanced</li>
		</weaponTags>
		<techHediffsMoney>
			<min>1000</min>
			<max>1500</max>
		</techHediffsMoney>
		<inventoryOptions>
			<skipChance>0.8</skipChance>
			<subOptionsChooseOne>
			<li>
				<thingDef>Silver</thingDef>
				<countRange>
				<min>50</min>
				<max>200</max>
				</countRange>
			</li>
			<li>
				<thingDef>Medicine</thingDef>
				<countRange>
				<min>1</min>
				<max>1</max>
				</countRange>
			</li>
			</subOptionsChooseOne>
		</inventoryOptions>
	</PawnKindDef>

  <!-- ============================ Crystal Military ========================== -->

	<PawnKindDef ParentName="CrystalMilBase">
		<defName>CrystalFighter</defName>
		<label>Fighter</label>
		<combatPower>70</combatPower>
	</PawnKindDef>

	<PawnKindDef ParentName="CrystalCivBase">
		<defName>CrystalGrenadier</defName>
		
		<gearHealthRange>
			<min>0.7</min>
			<max>2.3</max>
		</gearHealthRange>
		<apparelTags>
			<li>Outlander</li>
			<li>Military</li>
			<li>BeltDefensePop</li>
		</apparelTags>
		<apparelMoney>
			<min>800</min>
			<max>1400</max>
		</apparelMoney>
		<apparelAllowHeadwearChance>0.5</apparelAllowHeadwearChance>
		<weaponMoney>
			<min>600</min>
			<max>1000</max>
		</weaponMoney>
		
		<weaponTags>
			<li>GrenadeDestructive</li>
		</weaponTags>
		<combatPower>70</combatPower>
	</PawnKindDef>
  
  <PawnKindDef ParentName="CrystalMilBase">
    <defName>CrystalHunter</defName>
    <label>hunter</label>
    <combatPower>90</combatPower>
    <minGenerationAge>19</minGenerationAge>
    <gearHealthRange>
      <min>0.7</min>
      <max>2.3</max>
    </gearHealthRange>
    <apparelTags>
      <li>Tribal</li>
    </apparelTags>
    <apparelMoney>
      <min>1500</min>
      <max>25000</max>
    </apparelMoney>
    <weaponMoney>
      <min>1400</min>
      <max>28000</max>
    </weaponMoney>
    <weaponTags>
		<li>AdvancedGun</li>
		<li>EliteGun</li>
    </weaponTags>
    <techHediffsMoney>
      <min>1000</min>
      <max>15000</max>
    </techHediffsMoney>
    <combatEnhancingDrugsCount>
      <min>0</min>
      <max>2</max>
    </combatEnhancingDrugsCount>
    <techHediffsTags>
      <li>Advanced</li>
    </techHediffsTags>
    <techHediffsChance>0.03</techHediffsChance>
    <inventoryOptions>
      <skipChance>0.8</skipChance>
      <subOptionsChooseOne>
        <li>
          <thingDef>Silver</thingDef>
          <countRange>
            <min>50</min>
            <max>200</max>
          </countRange>
        </li>
        <li>
          <thingDef>Medicine</thingDef>
          <countRange>
            <min>1</min>
            <max>1</max>
          </countRange>
        </li>
      </subOptionsChooseOne>
    </inventoryOptions>
  </PawnKindDef>

  <PawnKindDef ParentName="CrystalMilBase">
    <defName>CrystalHistGuard</defName>
    <label>Hist Guardian</label>
    <combatPower>135</combatPower>
	
	<minGenerationAge>100</minGenerationAge>
	<maxGenerationAge>250</maxGenerationAge>
	
    <gearHealthRange>
      <min>0.5</min>
      <max>2.3</max>
    </gearHealthRange>
    <apparelTags>
      <li>Tribal</li>
    </apparelTags>
    <apparelMoney>
      <min>1000</min>
      <max>26000</max>
    </apparelMoney>
    <weaponMoney>
      <min>1400</min>
      <max>28000</max>
    </weaponMoney>
    <weaponTags>
		<li>AdvancedGun</li>
		<li>EliteGun</li>
    </weaponTags>
    <techHediffsMoney>
      <min>2000</min>
      <max>30000</max>
    </techHediffsMoney>
    <techHediffsTags>
      <li>Advanced</li>
    </techHediffsTags>
    <techHediffsChance>0.08</techHediffsChance>
    <inventoryOptions>
      <skipChance>0.8</skipChance>
      <subOptionsChooseOne>
        <li>
          <thingDef>Silver</thingDef>
          <countRange>
            <min>180</min>
            <max>400</max>
          </countRange>
        </li>
        <li>
          <thingDef>Medicine</thingDef>
          <countRange>
            <min>1</min>
            <max>2</max>
          </countRange>
        </li>
      </subOptionsChooseOne>
    </inventoryOptions>
  </PawnKindDef>

	<PawnKindDef ParentName="CrystalMilBase">
		<defName>CrystalShadowscale</defName>
		<label>Shadowscale</label>
		<combatPower>220</combatPower>
		<minGenerationAge>180</minGenerationAge>
		<gearHealthRange>
			<min>0.8</min>
			<max>3.5</max>
		</gearHealthRange>
		<apparelTags>
			<li>Military</li>
			<li>Tribal</li>
		</apparelTags>
		<apparelMoney>
			<min>2500</min>
			<max>42000</max>
		</apparelMoney>
		<weaponMoney>
			<min>1600</min>
			<max>28000</max>
		</weaponMoney>
		<weaponTags>
			<li>GunHeavy</li>
		</weaponTags>
		<techHediffsMoney>
			<min>2000</min>
			<max>8000</max>
		</techHediffsMoney>
		<techHediffsTags>
			<li>Advanced</li>
		</techHediffsTags>
		<techHediffsChance>0.04</techHediffsChance>
		<inventoryOptions>
		<skipChance>0.8</skipChance>
		<subOptionsChooseOne>
			<li>
				<thingDef>Silver</thingDef>
				<countRange>
					<min>120</min>
					<max>480</max>
				</countRange>
			</li>
			<li>
				<thingDef>Medicine</thingDef>
				<countRange>
					<min>1</min>
					<max>2</max>
				</countRange>
			</li>
		</subOptionsChooseOne>
		</inventoryOptions>
	</PawnKindDef>

</Defs>
