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



  <!-- Colony faction -->
  <FactionDef>
		<defName>Colony</defName>
		<label>Colony</label>
    <description>Your own community.</description>
    <pawnsPlural>colonists</pawnsPlural>
		<factionNameMaker>NamerFactionOutlander</factionNameMaker>
		<techLevel>Spacer</techLevel>
		<backstoryCategory>Civil</backstoryCategory>
		<hairTags>
			<li>Urban</li>
		</hairTags>
	</FactionDef>

  
  
  <!-- Hidden factions -->
  <FactionDef>
    <defName>Spacer</defName>
    <label>Spacer</label>
    <description>People from the distant reaches of space.</description>
    <pawnsPlural>spacers</pawnsPlural>
    <requiredCountAtGameStart>1</requiredCountAtGameStart>
    <fixedName>Spacer</fixedName>
    <techLevel>Spacer</techLevel>
    <backstoryCategory>Civil</backstoryCategory>
    <hidden>true</hidden>
    <hairTags>
      <li>Urban</li>
    </hairTags>
  </FactionDef>




  <!-- Normal humanoid factions -->
  <FactionDef>
		<defName>Outlander</defName>
		<label>Outlander town</label>
    <description>A small community of survivors.\n\nThese people have lived here for decades. They've lost most of the technology that brought them here, and usually work with simple mechanical tools and structures, and defend themselves with advanced gunpowder-era weapons.\n\nNot inherently aggressive nor weak, they are concerned with the practical matters of trade, trust, and survival.</description>
    <pawnsPlural>outlanders</pawnsPlural>
    <requiredCountAtGameStart>1</requiredCountAtGameStart>
    <canMakeRandomly>true</canMakeRandomly>
    <raidCommonality>100</raidCommonality>
    <canSiege>true</canSiege>
    <canStageAttacks>true</canStageAttacks>
    <startingGoodwill>
      <min>-40</min>
      <max>40</max>
    </startingGoodwill>
		<factionNameMaker>NamerFactionOutlander</factionNameMaker>
		<techLevel>Midworld</techLevel>
		<backstoryCategory>Civil</backstoryCategory>
		<hairTags>
			<li>Rural</li>
		</hairTags>
    <naturalColonyGoodwill>
      <min>-60</min>
      <max>0</max>
    </naturalColonyGoodwill>
		<spawnGroups>
			<li>
				<selectionWeight>10</selectionWeight>
				<kinds>
					<li>Villager</li>
				</kinds>
			</li>
      <li>
        <selectionWeight>100</selectionWeight>
        <kinds>
          <li>TownGuard</li>
        </kinds>
      </li>    
      <li>
        <selectionWeight>250</selectionWeight>
        <kinds>
          <li>Mercenary</li>
          <li>Mercenary</li>
          <li>Mercenary</li>
        </kinds>
      </li> 
		</spawnGroups>
	</FactionDef>


	<FactionDef>
		<defName>Pirate</defName>
		<label>Pirate band</label>
    <description>A gang of bandits.\n\nPirates don't sow, they don't build, and they rarely trade. They enrich themselves mostly by raiding and robbing the more productive groups in the area.\n\nTheir technology level depends mostly on who they've managed to steal from recently. Mostly they carry gunpowder weapons, though the luckier ones may have advanced energy weapons, and some may just like to stab people at close range.</description>
    <pawnsPlural>pirates</pawnsPlural>
    <requiredCountAtGameStart>1</requiredCountAtGameStart>
    <canMakeRandomly>true</canMakeRandomly>
    <raidCommonality>100</raidCommonality>
    <canSiege>true</canSiege>
    <canStageAttacks>true</canStageAttacks>
    <startingGoodwill>
      <min>-100</min>
      <max>-90</max>
    </startingGoodwill>
		<factionNameMaker>NamerFactionPirate</factionNameMaker>
		<techLevel>Spacer</techLevel>
		<backstoryCategory>Raider</backstoryCategory>
		<hairTags>
			<li>Punk</li>
		</hairTags>
    <naturalColonyGoodwill>
      <min>-100</min>
      <max>-80</max>
    </naturalColonyGoodwill>
		<spawnGroups>
			<li>
				<selectionWeight>10</selectionWeight>
				<kinds>
					<li>Drifter</li>
				</kinds>
			</li>
			<li>
				<selectionWeight>100</selectionWeight>
				<kinds>
					<li>Grenadier</li>
				</kinds>
			</li>
			<li>
				<selectionWeight>100</selectionWeight>
				<kinds>
					<li>Scavenger</li>
					<li>Scavenger</li>
					<li>Scavenger</li>
				</kinds>
			</li>
			<li>
				<selectionWeight>150</selectionWeight>
				<kinds>
					<li>Pirate</li>
					<li>Pirate</li>
					<li>Pirate</li>
				</kinds>
			</li>
			<li>
				<selectionWeight>40</selectionWeight>
				<kinds>
					<li>Drifter</li>
					<li>Drifter</li>
					<li>Drifter</li>
					<li>Drifter</li>
					<li>Drifter</li>
					<li>Drifter</li>
					<li>Drifter</li>
					<li>Drifter</li>
				</kinds>
			</li>
			<li>
				<selectionWeight>250</selectionWeight>
				<kinds>
					<li>Mercenary</li>
					<li>Mercenary</li>
					<li>Mercenary</li>
				</kinds>
			</li>
			<li>
				<selectionWeight>150</selectionWeight>
				<kinds>
					<li>MercenarySniper</li>
					<li>MercenarySniper</li>
					<li>MercenarySniper</li>
				</kinds>
			</li>
		</spawnGroups>
	</FactionDef>





	<FactionDef>
		<defName>Tribal</defName>
		<label>Tribe</label>
    <description>These people have been here a very long time. Maybe their ancestors crashed here a thousand years ago. Maybe they survived some cataclysm that destroyed a technological civilization here. In any case, the tribals are mostly nomadic people who live off the land using primitive tools and weapons.\n\nSome tribes are more aggressive than others; many are open to trade and alliances, even with strange peoples like yourselves. Close cooperation or recruitment will be very difficult because of the vast sociotechnological and linguistic gap between the tribals and yourselves.\n\nDespite their apparent technological weakness, the tribals can be dangerous enemies and valuable friends because of their skill with low-tech warfare, their numbers, and their hardiness.</description>
    <pawnsPlural>tribespeople</pawnsPlural>
    <requiredCountAtGameStart>1</requiredCountAtGameStart>
    <canMakeRandomly>true</canMakeRandomly>
    <raidCommonality>100</raidCommonality>
    <canStageAttacks>true</canStageAttacks>
    <startingGoodwill>
      <min>-100</min>
      <max>10</max>
    </startingGoodwill>
		<factionNameMaker>NamerFactionTribal</factionNameMaker>
		<pawnNameMaker>NamerPersonTribal</pawnNameMaker>
		<techLevel>Neolithic</techLevel>
		<backstoryCategory>Tribal</backstoryCategory>
		<hairTags>
			<li>Tribal</li>
		</hairTags>
    <naturalColonyGoodwill>
      <min>-100</min>
      <max>10</max>
    </naturalColonyGoodwill>
		<spawnGroups>
			<li>
				<selectionWeight>100</selectionWeight>
				<kinds>
					<li>TribalFighter</li>
				</kinds>
			</li>
			<li>
				<selectionWeight>100</selectionWeight>
				<kinds>
					<li>TribalWarrior</li>
				</kinds>
			</li>
			<li>
				<selectionWeight>25</selectionWeight>
				<kinds>
					<li>TribalWarrior</li>
					<li>TribalWarrior</li>
					<li>TribalWarrior</li>
					<li>TribalWarrior</li>
					<li>TribalChief</li>
				</kinds>
			</li>
		</spawnGroups>
	</FactionDef>
  
  
  <!-- Special non-humanoid factions -->

  <FactionDef>
    <defName>Mechanoid</defName>
    <label>Mechanoid hive</label>
    <description>A hive of ancient self-replicating machines.</description>
    <pawnsPlural>mechanoids</pawnsPlural>
    <requiredCountAtGameStart>1</requiredCountAtGameStart>
    <fixedName>a mechanoid hive</fixedName>
    <raidCommonality>45</raidCommonality>
    <humanoidFaction>false</humanoidFaction>
    <hidden>true</hidden>
    <canFlee>false</canFlee>
    <techLevel>Ultra</techLevel>
    <startingGoodwill>
      <min>-100</min>
      <max>-100</max>
    </startingGoodwill>
    <naturalColonyGoodwill>
      <min>-100</min>
      <max>-100</max>
    </naturalColonyGoodwill>
    <spawnGroups>
      <li>
        <selectionWeight>100</selectionWeight>
        <kinds>
          <li>Centipede</li>
        </kinds>
      </li>
      <li>
        <selectionWeight>100</selectionWeight>
        <kinds>
          <li>Scyther</li>
        </kinds>
      </li>
    </spawnGroups>
  </FactionDef>



</FactionDefs>