"imps"
{
    {
      ids = { "IMP" }
      traits = { WORKER NO_LIMIT NO_EQUIPMENT NO_LEISURE_ZONE }
      spawnLocation = NearLeader
      keybinding = CREATE_IMP
      sound = {"CREATE_IMP" 2}
      noAuto = true
      initialRecruitment = 4
      requirements = {
        { 1 ExponentialCost "GOLD" 30 5 4 }
      }
    }
}

"peseants"
{
    {
      ids = { "PESEANT_PLAYER" }
      traits = { WORKER NO_LIMIT NO_EQUIPMENT NO_LEISURE_ZONE }
      keybinding = CREATE_IMP
      noAuto = true
      initialRecruitment = 4
      requirements = {
        { 1 ExponentialCost "GOLD" 30 5 4 }
      }
    }
}

"church_common"
{
    {
      ids = { "ACOLYTE" "ACOLYTE_F" }
      traits = { WORKER NO_LIMIT NO_EQUIPMENT NO_LEISURE_ZONE }
      keybinding = CREATE_IMP
      noAuto = true
      initialRecruitment = 4
      requirements = {
        { 1 ExponentialCost "GOLD" 30 5 4 }
      }
    }
    {
      ids = { "PRIEST_DIVINITY" }
      traits = { FIGHTER }
      frequency = 0.4
      requirements = {
        { 0.1 AttractionInfo 1 {FurnitureType "PRAYER_BENCH_WOOD"}}
      }
      specialTraits = {
        { 0.15 { SpecialAttr DEFENSE 8 HatedBy HATE_UNDEAD }}
        { 0.03 { AttrBonus DIVINITY 4 AttrBonus DEFENSE -4}}
        { 0.02 { AttrBonus SPELL_SPEED 30 }}
        { 0.05 { ExtraTraining DIVINITY 2}}
        { 0.02 { Lasting { HATE_UNDEAD } }}
      }
    }
    {
      ids = { "ARTISAN" }
      traits = { FIGHTER NO_AUTO_EQUIPMENT }
      frequency = 0.5
      requirements = {
        { 0.1 AttractionInfo 1 {FurnitureType "FORGE" FurnitureType "WORKSHOP" FurnitureType "JEWELLER"}}
      }
      specialTraits = {
         { 0.05 { OneOfTraits { Lasting { FAST_CRAFTING } Lasting { SLOW_CRAFTING } } }}
         { 0.03 { AttrBonus FORGE 20 Lasting { INSANITY } }}
         { 0.03 { Lasting { BAD_BREATH } }}
      }
    }
}

"bishop" inherit "church_common" append
{
  {
    ids = { "ARMED_BROTHER" }
    traits = { FIGHTER }
    frequency = 0.7
    requirements = {
      { 0.1 AttractionInfo 1 {FurnitureType "TRAINING_WOOD_HUMAN"}}
    }
    specialTraits = {
      { 0.05 { SpecialAttr DAMAGE 8 HatedBy HATE_DRAGONS }}
      { 0.05 { ExtraTraining DAMAGE 2}}
      { 0.05 { OneOfTraits { Lasting { FAST_TRAINING } Lasting { SLOW_TRAINING } } }}
      { 0.05 { Lasting { HATE_ELVES } }}
      { 0.05 { Lasting { HATE_DWARVES } }}
      { 0.05 { Lasting { HATE_GREENSKINS } }}
      { 0.03 { Lasting { BAD_BREATH } }}
    }
  }
  {
    ids = { "PROSTITUTE" }
    frequency = 0.2
    traits = { FIGHTER NO_EQUIPMENT }
    requirements = {
      { 1.0 CostInfo "GOLD" 50 }
      { 0.0 TechId "big temptations"}
    }
  }
  {
    ids = { "GIGOLO" }
    frequency = 0.05
    traits = { FIGHTER NO_EQUIPMENT }
    requirements = {
      { 1.0 CostInfo "GOLD" 50 }
      { 0.0 TechId "big temptations"}
    }
  }
}

"mother" inherit "church_common" append
{
  {
    ids = { "WARRIOR_NUN" }
    traits = { FIGHTER }
    frequency = 0.7
    requirements = {
      { 0.1 AttractionInfo 1 {FurnitureType "TRAINING_WOOD_HUMAN"}}
    }
    specialTraits = {
      { 0.05 { SpecialAttr DAMAGE 8 HatedBy HATE_DRAGONS }}
      { 0.05 { ExtraTraining DAMAGE 2}}
      { 0.05 { OneOfTraits { Lasting { FAST_TRAINING } Lasting { SLOW_TRAINING } } }}
      { 0.05 { Lasting { HATE_ELVES } }}
      { 0.05 { Lasting { HATE_DWARVES } }}
      { 0.05 { Lasting { HATE_GREENSKINS } }}
      { 0.03 { Lasting { BAD_BREATH } }}
    }
  }
  {
    ids = { "PROSTITUTE" }
    frequency = 0.05
    traits = { FIGHTER NO_EQUIPMENT }
    requirements = {
      { 1.0 CostInfo "GOLD" 50 }
      { 0.0 TechId "big temptations"}
    }
  }
  {
    ids = { "GIGOLO" }
    frequency = 0.2
    traits = { FIGHTER NO_EQUIPMENT }
    requirements = {
      { 1.0 CostInfo "GOLD" 50 }
      { 0.0 TechId "big temptations"}
    }
  }
}

