Kobold King class 27

The complete definition of this class in the game's own mod format. Command names link to the reference.

newclass
setclassname      "Kobold King"
classdescr        "Kobolds are small humanoid reptilians that claim draconic ancestry. They thrive in mines and caverns where they build hatcheries and reproduce at a prodigious rate. A Kobold Hatchery will soon flood the countryside with swarming kobolds. Sometimes a Kobold Shaman will establish a stronghold in a hatchery, improving both the defenses and the rate at which eggs are hatched. If a Kobold Prophet or Kobold King would emerge, the power to harness the magic of gems in incubating eggs is further increased and winged elite kobolds known as Dragon Spawn will be available.^^Kobolds come in five colors, four of which are affiliated with the powers of a specific gemstone. Red Kobolds are affiliated with the magic of rubies and will create their hatcheries where the fiery power of rubies will enhance and incubate their eggs. All red kobolds are resistant to fire and flames and their shamans bring fiery magic to the battlefield. Green Kobolds gain their powers from emeralds, are resistant to poison, and use poison in combat. Blue Kobolds are affiliated with the icy magic of sapphires. They are resistant to cold and can hide and move unhindered in cold climates. Their shamans use frost magic. White Kobolds are affiliated with the thunderous powers of diamonds. Many white kobolds are gifted with wings and are able to fly. Finally there are the Black Kobolds. Rare and enigmatic they do not found hatcheries as do the other kobolds. They can draw power from all kinds of gems, but at a higher cost. Black Kobolds are masters at stealth and they serve as scouts, murderers and dark mages."
classabdescr      "Kobolds come in several colors, each with their own strengths, but all are weak.^Kings and Prophets enable the recruitment of Dragon Spawn.^Great Mines and Kobold Strongholds produce free kobolds corresponding to the gems produced in the mine.^The Kobold King, shamans and sorcerers collect gems.^Gems can be used for magic rituals to create strongholds, traps, or summon guardian dragons.^Cannot recruit humans in castles or other special locations."
hometerr          282
setmaincom        "Red Kobold Shaman"
addstartunits     "Red Kobold" 20
addstartunits     "Red Kobold Slinger" 10
addstartunits     "Fire Drake" 1
addstartcom       "Red Kobold Chief"
recherochance     1
reqterr           -2
humancost         999
recasschance      0
townbonusdescr    "human mercenaries and magic items"
libbonusdescr     "wizards and apprentices"
templebonusdescr  ""

Record definition from the base game data (v5.33 extraction), shown with Illwinter's permission. Unaffiliated with Illwinter Game Design.