Def DarkRecruits()
    {
      ids = { "DARK_ELF_WARRIOR" }
      traits = { FIGHTER }
      requirements = {
        { 0.0 RecruitmentInfo { "DARK_ELVES_ALLY" } 3 }
        { 1.0 CostInfo "GOLD" 20 }
      }
    }
    {
      ids = { "GOBLIN_ARTIFICER_VILLAIN" }
      traits = { FIGHTER NO_AUTO_EQUIPMENT }
      requirements = {
        { 0.0 RecruitmentInfo { "GOBLIN_BLACKSMITH" } 0 }
        { 1.0 CostInfo "GOLD" 250 }
      }
    }
    {
      ids = { "GOBLIN_WARRIOR" }
      traits = { FIGHTER }
      requirements = {
        { 0.0 RecruitmentInfo { "GOBLIN_CAVE_ALLY" } 3 }
        { 1.0 CostInfo "GOLD" 5 }
      }
    }
    {
      ids = { "HARPY" }
      traits = { FIGHTER }
      requirements = {
        { 0.0 RecruitmentInfo { "HARPY_CAVE" } 3 }
        { 1.0 CostInfo "GOLD" 12 }
      }
    }
    {
      ids = { "VAMPIRE" }
      traits = { FIGHTER }
      requirements = {
        { 0.0 RecruitmentInfo { "Z_LEVEL_VAMPIRE_VAULT" } 0 }
      }
    }
    {
      ids = { "GOBLIN_WIZARD" }
      traits = { FIGHTER }
      requirements = {
        { 0.0 RecruitmentInfo { "EVIL_TEMPLE" } 0 }
      }
    }
End

"white_recruits"
{
    {
      ids = { "DWARF" }
      traits = { FIGHTER }
      requirements = {
        { 0.0 RecruitmentInfo { "Z_LEVEL_DWARF_VAULT" } 0 }
      }
    }
    {
      ids = { "ARTISAN_VILLAIN" }
      traits = { FIGHTER NO_AUTO_EQUIPMENT }
      requirements = {
        { 0.0 RecruitmentInfo { "HUMAN_BLACKSMITH" } 0 }
        { 1.0 CostInfo "GOLD" 250 }
      }
    }
    {
      ids = { "PRIEST" }
      traits = { FIGHTER }
      requirements = {
        { 0.0 RecruitmentInfo { "TEMPLE" } 0 }
      }
    }
}

"white_stables"
{
    {
      ids = { "HORSE_CAN_TRAIN" }
      traits = { NO_LIMIT INCREASE_POPULATION }
      requirements = {
        { 0.0 RecruitmentInfo { "HUMAN_STABLE" } 0 }
        { 1.0 CostInfo "GOLD" 25 }
      }
    }
    {
      ids = { "WARHORSE" }
      traits = { NO_LIMIT INCREASE_POPULATION }
      requirements = {
        { 0.0 RecruitmentInfo { "HUMAN_STABLE" } 0 }
        { 1.0 CostInfo "GOLD" 40 }
      }
    }
    {
      ids = { "CAMEL" }
      traits = { NO_LIMIT INCREASE_POPULATION }
      requirements = {
        { 0.0 RecruitmentInfo { "THIEF_STABLE" } 0 }
        { 1.0 CostInfo "GOLD" 25 }
      }
    }
}

"white_stables_no_pop"
{
    {
      ids = { "HORSE_CAN_TRAIN" }
      traits = { NO_LIMIT }
      requirements = {
        { 0.0 RecruitmentInfo { "HUMAN_STABLE" } 0 }
        { 1.0 CostInfo "GOLD" 25 }
      }
    }
    {
      ids = { "WARHORSE" }
      traits = { NO_LIMIT }
      requirements = {
        { 0.0 RecruitmentInfo { "HUMAN_STABLE" } 0 }
        { 1.0 CostInfo "GOLD" 40 }
      }
    }
    {
      ids = { "CAMEL" }
      traits = { NO_LIMIT }
      requirements = {
        { 0.0 RecruitmentInfo { "THIEF_STABLE" } 0 }
        { 1.0 CostInfo "GOLD" 25 }
      }
    }
}
"dark_keeper"
{
    {
      ids = { "GOBLIN_ARTIFICER" }
      traits = { FIGHTER NO_AUTO_EQUIPMENT }
      frequency = 0.7
      requirements = {
        { 0.1 AttractionInfo 1 {FurnitureType "FORGE" FurnitureType "WORKSHOP" FurnitureType "JEWELLER"}}
      }
      specialTraits = {
         { 0.03 { AttrBonus FORGE 20 Lasting { INSANITY } }}
         { 0.03 { Lasting { BAD_BREATH } }}
         { 0.01 { Lasting { ENTERTAINER } }}
      }
    }
    {
      ids = { "GOBLIN_WARRIOR" }
      traits = { FIGHTER }
      frequency = 0.7
      requirements = {
        { 0.1 AttractionInfo 1 {FurnitureType "TRAINING_WOOD"}}
      }
      specialTraits = {
         { 0.01 { ExtraIntrinsicAttack
            HEAD
            { Intrinsic { "bite_attack" } FANGS_ATTACK 5 {
                attackType = BITE
                attackMsg = BITE
                victimEffect = {0.1 Lasting POISON} } } } }
         { 0.01 { CompanionInfo {summonFreq = 0.1 creatures = { "WOLF" }}}}
         { 0.01 { SpecialAttr DAMAGE 10 CreatureStatus LEADER }}
         { 0.03 { SpecialAttr DAMAGE 6 Name IMMIGRATION_TRAITS Attacker Rider }}
         { 0.02 { SpecialAttr DEFENSE 8 HatedBy HATE_HUMANS }}
         { 0.02 { SpecialAttr DEFENSE 8 Not Humanoid }}
         { 0.05 { SpecialAttr DAMAGE 5 Name IMMIGRATION_TRAITS1 Attacker LastingEffect DRUNK }}
         { 0.01 { ExtraBodyPart HEAD 1}}
         { 0.01 { ExtraBodyPart WING 2}}
         { 0.05 { ExtraTraining RANGED_DAMAGE 2}}
         { 0.05 { ExtraTraining DAMAGE 2}}
         { 0.03 { AttrBonus DAMAGE 13 Lasting { INSANITY }}}
         { 0.03 { AttrBonus DAMAGE 10 AttrBonus DEFENSE 10 Lasting { AGGRAVATES }}}
         { 0.05 { Lasting { NIGHT_VISION } }}
         { 0.05 { Lasting { DISARM_TRAPS_SKILL } }}
         { 0.05 { Lasting { SWIMMING_SKILL } }}
         { 0.05 { Lasting { MAGIC_VULNERABILITY } }}
         { 0.02 { Lasting { HATE_ELVES } }}
         { 0.02 { Lasting { HATE_HUMANS } }}
         { 0.03 { Lasting { BAD_BREATH } }}
         { 0.01 { Lasting { ENTERTAINER } }}
      }
    }
    {
      ids = { "GOBLIN_WIZARD" }
      traits = { FIGHTER }
      frequency = 0.3
      requirements = {
        { 0.1 AttractionInfo 1 {FurnitureType "BOOKCASE_WOOD" FurnitureType "LABORATORY"}}
        { 0.0 MinTurnRequirement 500 }
      }
      specialTraits = {
         { 0.01 { CompanionInfo { summonFreq = 0.1 creatures = { "WOLF" }}}}
         { 0.01 { SpecialAttr DEFENSE 10 HatedBy HATE_DRAGONS }}
         { 0.02 { SpecialAttr SPELL_DAMAGE 8 Not Humanoid }}
         { 0.03 { Lasting { RIDER } SpecialAttr SPELL_DAMAGE 6 Name IMMIGRATION_EFFECT Attacker Rider }}
         { 0.10 { ExtraTraining SPELL_DAMAGE 4}}
         { 0.05 { SpecialAttr SPELL_DAMAGE 5 Name IMMIGRATION_TRAITS1 Attacker LastingEffect DRUNK }}
         { 0.05 { AttrBonus SPELL_SPEED 30 }}
         { 0.03 { AttrBonus SPELL_DAMAGE 10 AttrBonus DEFENSE 10 Lasting { AGGRAVATES }}}
         { 0.02 { Lasting { HATE_ELVES } }}
         { 0.02 { Lasting { HATE_HUMANS } }}
         { 0.01 { Lasting { ENTERTAINER } }}
      }
    }
    {
      ids = { "GOBLIN_PRIEST" }
      traits = { FIGHTER }
      frequency = 0.3
      requirements = {
        { 0.1 AttractionInfo 1 {FurnitureType "BOOKCASE_WOOD"}}
        { 0.0 MinTurnRequirement 500 }
      }
      specialTraits = {
         { 0.10 { ExtraTraining SPELL_DAMAGE 4}}
         { 0.10 { Lasting { MAGIC_RESISTANCE } }}
         { 0.02 { Lasting { HATE_ELVES } }}
         { 0.02 { Lasting { HATE_HUMANS } }}
         { 0.05 { AttrBonus SPELL_SPEED 30 }}
         { 0.01 { Lasting { ENTERTAINER } }}
      }
    }
    {
      ids = { "GOBLIN_SHAMAN" }
      traits = { FIGHTER }
      frequency = 0.1
      requirements = {
        { 0.1 AttractionInfo 1 {FurnitureType "BOOKCASE_WOOD" FurnitureType "LABORATORY"}}
        { 0.0 MinTurnRequirement 500 }
      }
      specialTraits = {
         { 0.10 { Lasting { MAGIC_RESISTANCE } }}
         { 0.02 { Lasting { HATE_ELVES } }}
         { 0.02 { Lasting { HATE_HUMANS } }}
         { 0.01 { Lasting { ENTERTAINER } }}
      }
    }
    {
      ids = { "HARPY" }
      traits = { FIGHTER }
      frequency = 0.3
      requirements = {
        { 0.0 MinTurnRequirement 2000 }
        { 0.1 AttractionInfo 1 {FurnitureType "TRAINING_IRON"}}
        { 0.3 AttractionInfo 1 {ItemIndex RANGED_WEAPON}}
      }
      specialTraits = {
         { 0.02 { SpecialAttr RANGED_DAMAGE 20 CreatureStatus CIVILIAN }}
         { 0.03 { AttrBonus RANGED_DAMAGE 13 Lasting { INSANITY }}}
         { 0.03 { AttrBonus DEFENSE 5 Lasting { SLOWED }}}
         { 0.05 { Lasting { RANGED_VULNERABILITY } }}
         { 0.05 { SpecialAttr RANGED_DAMAGE 5 Name IMMIGRATION_TRAITS1 Attacker LastingEffect DRUNK }}
         { 0.05 { Lasting { DISARM_TRAPS_SKILL } }}
         { 0.05 { Lasting { SWIMMING_SKILL } }}
         { 0.02 { Lasting { HATE_ELVES } }}
         { 0.02 { Lasting { HATE_HUMANS } }}
         { 0.05 { ExtraTraining RANGED_DAMAGE 2}}
         { 0.05 { Lasting { BAD_BREATH } }}
      }
    }
    {
      ids = { "ZOMBIE" }
      traits = { FIGHTER }
      frequency = 0.5
      spawnLocation = FurnitureType "GRAVE"
      requirements = {
        { 0.0 MinTurnRequirement 1000 }
        { 0.0 CostInfo "CORPSE" 1}
      }
      specialTraits = {
         { 0.03 { CompanionInfo { summonFreq = 0.1 creatures = { "FLY" }}}}
         { 1.0 { ExtraIntrinsicAttack
            HEAD
            { Intrinsic { "bite_attack" } FANGS_ATTACK 5 {
                attackType = BITE
                attackMsg = BITE
                victimEffect = {0.1 Lasting POISON} } } } }
         { 0.1 { ExtraBodyPart HEAD 1}}
         { 0.3 { Lasting { BLIND } }}
         { 1.0 { Lasting { SWARMER } }}
         { 0.3 { Lasting { COLLAPSED } }}
      }
    }
    {
      ids = { "SKELETON_ARCHER" }
      traits = { FIGHTER }
      frequency = 0.5
      spawnLocation = FurnitureType "GRAVE"
      requirements = {
        { 0.0 MinTurnRequirement 1000 }
        { 0.1 AttractionInfo 1 {FurnitureType "ARCHERY_RANGE"}}
        { 0.0 CostInfo "CORPSE" 1}
      }
      specialTraits = {
         { 0.3 { Lasting { SLOWED } }}
      }
    }
    {
      ids = { "VAMPIRE" }
      traits = { FIGHTER }
      frequency = 0.2
      spawnLocation = FurnitureType "GRAVE"
      requirements = {
        { 0.0 MinTurnRequirement 1000 }
        { 0.1 AttractionInfo 1 {FurnitureType "TRAINING_IRON"}}
        { 0.0 CostInfo "CORPSE" 1}
      }
      specialTraits = {
         { 0.03 { CompanionInfo { summonFreq = 0.1 creatures = { "BAT" }}}}
         { 0.02 { SpecialAttr SPELL_DAMAGE 7 HatedBy HATE_ELVES }}
         { 0.3 { Lasting { TELEPATHY } }}
         { 0.3 { Lasting { FIRE_RESISTANT } }}
         { 0.05 { Lasting { HATE_GREENSKINS } }}
         { 0.02 { AttrBonus SPELL_SPEED 30 }}
         { 0.3 { Lasting { FLYING } }}
         { 0.1 { Lasting { ENTERTAINER } }}
         { 0.03 { AttrBonus SPELL_DAMAGE 10 AttrBonus DEFENSE 10 Lasting { AGGRAVATES }}}
      }
    }
    {
      ids = { "MUMMY" }
      traits = { FIGHTER }
      frequency = 0.1
      spawnLocation = FurnitureType "GRAVE"
      requirements = {
        { 0.0 MinTurnRequirement 1000 }
        { 0.1 AttractionInfo 1 {FurnitureType "TRAINING_IRON"}}
        { 0.0 CostInfo "CORPSE" 1}
      }
      specialTraits = {
        { 0.02 { SpecialAttr DAMAGE 7 HatedBy HATE_ELVES }}
        { 1.0 { Lasting { BAD_BREATH } }}
      }
     }
    {
      ids = { "LOST_SOUL" }
      traits = { FIGHTER }
      frequency = 0.3
      spawnLocation = FurnitureType "DEMON_SHRINE"
      requirements = {
        { 0.3 AttractionInfo 1 {FurnitureType "DEMON_SHRINE"}}
        { 0.0 CostInfo "DEMON_PIETY" 300 }
      }
    }
    {
      ids = { "SUCCUBUS" }
      traits = { FIGHTER NO_EQUIPMENT }
      frequency = 0.3
      spawnLocation = FurnitureType "DEMON_SHRINE"
      requirements = {
        { 0.3 AttractionInfo 2 {FurnitureType "DEMON_SHRINE"}}
        { 0.0 CostInfo "DEMON_PIETY" 1000 }
      }
    }
    {
      ids = { "ICE_DEMON" }
      traits = { FIGHTER NO_EQUIPMENT }
      frequency = 0.3
      spawnLocation = FurnitureType "DEMON_SHRINE"
      requirements = {
        { 0.3 AttractionInfo 2 {FurnitureType "DEMON_SHRINE"}}
        { 0.0 CostInfo "DEMON_PIETY" 1000 }
      }
      specialTraits = {
        { 1.0 { SpecialAttr COLD_DAMAGE 12 HatedBy HATE_HUMANS }}
        { 1.0 { Lasting { SUMMONED 500 } }}
      }
    }
    {
      ids = { "DOPPLEGANGER" }
      traits = { FIGHTER }
      frequency = 0.3
      spawnLocation = FurnitureType "DEMON_SHRINE"
      requirements = {
        { 0.3 AttractionInfo 3 {FurnitureType "DEMON_SHRINE"}}
        { 0.0 CostInfo "DEMON_PIETY" 3000 }
      }
    }
    {
      ids = { "WEREWOLF" }
      traits = { FIGHTER DOESNT_TRIGGER }
      frequency = 0.1
      requirements = {
        { 0.0 MinTurnRequirement 2000 }
        { 0.0 FurnitureType "BEAST_CAGE" }
        { 0.3 AttractionInfo 2 {FurnitureType "TRAINING_IRON"}}
      }
      specialTraits = {
         { 1.0 { SpecialAttr DAMAGE 7 Name IMMIGRATION_TRAITS2 Night }}
         { 0.1 { SpecialAttr DAMAGE 5 HatedBy HATE_HUMANS }}
         { 0.1 { AttrBonus DAMAGE 13 Lasting { INSANITY }}}
         { 0.03 { Lasting { INSANITY }}}
         { 0.1 { Lasting { HATE_UNDEAD }}}
         { 0.3 { Lasting { AMBUSH_SKILL } }}
         { 0.1 { Lasting { ENTERTAINER } }}
         { 0.03 { AttrBonus DAMAGE 10 AttrBonus DEFENSE 10 Lasting { AGGRAVATES }}}
      }
    }
    DarkRecruits()
    {
      ids = { "SPECIAL_HMBN" "SPECIAL_HMBW" "SPECIAL_HMGN" "SPECIAL_HMGW" }
      traits = { FIGHTER }
      consumeIds = true
      spawnLocation = Pregnancy
      requirements = {
        { 0.0 TechId "humanoid mutation" }
        { 0.0 Pregnancy }
        { 1.0 CostInfo "GOLD" 100 }
      }
      specialTraits = {
         { 0.1 { Lasting { INSANITY }}}
      }
      acceptedAchievement = "succubus_breading"
    }
    {
      ids = { "SPECIAL_BMBN" "SPECIAL_BMBW" "SPECIAL_BMGN" "SPECIAL_BMGW" }
      traits = { FIGHTER DOESNT_TRIGGER }
      consumeIds = true
      spawnLocation = Pregnancy
      requirements = {
        { 0.0 TechId "beast mutation" }
        { 0.0 Pregnancy }
        { 1.0 CostInfo "GOLD" 100 }
      }
      acceptedAchievement = "succubus_breading"
    }
}

"white_keeper"
{
    {
      ids = { "ARTISAN" }
      traits = { FIGHTER NO_AUTO_EQUIPMENT }
      frequency = 0.7
      requirements = {
        { 0.1 AttractionInfo 1 {FurnitureType "FORGE" FurnitureType "WORKSHOP" FurnitureType "JEWELLER"}}
      }
      specialTraits = {
         { 0.05 { OneOfTraits { Lasting { FAST_CRAFTING } Lasting { SLOW_CRAFTING } } }}
         { 0.03 { AttrBonus FORGE 20 Lasting { INSANITY } }}
         { 0.03 { Lasting { BAD_BREATH } }}
      }
    }
    {
      ids = { "SQUIRE_PLAYER" }
      traits = { FIGHTER }
      frequency = 0.7
      requirements = {
        { 0.1 AttractionInfo 1 {FurnitureType "TRAINING_WOOD_HUMAN"}}
      }
      specialTraits = {
        { 0.05 { SpecialAttr DAMAGE 8 HatedBy HATE_DRAGONS }}
        { 0.05 { ExtraTraining RANGED_DAMAGE 2}}
        { 0.05 { ExtraTraining DAMAGE 2}}
        { 0.05 { SpecialAttr DAMAGE 6 Name IMMIGRATION_TRAITS Attacker Rider }}
        { 0.05 { OneOfTraits { Lasting { FAST_TRAINING } Lasting { SLOW_TRAINING } } }}
        { 0.05 { Lasting { HATE_ELVES } }}
        { 0.05 { Lasting { HATE_DWARVES } }}
        { 0.05 { Lasting { HATE_GREENSKINS } }}
        { 0.03 { Lasting { BAD_BREATH } }}
      }
    }
    {
      ids = { "PRIEST_PLAYER" }
      traits = { FIGHTER }
      frequency = 0.3
      requirements = {
        { 0.1 AttractionInfo 1 {FurnitureType "BOOKCASE_WOOD_HUMAN"}}
        { 0.1 TechId "worship"}
        { 0.0 MinTurnRequirement 500 }
      }
      specialTraits = {
        { 0.15 { SpecialAttr DEFENSE 8 HatedBy HATE_UNDEAD }}
        { 0.03 { AttrBonus SPELL_DAMAGE 4 AttrBonus DEFENSE -4}}
        { 0.02 { AttrBonus SPELL_SPEED 30 }}
        { 0.05 { ExtraTraining SPELL_DAMAGE 2}}
        { 0.02 { Lasting { HATE_UNDEAD } }}
      }
    }
    {
      ids = { "CLERIC" }
      traits = { FIGHTER }
      frequency = 0.3
      requirements = {
        { 0.1 AttractionInfo 1 {FurnitureType "BOOKCASE_WOOD_HUMAN"}}
        { 0.0 MinTurnRequirement 500 }
      }
      specialTraits = {
        { 0.15 { SpecialAttr DEFENSE 8 HatedBy HATE_UNDEAD }}
        { 0.05 { ExtraTraining SPELL_DAMAGE 2}}
        { 0.02 { AttrBonus SPELL_SPEED 30 }}
      }
    }
    {
      ids = { "ARCHER_PLAYER" }
      traits = { FIGHTER }
      frequency = 0.3
      requirements = {
        { 0.0 MinTurnRequirement 2000 }
        { 0.1 AttractionInfo 1 {FurnitureType "ARCHERY_RANGE"}}
      }
      specialTraits = {
        { 0.15 { SpecialAttr RANGED_DAMAGE 8 HatedBy HATE_GREENSKINS }}
        { 0.03 { AttrBonus RANGED_DAMAGE 13 Lasting { INSANITY }}}
        { 0.03 { AttrBonus DEFENSE 5 Lasting { SLOWED }}}
        { 0.05 { SpecialAttr RANGED_DAMAGE 6 Name IMMIGRATION_TRAITS Attacker Rider }}
        { 0.05 { Lasting { RANGED_VULNERABILITY } }}
        { 0.05 { Lasting { DISARM_TRAPS_SKILL } }}
        { 0.05 { Lasting { SWIMMING_SKILL } }}
        { 0.02 { Lasting { HATE_ELVES } }}
        { 0.02 { Lasting { HATE_HUMANS } }}
        { 0.05 { ExtraTraining RANGED_DAMAGE 2}}
        { 0.03 { Lasting { BAD_BREATH } }}
      }
    }
    {
      ids = { "JESTER" }
      traits = { FIGHTER }
      frequency = 0.1
      requirements = {
        { 0.0 AttractionInfo 1 {FurnitureType "THRONE_HUMAN"}}
      }
      specialTraits = {
        { 1.0 { Lasting { ENTERTAINER } }}
      }
    }
    {
      ids = { "DWARF_BLACKSMITH" }
      traits = { FIGHTER }
      requirements = {
        { 0.0 RecruitmentInfo { "DWARVES" } 0 }
        { 1.0 CostInfo "GOLD" 100 }
      }
    }
    {
      ids = { "GALEAM" }
      traits = { FIGHTER NO_LIMIT }
      frequency = 0.3
      spawnLocation = FurnitureType "ANGEL_SHRINE"
      requirements = {
        { 0.3 AttractionInfo 1 {FurnitureType "ANGEL_SHRINE"}}
        { 0.0 CostInfo "DEMON_PIETY" 300 }
      }
    }
    {
      ids = { "CHERUB" }
      traits = { FIGHTER NO_LIMIT }
      frequency = 0.2
      spawnLocation = FurnitureType "ANGEL_SHRINE"
      requirements = {
        { 0.3 AttractionInfo 2 {FurnitureType "ANGEL_SHRINE"}}
        { 0.0 CostInfo "DEMON_PIETY" 1000 }
      }
    }
    {
      ids = { "ANGEL" }
      traits = { FIGHTER NO_LIMIT }
      frequency = 0.15
      spawnLocation = FurnitureType "ANGEL_SHRINE"
      requirements = {
        { 0.3 AttractionInfo 2 {FurnitureType "ANGEL_SHRINE"}}
        { 0.0 CostInfo "DEMON_PIETY" 3000 }
      }
    }
    {
      ids = { "TEUTON" }
      traits = { FIGHTER }
      requirements = {
        { 0.0 RecruitmentInfo { "TEUTONS" } 3 }
        { 1.0 CostInfo "GOLD" 150 }
      }
    }
    {
      ids = { "DOG" }
      traits = { FIGHTER DOESNT_TRIGGER NO_LIMIT }
      frequency = 0.1
    }
    {
      ids = { "HORSE_CAN_TRAIN" }
      traits = { NO_LIMIT INCREASE_POPULATION }
      requirements = {
        { 1.0 CostInfo "GOLD" 50 }
        { 1.0 AttractionInfo 2 {FurnitureType "STABLE"}}
      }
    }
}
"gnomes"
{
    {
      ids = { "GNOME" }
      traits = { LEADER WORKER NO_LIMIT }
      invisible = true
      noAuto = true
      initialRecruitment = 4
      spawnLocation = NearLeader
    }
}
"dwarves"
{
    {
      ids = { "DWARF_PLAYER" "DWARF_PLAYER_F" }
      traits = { LEADER WORKER FIGHTER }
      invisible = true
      noAuto = true
      initialRecruitment = 11
      spawnLocation = NearLeader
    }
}
"necromancer"
{
    {
      ids = { "ZOMBIE_WORKER" }
      traits = { FIGHTER WORKER NO_LIMIT }
      invisible = true
      noAuto = true
      initialRecruitment = 4
      spawnLocation = NearLeader
    }
}
"zombies"
{
    {
      ids = { "ZOMBIE_WORKER" }
      traits = { FIGHTER WORKER LEADER }
      frequency = 0.5
#      spawnLocation = FurnitureType "GRAVE"
      requirements = {
        { 0.0 SunlightState NIGHT }
        { 0.0 AttractionInfo 0 {FurnitureType "COFFIN1"}}
      }
      specialTraits = {
         { 0.03 { CompanionInfo { summonFreq = 0.1 creatures = { "FLY" }}}}
         { 0.2 { ExtraIntrinsicAttack
            HEAD
            { Intrinsic { "bite_attack" } FANGS_ATTACK 5 {
                attackType = BITE
                attackMsg = BITE
                victimEffect = {0.1 Lasting POISON} } } } }
         { 0.1 { ExtraBodyPart HEAD 1}}
         { 0.3 { Lasting { BLIND } }}
         { 1.0 { Lasting { SWARMER } }}
         { 0.3 { Lasting { COLLAPSED } }}
      }
    }

}
"goblins"
{
    {
      ids = { "GOBLIN_WORKER" }
      traits = { WORKER NO_AUTO_EQUIPMENT }
      initialRecruitment = 4
      invisible = true
      hiddenInHelp = true
    }
    {
      ids = { "GOBLIN_WORKER" }
      traits = { WORKER NO_AUTO_EQUIPMENT }
      frequency = 1
      specialTraits = {
         { 0.2 { AttrBonus DIGGING 15 }}
      }
    }
    {
      ids = { "GOBLIN_ARTIFICER" }
      traits = { FIGHTER NO_AUTO_EQUIPMENT }
      frequency = 0.7
      requirements = {
        { 0.1 AttractionInfo 1 {FurnitureType "FORGE" FurnitureType "WORKSHOP" FurnitureType "JEWELLER"}}
      }
      specialTraits = {
         { 0.05 { AttrBonus FORGE 20 Lasting { INSANITY } }}
         { 0.03 { Lasting { BAD_BREATH } }}
         { 0.01 { Lasting { ENTERTAINER } }}
      }
    }
    {
      ids = { "GOBLIN_WARRIOR" }
      traits = { FIGHTER }
      frequency = 1
      requirements = {
        { 0.1 AttractionInfo 1 {FurnitureType "TRAINING_WOOD"}}
      }
      specialTraits = {
         { 0.01 { ExtraIntrinsicAttack
            HEAD
            { Intrinsic { "bite_attack" } FANGS_ATTACK 5 {
                attackType = BITE
                attackMsg = BITE
                victimEffect = {0.1 Lasting POISON} } } } }
         { 0.01 { CompanionInfo { summonFreq = 0.1 creatures = { "WOLF" }}}}
         { 0.01 { SpecialAttr DAMAGE 10 CreatureStatus LEADER }}
         { 0.02 { SpecialAttr DEFENSE 8 HatedBy HATE_HUMANS }}
         { 0.15 { SpecialAttr DAMAGE 5 Name IMMIGRATION_TRAITS1 Attacker LastingEffect DRUNK }}
         { 0.02 { SpecialAttr DEFENSE 8 Not Humanoid }}
         { 0.05 { ExtraTraining RANGED_DAMAGE 2}}
         { 0.05 { ExtraTraining DAMAGE 2}}
         { 0.05 { Lasting { NIGHT_VISION } }}
         { 0.05 { Lasting { DISARM_TRAPS_SKILL } }}
         { 0.05 { Lasting { SWIMMING_SKILL } }}
         { 0.05 { Lasting { MAGIC_VULNERABILITY } }}
         { 0.02 { Lasting { HATE_ELVES } }}
         { 0.02 { Lasting { HATE_HUMANS } }}
         { 0.03 { Lasting { BAD_BREATH } }}
         { 0.03 { AttrBonus DAMAGE 10 AttrBonus DEFENSE 10 Lasting { AGGRAVATES }}}
      }
    }
    {
      ids = { "GOBLIN_GUARD" }
      traits = { FIGHTER }
      requirements = {
        { 0.1 AttractionInfo 1 {FurnitureType "TRAINING_IRON"}}
      }
      frequency = 0.2
      specialTraits = {
         { 0.01 { ExtraIntrinsicAttack
            HEAD
            { Intrinsic { "bite_attack" } FANGS_ATTACK 5 {
                attackType = BITE
                attackMsg = BITE
                victimEffect = {0.1 Lasting POISON} } } } }
         { 0.01 { SpecialAttr DEFENSE 10 CreatureStatus LEADER }}
         { 0.02 { SpecialAttr DEFENSE 8 HatedBy HATE_HUMANS }}
         { 0.05 { ExtraTraining RANGED_DAMAGE 2}}
         { 0.05 { ExtraTraining DAMAGE 2}}
         { 0.05 { Lasting { NIGHT_VISION } }}
         { 0.05 { Lasting { SWIMMING_SKILL } }}
         { 0.05 { Lasting { MAGIC_VULNERABILITY } }}
         { 0.02 { Lasting { HATE_ELVES } }}
         { 0.02 { Lasting { HATE_HUMANS } }}
         { 0.03 { Lasting { BAD_BREATH } }}
      }
    }
    {
      ids = { "GOBLIN_ARCHER" }
      traits = { FIGHTER }
      requirements = {
        { 0.1 AttractionInfo 1 {FurnitureType "ARCHERY_RANGE"}}
      }
      frequency = 0.4
      specialTraits = {
         { 0.02 { SpecialAttr RANGED_DAMAGE 20 CreatureStatus CIVILIAN }}
         { 0.03 { AttrBonus RANGED_DAMAGE 13 Lasting { INSANITY }}}
         { 0.03 { AttrBonus DEFENSE 5 Lasting { SLOWED }}}
         { 0.15 { SpecialAttr RANGED_DAMAGE 5 Name IMMIGRATION_TRAITS1 Attacker LastingEffect DRUNK }}
         { 0.05 { Lasting { RANGED_VULNERABILITY } }}
         { 0.05 { Lasting { DISARM_TRAPS_SKILL } }}
         { 0.05 { Lasting { SWIMMING_SKILL } }}
         { 0.02 { Lasting { HATE_ELVES } }}
         { 0.02 { Lasting { HATE_HUMANS } }}
         { 0.05 { ExtraTraining RANGED_DAMAGE 2}}
         { 0.05 { Lasting { BAD_BREATH } }}
         { 0.03 { AttrBonus RANGED_DAMAGE 10 AttrBonus DEFENSE 10 Lasting { AGGRAVATES }}}
      }
    }
    {
      ids = { "GOBLIN_PRIEST" }
      traits = { FIGHTER }
      requirements = {
        { 0.1 AttractionInfo 1 {FurnitureType "BOOKCASE_WOOD"}}
        { 0.0 MinTurnRequirement 500 }
      }
      frequency = 0.3
      specialTraits = {
         { 0.02 { Lasting { HATE_ELVES } }}
         { 0.02 { AttrBonus SPELL_SPEED 30 }}
         { 0.02 { Lasting { HATE_HUMANS } }}
         { 0.01 { Lasting { ENTERTAINER } }}
      }
    }
    {
      ids = { "GOBLIN_WIZARD" }
      traits = { FIGHTER }
      requirements = {
        { 0.1 AttractionInfo 1 {FurnitureType "BOOKCASE_WOOD" FurnitureType "LABORATORY"}}
        { 0.0 MinTurnRequirement 500 }
      }
      frequency = 0.3
      specialTraits = {
         { 0.01 { CompanionInfo { summonFreq = 0.1 creatures = { "WOLF" }}}}
         { 0.01 { SpecialAttr DEFENSE 10 HatedBy HATE_DRAGONS }}
         { 0.02 { SpecialAttr SPELL_DAMAGE 8 Not Humanoid }}
         { 0.10 { ExtraTraining SPELL_DAMAGE 4}}
         { 0.15 { SpecialAttr SPELL_DAMAGE 5 Name IMMIGRATION_TRAITS1 Attacker LastingEffect DRUNK }}
         { 0.05 { AttrBonus SPELL_SPEED 30 }}
         { 0.02 { Lasting { HATE_ELVES } }}
         { 0.02 { Lasting { HATE_HUMANS } }}
         { 0.01 { Lasting { ENTERTAINER } }}
         { 0.03 { AttrBonus SPELL_DAMAGE 10 AttrBonus DEFENSE 10 Lasting { AGGRAVATES }}}
      }
    }
    {
      ids = { "GOBLIN_KABOOMER" }
      traits = { FIGHTER }
      spawnLocation = Pregnancy
      requirements = {
        { 0.0 Pregnancy }
        { 1.0 TechId "alchemy" }
      }
      frequency = 0.5
    }
    {
      ids = { "GOBLIN_CHICKENMANCER" }
      traits = { FIGHTER }
      spawnLocation = Pregnancy
      requirements = {
        { 0.0 Pregnancy }
        { 1.0 AttractionInfo 1 {FurnitureType "BOOKCASE_IRON"}}
      }
      frequency = 0.5
    }
    {
      ids = { "TROLL" }
      traits = { FIGHTER }
      spawnLocation = Pregnancy
      requirements = {
        { 0.0 Pregnancy }
      }
      frequency = 0.5
    }
    {
      ids = { "GOBLIN_MATRON" }
      traits = { FIGHTER }
      requirements = {
        { 0.0 RecruitmentInfo { "Z_LEVEL_KRAKENS" } 0 GOBLIN_MATRONS_DISCOVERY_MESSAGE }
      }
    }

    DarkRecruits()
}
"tutorial"
{
    {
      ids = { "IMP" }
      traits = { WORKER NO_LIMIT NO_EQUIPMENT NO_LEISURE_ZONE }
      spawnLocation = NearLeader
      keybinding = CREATE_IMP
      sound = {"CREATE_IMP" 2}
      noAuto = true
      requirements = {
        { 1 ExponentialCost "GOLD" 30 5 4 }
      }
    }
    {
      ids = { "GOBLIN_WARRIOR" }
      traits = { FIGHTER NO_AUTO_EQUIPMENT }
      tutorialHighlight = ACCEPT_IMMIGRANT
      hiddenInHelp = true
      consumeIds = true
      requirements = {
        { 0.0 TutorialRequirement ACCEPT_IMMIGRANT }
        { 1.0 AttractionInfo 1 { FurnitureType "TRAINING_WOOD" } } 
      }
    }
    {
      ids = { "GOBLIN_WARRIOR" "GOBLIN_WARRIOR" "GOBLIN_WARRIOR" }
      frequency = 0.5
      traits = { FIGHTER NO_AUTO_EQUIPMENT }
      consumeIds = true
#          hiddenInHelp = true
      requirements = {
        { 0.0 TutorialRequirement ACCEPT_MORE_IMMIGRANTS }
        { 1.0 AttractionInfo 1 { FurnitureType "TRAINING_WOOD" } } 
      }
    }
    {
      ids = { "GOBLIN_ARTIFICER" }
      frequency = 0.1
      traits = { FIGHTER NO_AUTO_EQUIPMENT }
      consumeIds = true
#          hiddenInHelp = true
      requirements = {
        { 0.0 TutorialRequirement ACCEPT_MORE_IMMIGRANTS}
        { 1.0 AttractionInfo 1 { FurnitureType "WORKSHOP" } } 
      }
    }
}
