#textdomain wesnoth
# a special macro to define slightly less nimble elves such
# as fighters, who don't do quite so well in forest
#define LESS_NIMBLE_ELF
    [defense]
        forest=40
    [/defense]
#enddef

[+units]
    {core/units}
    # subfolders for units
    {core/units/bats/}
    {core/units/boats/}
    {core/units/drakes/}
    {core/units/dwarves/}
    {core/units/elves/}
    {core/units/goblins/}
    {core/units/gryphons/}
    {core/units/humans/}
    {core/units/merfolk/}
    {core/units/monsters/}
    {core/units/nagas/}
    {core/units/ogres/}
    {core/units/orcs/}
    {core/units/saurians/}
    {core/units/trolls/}
    {core/units/undead/}
    {core/units/wose/}
    {core/units/fake/}

    #traits that are common to all races and units
    {TRAIT_STRONG}
    {TRAIT_QUICK}
    {TRAIT_INTELLIGENT}
    {TRAIT_RESILIENT}

    #       *   R A C I A L   T R A I T S   A N D   N A M E S   *

    [race]
        id=bats
        male_name= _ "race^Bat"
        female_name= _ "race+female^Bat"
        plural_name= _ "race^Bats"
        description= ""	# wmllint: ignore
        num_traits=2
    [/race]

    # wmllint: general spellings drake drakes hatchling hatchlings nestlings
    [race]
        id=drake
        male_name= _ "race^Drake"
        female_name= _ "race+female^Drake"
        plural_name= _ "race^Drakes"
        description= _"Drakes are large, winged and fire-breathing creatures, reminiscent of true dragons. On average, an adult drake stands around three meters tall and easily weighs more than a man and a horse combined. Their skin is made up of hard scales, resistant to most physical strikes except piercing and cold damage. Most drakes are capable of true flight and can travel long distances quickly. However, their sheer weight and bulk limits their flight ability somewhat, making them ungainly in the air. Where possible, they make use of terrain features such as hills, mountains and trees as launch points in order to gain greater height and speed. Fortunately for their enemies, they are still quite clumsy creatures and surprisingly slow in combat. This, combined with their large size, renders them easy targets for those who dare attack them.

Drakes are inherently magical creatures, with a mysterious internal fire fueling their very lives. This can easily be witnessed when one of their kind perishes in combat; its internal fire is released, burning their remains in to ashes. Their internal fire is also their greatest weakness; it makes them extremely vulnerable to cold attacks. Despite their magical nature, drakes are incapable of channeling magic in a controlled manner. While the magic imbued within a drake's body enables it to spit fire and gives it life, they have no willful control over its functions of this magic.

<header>text='Society'</header>
Drakes are a relatively warlike race and their societies can be best described as cultured martial societies. The core of a drake tribe is a small group of veteran warriors headed by a mutually respected - or simply feared - leader who rules the society with an iron fist. Every drake is expected to earn their place in the strict hierarchy, to obey their superiors and command their inferiors. Entry to the ruling elite is only possible through challenging and defeating a superior in single combat, which is the way the hierarchy within the elite itself is established. The use of deception of any kind towards any fellow drake is, without exception, seen as cowardly and unacceptable.

While their warlike nature and sense of territory drives them to defend their territories savagely, drakes rarely invade or trespass on areas already occupied by the other major races. Instead, they settle in unpopulated areas to establish their own territory there. They primarily feed on large game they hunt in the lowlands around their homes, but hatchlings and lower caste drakes are known to feed also on certain of moss and fungi they cultivate deep in their caverns. The only technology drakes value is armor- and weapon-smithing, and neither know or need other science and culture besides this. However the few implements they do fashion are almost unrivaled in quality, only matched by those produced in the finest Dwarvish foundries.

Drakes are hatched from eggs and usually live naturally between 20 to 30 years. Death in battle is the most preferred way for a drake to leave this world. Unlike the elder members of other races, drakes naturally grow more aggressive and reckless towards the ends of their natural lives, perhaps to help ensure their place in the heroic legends of their kind.

<header>text='Geography'</header>
Drakes originated from a chain of volcanic islands in the Great Ocean. A combination of population pressure and the subsidence of many of their home islands has caused colonies of drakes to spread to the Great Continent. Drakes tend to make their homes in mountain caverns near volcanoes to protect their eggs, hatchings and forges. While drakes naturally prefer warmth, their internal fire is more than capable of sustaining them even in a relatively cold climate, a feature which has allowed them to populate even some of the mountains of the far north of the Great Continent."
        num_traits=2
        {DRAKE_NAMES}
    [/race]

    # wmllint: general spellings dwarf dwarves dwarvish dwarven
    # wmllint: general spellings Knalga Knalgan Knalgans Vrug
    # wmllint: general spellings muckle och busked intae belike
    # wmllint: general spellings runesmith runesmiths runelore
    # wmllint: general spellings runecraft runecrafter runecrafters
    # wmllint: general spellings dirtgrubber dirtgrubbers dirtgrubbing
    # wmllint: general spellings nae tae yer yerselves ye'll ye're ye'd ye've
    # wmllint: general spellings ha' isna' havena' awa' canna' couldna' hasna'
    # wmllint: general spellings oursel' o' dinna' unco' wi' brawlin' inta'
    # wmllint: general spellings wouldna' willna' didna' dinna'
    # wmllint: general spellings tryin' wi'out ta'en d'ye
    # wmllint: general spellings bonebag
    # wmllint: general spellings Moradin Thursagan
    [race]
        id=dwarf
        male_name= _ "race^Dwarf"
        female_name= _ "race+female^Dwarf"
        plural_name= _ "race^Dwarves"
        description= _"The dwarves are a race famed for their miners, blacksmiths, merchants and warriors. Considered as the third oldest race on the great continent after the elves and trolls, their early history is shrouded in mystery. Legends tell of a time long forgotten when their people began emerging from their underground world through caves. Nothing is known about their life prior to their arrival, or their reasons for entering the surface world, but they have been an integral part of the history of the continent since. Soon after their emergence from the underground, the dwarves entered into conflict with the original inhabitants of the land, the elves. The original reason for their dispute has been lost to history, but the two races have since fought three long wars, interrupted by a few decades of peace. During these wars the dwarves could not dislodge the elves from the deep forests in the south, but managed to consolidate their position in hills and the mountains in the north of the continent, known now as the Northlands. Since then they have constructed fantastic fortifications and settlements deep within the mountains and crags of their territory.

Possibly due to their isolation, the dwarves are generally distrustful or hostile towards most other races, particularly the elves. The single exception to this temperament is towards humans. This could be traced back to the era of Haldric I and the arrival of humans and orcs to the continent. At this point the dwarves began allowing some humans, mostly dissidents and outlaws from the Kingdom of Wesnoth, to settle in certain areas of the Northlands. Their motivation was unsurprising. The plight of these individuals reminded the dwarves of their early history of persecution, eliciting a sense of solidarity. The dwarves also had much to gain in forming a bond with these outcasts. They would settle in areas where dwarves disliked living themselves; plains, forests, and swamps, freeing them from defending these areas.

Dwarves are of small stature by human measure, but they are by no means fragile. Their warriors, tough and powerful are both feared and respected throughout the continent for their prowess in battle. In addition, dwarves are known for their calculating intellects and superb craftsmanship. Dwarven smiths are renowned for their deadly weapons and heavy armor. These accouterments are unrivaled in quality, possibly only matched by those produced by drake armorers. Their intelligence and natural inquisitiveness has also made them the most technically advanced race on the continent. One of their most famous, and feared, discoveries was a mysterious powder that produces an immense explosion when exposed to fire or sparks. Certain dwarf warriors use this powder to hurl small objects at tremendous speeds. Given their technological inclinations, many dwarves tend to distrust magic users. However some practice a form of magic based on the engraving of runes. Called runesmiths, they use these carvings to enchant items in order to augment certain aspects of their natures."
        num_traits=2
        {DWARVISH_NAMES}
        {TRAIT_HEALTHY}
    [/race]

    # wmllint: general spellings elf elves elvish
    # wmllint: general spellings Irdya Wesmere Lintanir Aethenwood
    # wmllint: general spellings Ka'lian Arkan Thoria Listra Elensiria
    # wmllint: general spellings Kalenz Cleodil Erlornas
    [race]
        id=elf
        male_name= _ "race^Elf"
        female_name= _ "race+female^Elf"
        plural_name= _ "race^Elves"
        # wmllint: local spelling unvegetated
        description= _"Compared to humans, elves are somewhat taller, more agile but less sturdy. They have slightly pointy ears, pale skin and usually blond hair. Few differences between humans and elves are more pronounced than the Elves' unusually long life - most, unless claimed by illness, accident or war, live a full two and a half centuries. While some elves possessing a high magical aptitude have been known to live an additional full century, most elves begin to grow physically frail at some point between 250 and 300 years of age and pass away rapidly (generally within a year or two) thereafter.

Elves are naturally imbued with magic to a small degree. Though most are unable to channel it directly, its latent presence gives them their keen senses and long life. Many elves have magic-driven talents such as marksmanship or stealth, allowing them to achieve tasks that most normal beings would find astonishing. Those elves that learn to wield this power in more general ways can become truly formidable in its use. Many choose to use their gift to heal others.

A few elves, venturing far down the paths of magic and mysticism, become sensitive to the presence of cold iron and can even be burned by it. Elvish legend hints that this was more common in the far past.

Elves spend much of their time honing their talents and skills. Those not adept at the magical arts typically devote their time honing their physical skills. As a result, elves excel at archery, which is perhaps their most important method of warfare. Most elvish troops carry a bow and no other race can rival their archers in speed and accuracy. All elves also share an intense affection for unspoiled nature. They often feel uncomfortable in open unvegetated spaces. They live primarily in the forests of the Great Continent; the Aethenwood in the southwest, Wesmere in the northwest, and the great northern woods of which the Lintanir Forest is the southernmost edge. 

Elves are the eldest race of the continent, with the possible exception of trolls. Many of their settlements cannot be reliably dated, undoubtedly having existed for over a millennium."
        num_traits=2
        markov_chain_size=2
        {ELVISH_NAMES}
        {TRAIT_DEXTROUS}
    [/race]

    # wmllint: general spelling goblin goblins
    [race]
        id=goblin
        male_name= _ "race^Goblin"
        female_name= _ "race+female^Goblin"
        plural_name= _ "race^Goblins"
        description= ""	# wmllint: ignore
        num_traits=1
        ignore_global_traits=yes
        {TRAIT_WEAK}
        {TRAIT_SLOW}
        {TRAIT_DIM}
        {ORCISH_NAMES}
    [/race]

    # wmllint: general spelling gryphon gryphons gryphlet gryphlets
    [race]
        id=gryphon
        male_name= _ "race^Gryphon"
        female_name= _ "race+female^Gryphon"
        plural_name= _ "race^Gryphons"
        description= ""	# wmllint: ignore
        num_traits=2
        {GRYPHON_NAMES}
    [/race]

    # wmllint: general spellings Wesnoth Wesnothian Wesnothians Elensefar Elense
    # wmllint: general spellings Soradoc Tath Dulatus Estmark Estmarks Dan'Tonk
    # wmllint: general spellings Abez Alduin Tahn Parthyn Halstead Weldyn Carcyn
    # wmllint: general spellings Annuvin Delwyn Dallben Westin Blackwater Aldril
    # wmllint: general spellings Illuven Longlier Northlands Southlands
    # wmllint: general spellings Haldric Garard Glyn Konrad Li'sar Delfador
    # wmllint: general spellings Chantal Eldred Asheviere Crelanu Tallin
    [race]
        id=human
        male_name= _ "race^Human"
        female_name= _ "race+female^Human"
        plural_name= _ "race^Humans"
        description= _"The race of men is an extremely diverse one. Although they originally came from the Old Continent, men have spread all over the world and split into many different cultures and races. Although they are not imbued with magic like other creatures, humans can learn to wield it and able to learn more types than most others. They have no extra special abilities or aptitudes except their versatility and drive. While often at odds with other races, they can occasionally form alliances with the less aggressive races such as elves and dwarves. The less scrupulous among them do not shrink back from hiring orcish mercenaries, either. They have no natural enemies, although the majority of men, like most people of all races, have an instinctive dislike of the undead. Men are shorter than the elves, but taller still than dwarves. Their skin color can vary, from almost white to dark brown.

<header>text='Subjects of the Crown'</header>
Many different groups of men exist, but the majority of them on the Great Continent live under the rule of the Crown of Wesnoth. The humans first appeared on the Great Continent from a land far across the ocean to the West, the Green Isle, and soon established their capital at the inland city of Weldyn. Over the following centuries they have built up a number cities across the continent. The soldiers from the Crown of Wesnoth protect the country, forming the most organized military force in the known world. Its warriors come from the main provinces, where all men are conscripted at an early age.

<header>text='The Clansmen'</header>
The eastern provinces of Wesnoth, known as the Clan Homelands, have a geography consisting of more open plains and rolling hills than the western, more civilized provinces. They are home to the Horse Clans, who are allied with the Crown of Wesnoth but operate independently and maintain their own identity. Some consider them to be a tributary state, which sends food and soldiers to Crown in exchange for protection. Others say they are on equal footing with the western half of Wesnoth. In any case, the eastern provinces do not have a conscript army the way Western Wesnoth does. Training for fighting is part of the way of life of the Clans; the parents teach the children to ride horses, fight and shoot a bow from an early age. In general, the Clan warriors are less organized than the civilized fighters, and the strengths and weaknesses of these groups complement each other."
        num_traits=2
        {HUMAN_NAMES}
    [/race]

    # wmllint: general spelling Saurgrath lizardman lizardmen
    [race]
        id=lizard
        male_name= _ "race^Saurian"
        female_name= _ "race+female^Saurian"
        plural_name= _ "race^Saurians"
        description= ""	# wmllint: ignore
        num_traits=2
        #Tentative list of fricative heavy lizard names
        {LIZARD_NAMES}
    [/race]

    [race]
        id=mechanical
        name= _ "race^Mechanical"
        plural_name= _ "race+plural^Mechanical"
        description= ""	# wmllint: ignore
        num_traits=1
        ignore_global_traits=yes
        {TRAIT_MECHANICAL}
    [/race]

    # wmllint: general spelling Merfolk landwalker
    [race]
        id=merman
        male_name= _ "race^Merman"
        female_name= _ "race^Mermaid"
        plural_name= _ "race^Mermen"
        description= ""	# wmllint: ignore
        num_traits=2
        {MERMAN_NAMES}
    [/race]

    [race]
        id=monster
        name= _ "race^Monster"
        plural_name= _ "race^Monsters"
        description= ""	# wmllint: ignore
        num_traits=0
    [/race]

    # wmllint: general spelling naga nagas nagani
    [race]
        id=naga
        male_name= _ "race^Naga"
        female_name= _ "race^Nagani"
        plural_name= _ "race^Nagas"
        description= ""	# wmllint: ignore
        num_traits=2
        {NAGA_NAMES}
    [/race]

    [race]
        id=ogre
        male_name= _ "race^Ogre"
        female_name= _ "race+female^Ogre"
        plural_name= _ "race^Ogres"
        description= ""	# wmllint: ignore
        num_traits=2
        {OGRE_NAMES}
    [/race]

    # wmllint: general spellings orc orcs orcish warband shagger shaggers
    [race]
        id=orc
        male_name= _ "race^Orc"
        female_name= _ "race+female^Orc"
        plural_name= _ "race^Orcs"
        description= _"In appearance, orcs are half men and half beasts. They are taller, sturdier and stronger than humans. They are warlike, savage, and cruel by nature. Their blood is darker and thicker than that of normal humans and they have little care for personal hygiene or their personal appearance. Although Orcs are violent even among themselves creatures, they are pack-oriented; an orc never travels long or lives alone in groups smaller than half a dozen.

<header>text='Society'</header>
Almost every orc are a member of a tribe or a clan. Relations between neighboring tribes are usually violent, except in cases of a mutual enemy threatens their existence or prospects of great plunder override mutual animosity. Occasionally, a single strong chieftain may emerge to lead multiple tribes from time to time, usually through intimidation of followers. An orc tribe in times of peace tends to focus almost solely on strengthening itself in preparation for the next armed conflict. Orcs are known to possess a crude system of writing - usually in blood - although it's most commonly used to trade insults or threats among tribal leaders.

Orc societies are based on little else but strength; might makes right, and a leader leads and survives only as long as no one manages to wrest the title from him. A constant struggle for power simmers among potential tribal chiefs. An orcish leader rarely lives more than a handful of years to enjoy his absolute authority before being killed for his position - although history knows some notable exceptions. Orcs hold no particular honor code and while indisputable raw strength is usually the preferred method of displaying power, assassination, poisoning and backstabbing are completely viable means to further one's own goals.

Orcs mostly live in rural areas, often in foothills or mountainous regions, sometimes in caves. They grow no crops nor keep livestock, but are competent hunters as a result of their physical stature and brutality. Due to their large numbers they are capable of hunting an area virtually clean of anything larger than rodents in relatively short period of time. Due to this and their unstable leadership, orcish tribes tend to lead a semi-nomadic lifestyle, never settling in one region for too long. The larger tribes may establish themselves firmly in an area for years or even decades and build large encampments almost resembling cities, but even these are easily dismantled and abandoned if there is a need to relocate the horde.

The oldest known orcs have been around 50 to 60 years of age, but very few individuals ever live to see over two or three decades before meeting their end either in war or by the hand of one of their kin. The oldest orcs are often shamans, which are perhaps the only ones most of their kind sees as being trustworthy and neutral. The origins of this custom are unknown, as the shamans do not directly contribute much to orcish societies but only act as advisors - not something orcs tend to otherwise tolerate. Shamans are in many ways the opposite of most other orcs: they are often physically withered and frail in comparison and lack skill in battle. Despite their reliance on raw strength, not nearly all orcs are destined to grow to possess any. Many orcs are born smaller and weaker than the rest, and already almost as newborns are put in their place by their stronger siblings. The stronger ones will routinely grab most of the food and thus grow stronger still, while their weaker siblings do not. Many of these individuals tend to specialize in other skills, like archery or assassination."
        num_traits=2
        {ORCISH_NAMES}
    [/race]

    [race]
        id=troll
        male_name= _ "race^Troll"
        female_name= _ "race+female^Troll"
        plural_name= _ "race^Trolls"
        description= _"Trolls are ancient creatures, one of the oldest known races known to inhabit the Great Continent. They are large, slow, simple-minded, and live extremely long lives inside deep caves or atop high mountains. The most unique characteristic of trolls is an internal vitality that sustains and heals them from within. As a result they live very different lives from almost any known creature. Trolls have few real needs: they require little food or water, and thus they have little incentive to pursue much besides protection from those who are hostile towards them. This in turn means they rarely have to worry about anything and can spend much of their time sleeping or in contemplation. Trolls have a curious affinity with nature. They do not relate with living things like elves do, but instead with earth and stone. They are also somewhat curious of their surroundings and many younger whelps even enjoy traveling and seeing the world. As trolls grow older they tend to become increasingly passive, gradually losing interest in their environment and spending more of their time sleeping in a quiet, familiar corner of their home cave. This is until they finally pass away as their bodies themselves slowly turn into lifeless statues of stone.

Trolls are seen by many as being little more than yet another race of savage monsters. This common misconception is in part perpetuated by orcs to persuade trolls to join their armies. Because they are rather simple and do not understand the ways of other races or sometimes can even tell them apart, it is usually easy for an orcish band to convince a group of trolls that by joining them they get to exact revenge on those that have before hunted them. These new recruits are then directed to attack whoever the orcs themselves are currently in conflict with, whether previously a foe of the trolls or not, accumulating even more enemies for the misled trolls. The most common enemy of trolls are dwarves, and the animosity between these two races is ancient.

<header>text='Geography'</header>
Trolls have inhabited the mountains of the Great Continent longer than the dwarves who migrated there. Trolls are a common sight on the mountain ranges north and east of Wesnoth, and wherever Orcish hordes travel."
        num_traits=2
        ignore_global_traits=yes
        {TRAIT_STRONG}
        {TRAIT_QUICK}
        {TRAIT_RESILIENT}
        {TRAIT_FEARLESS}
        {TROLL_NAMES}
    [/race]

    # wmllint: general spellings undead undeath unlife demilich
    # wmllint: general spellings Mal fleshbag fleshbags
    [race]
        id=undead
        male_name= _ "race^Undead"
        female_name= _ "race+female^Undead"
        plural_name= _ "race+plural^Undead"
        description= _"Undead are not really a single race of creatures, although often treated as such. Almost any dead creature can, by a sufficiently skilled necromancer, be reanimated and rise again in undeath. Undead are for the most part unnatural but mindless constructs, obeying whoever created them without question nor thought. A greater mystery of necromancy is in how constructs are sustained without continuous effort from the necromancer. An undead creature does not require the constant attention of the necromancer to command and sustain, but can work autonomously according to the commands of it's master. Only rarely, perhaps once every few months, does the necromancer need to maintain his creation.

Necromancy is almost solely limited to humans. Even the legends of magically apt races like elves and mermen tell of very few of their kind who have ever delved in the dark arts. It is surmised that necromantic magic requires great adaptability and a flexible mind, extremes of which are most commonly found in humans. The ultimate goal of most necromancers is to turn the same art of preserving and imbuing life upon themselves, to alter themselves at whatever cost, to ultimately escape death by preserving their own mind and spirit.

<header>text='Geography'</header>
While undead lords arrived on the Great Continent in considerable numbers only in the wake of Haldric I, they were not completely unheard of by elves and dwarves before that."
        num_traits=1
        ignore_global_traits=yes
        {TRAIT_UNDEAD}
    [/race]

    [race]
        id=wolf
        name= _ "race^Wolf"
        plural_name= _ "race^Wolves"
        description= ""	# wmllint: ignore
        num_traits=2
        {ORCISH_NAMES}
    [/race]

    # wmllint: general spelling wose woses treefolk
    [race]
        id=wose
        name= _ "race^Wose"
        plural_name= _ "race^Woses"
        description= ""	# wmllint: ignore
        num_traits=0
        markov_chain_size=3
        {WOSE_NAMES}
    [/race]

    #       *   M O V E   T Y P E S   *

    [movetype]
        name=smallfoot
        [movement_costs]
            shallow_water=3
            reef=2
            swamp_water=3
            flat=1
            sand=2
            forest=2
            hills=2
            mountains=3
            village=1
            castle=1
            cave=2
            frozen=3
            fungus=2
        [/movement_costs]

        [defense]
            shallow_water=80
            reef=70
            swamp_water=80
            flat=60
            sand=70
            forest=50
            hills=50
            mountains=40
            village=40
            castle=40
            cave=60
            frozen=80
            fungus=50
        [/defense]

        [resistance]
            blade=100
            pierce=100
            impact=100
            fire=100
            cold=100
            arcane=80
        [/resistance]
    [/movetype]

    [movetype]
        name=orcishfoot
        [movement_costs]
            shallow_water=3
            reef=2
            swamp_water=3
            flat=1
            sand=2
            forest=2
            hills=1
            mountains=2
            village=1
            castle=1
            cave=2
            frozen=2
            fungus=3
        [/movement_costs]

        [defense]
            shallow_water=80
            reef=70
            swamp_water=70
            flat=60
            sand=70
            forest=50
            hills=50
            mountains=40
            village=40
            castle=40
            cave=60
            frozen=80
            fungus=60
        [/defense]

        [resistance]
            blade=100
            pierce=100
            impact=100
            fire=100
            cold=100
            arcane=100
        [/resistance]
    [/movetype]

    [movetype]
        name=largefoot
        [movement_costs]
            shallow_water=2
            reef=2
            swamp_water=2
            flat=1
            sand=2
            forest=2
            hills=1
            mountains=2
            village=1
            castle=1
            cave=1
            frozen=2
            fungus=2
        [/movement_costs]

        [defense]
            shallow_water=80
            reef=70
            swamp_water=80
            flat=70
            sand=70
            forest=60
            hills=50
            mountains=40
            village=60
            castle=60
            cave=60
            frozen=80
            fungus=50
        [/defense]

        [resistance]
            blade=80
            pierce=80
            impact=100
            fire=100
            cold=100
            arcane=110
        [/resistance]
    [/movetype]

    [movetype]
        name=armoredfoot
        [movement_costs]
            shallow_water=4
            reef=3
            swamp_water=4
            flat=1
            sand=2
            forest=2
            hills=3
            village=1
            castle=1
            cave=2
            frozen=4
            fungus=2
        [/movement_costs]

        [defense]
            shallow_water=90
            reef=80
            swamp_water=90
            flat=70
            sand=80
            forest=60
            hills=60
            village=60
            castle=50
            cave=60
            frozen=80
            fungus=60
        [/defense]

        [resistance]
            blade=50
            pierce=60
            impact=90
            fire=110
            cold=110
            arcane=80
        [/resistance]
    [/movetype]

    [movetype]
        name=elusivefoot
        [movement_costs]
            shallow_water=2
            reef=2
            swamp_water=2
            flat=1
            sand=2
            forest=2
            hills=2
            mountains=3
            village=1
            castle=1
            cave=2
            frozen=2
            fungus=2
        [/movement_costs]

        [defense]
            shallow_water=60
            reef=50
            swamp_water=60
            flat=40
            sand=60
            forest=30
            hills=30
            mountains=30
            village=30
            castle=30
            cave=50
            frozen=60
            fungus=30
        [/defense]

        [resistance]
            blade=130
            pierce=120
            impact=120
            fire=100
            cold=100
            arcane=80
        [/resistance]
    [/movetype]

    [movetype]
        name=mounted
        [movement_costs]
            shallow_water=4
            reef=3
            swamp_water=4
            flat=1
            sand=2
            forest=3
            hills=2
            village=1
            castle=1
            cave=4
            frozen=2
            fungus=4
        [/movement_costs]

        [defense]
            shallow_water=80
            reef=70
            swamp_water=80
            flat=60
            sand=70
            forest=70
            hills=60
            village=60
            castle=60
            cave=80
            frozen=70
            fungus=80
        [/defense]

        [resistance]
            blade=80
            pierce=120
            impact=70
            fire=100
            cold=100
            arcane=80
        [/resistance]
    [/movetype]

#define WOODLAND_RESISTANCE
    [resistance]
        blade=100
        pierce=100
        impact=100
        fire=100
        cold=100
        arcane=110
    [/resistance]
#enddef
    [movetype]
        name=woodland
        [movement_costs]
            shallow_water=3
            reef=2
            swamp_water=2
            flat=1
            sand=2
            forest=1
            hills=2
            mountains=3
            village=1
            castle=1
            cave=3
            frozen=2
            fungus=2
        [/movement_costs]
        [defense]
            shallow_water=80
            reef=70
            swamp_water=70
            flat=60
            sand=70
            forest=30
            hills=50
            mountains=40
            village=40
            castle=40
            cave=70
            frozen=70
            fungus=50
        [/defense]
        {WOODLAND_RESISTANCE}
    [/movetype]

    [movetype]
        name=woodlandfloat
        flies=true
        [movement_costs]
            deep_water=2
            shallow_water=1
            reef=1
            swamp_water=1
            flat=1
            sand=1
            forest=1
            hills=1
            mountains=2
            village=1
            castle=1
            cave=2
            frozen=1
            fungus=2
        [/movement_costs]
        [defense]
            deep_water=70
            shallow_water=60
            reef=50
            swamp_water=60
            flat=50
            sand=60
            forest=30
            hills=50
            mountains=40
            village=40
            castle=40
            cave=70
            frozen=60
            fungus=50
        [/defense]
        {WOODLAND_RESISTANCE}
    [/movetype]

    [movetype]
        name=treefolk
        [movement_costs]
            shallow_water=2
            reef=2
            swamp_water=2
            flat=1
            sand=2
            forest=1
            hills=2
            mountains=3
            village=1
            castle=1
            cave=3
            frozen=2
            fungus=2
        [/movement_costs]

        [defense]
            shallow_water=80
            reef=80
            swamp_water=70
            flat=80
            sand=80
            forest=60
            hills=70
            mountains=70
            village=80
            castle=80
            cave=80
            frozen=80
            fungus=70
        [/defense]

        [resistance]
            blade=100
            pierce=40
            impact=60
            fire=150
            cold=90
            arcane=130
        [/resistance]
    [/movetype]

#define FLY_MOVE
    deep_water=1
    shallow_water=1
    reef=1
    swamp_water=1
    flat=1
    sand=1
    forest=1
    hills=1
    mountains=1
    village=1
    castle=1
    frozen=1
    unwalkable=1
#enddef
#define FLY_DEFENSE DEFENSE_NUMBER
    deep_water={DEFENSE_NUMBER}
    shallow_water={DEFENSE_NUMBER}
    reef={DEFENSE_NUMBER}
    swamp_water={DEFENSE_NUMBER}
    flat={DEFENSE_NUMBER}
    sand={DEFENSE_NUMBER}
    forest={DEFENSE_NUMBER}
    hills={DEFENSE_NUMBER}
    mountains={DEFENSE_NUMBER}
    village={DEFENSE_NUMBER}
    castle={DEFENSE_NUMBER}
    frozen={DEFENSE_NUMBER}
    unwalkable={DEFENSE_NUMBER}
#enddef
#define FLY_RESISTANCE
    [resistance]
        blade=100
        pierce=100
        impact=120
        fire=100
        cold=100
        arcane=80
    [/resistance]
#enddef
    [movetype]
        name=fly
        flies=true
        [movement_costs]
            {FLY_MOVE}
            cave=3
            fungus=3
        [/movement_costs]
        [defense]
            {FLY_DEFENSE 50}
            cave=80
            fungus=70
        [/defense]
        {FLY_RESISTANCE}
    [/movetype]

    [movetype]
        name=smallfly
        flies=true
        [movement_costs]
            {FLY_MOVE}
            cave=1
            fungus=2
        [/movement_costs]
        [defense]
            {FLY_DEFENSE 40}
            cave=40
            fungus=40
        [/defense]
        {FLY_RESISTANCE}
    [/movetype]

    [movetype]
        name=deepsea
        [movement_costs]
            deep_water=1
            shallow_water=2
            reef=2
            swamp_water=2
            flat=4
            sand=4
            forest=5
            hills=5
            village=2
            castle=1
            cave=3
            frozen=2
            fungus=3
        [/movement_costs]

        [defense]
            deep_water=40
            shallow_water=50
            reef=50
            swamp_water=40
            flat=70
            sand=70
            forest=70
            hills=70
            village=70
            castle=70
            cave=80
            frozen=70
            fungus=80
        [/defense]

        [resistance]
            blade=80
            pierce=100
            impact=70
            fire=100
            cold=40
            arcane=80
        [/resistance]
    [/movetype]

    [movetype]
        name=swimmer
        [movement_costs]
            deep_water=1
            shallow_water=1
            reef=2
            swamp_water=1
            flat=2
            sand=2
            forest=5
            hills=5
            village=1
            castle=1
            cave=3
            frozen=2
            fungus=3
        [/movement_costs]

        [defense]
            deep_water=50
            shallow_water=40
            reef=30
            swamp_water=40
            flat=70
            sand=70
            forest=70
            hills=70
            village=60
            castle=60
            cave=80
            frozen=70
            fungus=80
        [/defense]

        [resistance]
            blade=100
            pierce=100
            impact=100
            fire=100
            cold=80
            arcane=100
        [/resistance]
    [/movetype]

    [movetype]
        name=naga
        [movement_costs]
            deep_water=1
            shallow_water=1
            reef=2
            swamp_water=1
            flat=2
            sand=1
            forest=3
            hills=3
            mountains=5
            village=1
            castle=2
            cave=2
            frozen=2
            fungus=2
        [/movement_costs]

        [defense]
            deep_water=50
            shallow_water=40
            reef=30
            swamp_water=40
            flat=70
            sand=60
            forest=60
            hills=60
            mountains=60
            village=60
            castle=50
            cave=60
            frozen=80
            fungus=60
        [/defense]

        [resistance]
            blade=100
            pierce=100
            impact=100
            fire=100
            cold=100
            arcane=100
        [/resistance]
    [/movetype]

    [movetype]
        name=float
        flies=true
        [movement_costs]
            deep_water=1
            shallow_water=1
            reef=2
            swamp_water=2
        [/movement_costs]

        [defense]
            deep_water=50
            shallow_water=50
            reef=50
            swamp_water=60
        [/defense]

        [resistance]
            blade=100
            pierce=100
            impact=110
            fire=100
            cold=100
            arcane=40
        [/resistance]
    [/movetype]

#define MOUNTAIN_MOVE
    [movement_costs]
        shallow_water=3
        reef=2
        swamp_water=3
        flat=1
        sand=1
        forest=1
        hills=1
        mountains=1
        village=1
        castle=1
        cave=1
        frozen=2
        fungus=1
    [/movement_costs]
#enddef
#define MOUNTAIN_DEFENSE
    [defense]
        shallow_water=80
        reef=70
        swamp_water=80
        flat=70
        sand=70
        forest=70
        hills=40
        mountains=30
        village=50
        castle=40
        cave=50
        frozen=70
        fungus=60
    [/defense]
#enddef
    [movetype]
        name=mountainfoot
        {MOUNTAIN_MOVE}
        {MOUNTAIN_DEFENSE}
        [resistance]
            blade=100
            pierce=100
            impact=100
            fire=100
            cold=100
            arcane=80
        [/resistance]
    [/movetype]

    [movetype]
        name=dwarvishfoot
        {MOUNTAIN_MOVE}
        {MOUNTAIN_DEFENSE}
        [resistance]
            blade=80
            pierce=80
            impact=80
            fire=90
            cold=90
            arcane=90
        [/resistance]
    [/movetype]

    [movetype]
        name=gruefoot
        [movement_costs]
            shallow_water=3
            reef=2
            swamp_water=2
            flat=1
            sand=2
            forest=2
            hills=2
            mountains=3
            village=1
            castle=1
            cave=2
            frozen=2
            fungus=2
        [/movement_costs]

        [defense]
            shallow_water=80
            reef=70
            swamp_water=70
            flat=60
            sand=70
            forest=50
            hills=50
            mountains=40
            village=40
            castle=40
            cave=60
            frozen=70
            fungus=40
        [/defense]

        [resistance]
            blade=90
            pierce=70
            impact=100
            fire=90
            cold=60
            arcane=80
        [/resistance]
    [/movetype]

    [movetype]
        name=undeadfoot
        [movement_costs]
            deep_water=3
            shallow_water=2
            reef=2
            swamp_water=2
            flat=1
            sand=2
            forest=2
            hills=2
            mountains=3
            village=1
            castle=1
            cave=2
            frozen=2
            fungus=2
        [/movement_costs]

        [defense]
            deep_water=90
            shallow_water=80
            reef=70
            swamp_water=70
            flat=60
            sand=70
            forest=50
            hills=50
            mountains=40
            village=40
            castle=40
            cave=60
            frozen=70
            fungus=40
        [/defense]

        [resistance]
            blade=90
            pierce=70
            impact=110
            fire=120
            cold=40
            arcane=150
        [/resistance]
    [/movetype]

    [movetype]
        name=undeadfly
        flies=true
        [movement_costs]
            {FLY_MOVE}
            cave=1
            fungus=1
        [/movement_costs]
        [defense]
            {FLY_DEFENSE 50}
            cave=60
            fungus=50
        [/defense]
        [resistance]
            blade=100
            pierce=100
            impact=100
            fire=120
            cold=40
            arcane=140
        [/resistance]
    [/movetype]

    [movetype]
        name=undeadspirit
        flies=true
        [movement_costs]
            deep_water=2
            shallow_water=2
            reef=2
            swamp_water=1
            flat=1
            sand=1
            forest=1
            hills=1
            mountains=1
            village=1
            castle=1
            cave=1
            frozen=1
            unwalkable=1
            fungus=1
        [/movement_costs]

        [defense]
            {FLY_DEFENSE 50}
            cave=50
            fungus=50
        [/defense]

        [resistance]
            blade=50
            pierce=50
            impact=50
            fire=90
            cold=30
            arcane=110
        [/resistance]
    [/movetype]

    #only used in some UMC
    [movetype]
        name=spirit
        flies=true
        [movement_costs]
            deep_water=4
            shallow_water=3
            reef=3
            swamp_water=1
            flat=1
            sand=1
            forest=1
            hills=1
            mountains=1
            village=1
            castle=1
            cave=1
            frozen=1
            unwalkable=1
            fungus=1
        [/movement_costs]
        [defense]
            {FLY_DEFENSE 50}
            cave=60
            fungus=50
        [/defense]
        [resistance]
            blade=40
            pierce=40
            impact=40
            fire=100
            cold=30
            arcane=100
        [/resistance]
    [/movetype]

    [movetype]
        name=lizard
        flies=false
        [movement_costs]
            shallow_water=3
            reef=2
            swamp_water=1
            flat=1
            sand=1
            forest=2
            hills=1
            mountains=2
            village=1
            castle=1
            cave=1
            frozen=4
            fungus=1
        [/movement_costs]

        [defense]
            shallow_water=60
            reef=60
            swamp_water=40
            flat=60
            sand=40
            forest=40
            hills=40
            mountains=40
            village=50
            castle=40
            cave=40
            frozen=70
            fungus=40
        [/defense]

        [resistance]
            blade=110
            pierce=80
            impact=110
            fire=120
            cold=120
            arcane=80
        [/resistance]
    [/movetype]

    [movetype]
        name=none
        flies=false
        [movement_costs]
        [/movement_costs]
        [defense]
        [/defense]
        [resistance]
        [/resistance]
    [/movetype]

    [movetype]
        name=scuttlefoot
        [movement_costs]
            shallow_water=3
            reef=2
            swamp_water=2
            flat=1
            sand=2
            forest=2
            hills=3
            mountains=4
            village=1
            castle=1
            cave=2
            frozen=2
            fungus=2
        [/movement_costs]

        [defense]
            shallow_water=70
            reef=60
            swamp_water=60
            flat=60
            sand=60
            forest=50
            hills=50
            mountains=40
            village=40
            castle=40
            cave=60
            frozen=60
            fungus=50
        [/defense]

        [resistance]
            blade=90
            pierce=90
            impact=30
            fire=200
            cold=120
            arcane=150
        [/resistance]
    [/movetype]

#define DRAKEFLY_MOVE
    [movement_costs]
        deep_water=2
        shallow_water=1
        reef=1
        swamp_water=1
        flat=1
        sand=1
        forest=1
        hills=1
        mountains=1
        village=1
        castle=1
        cave=3
        fungus=2
        frozen=2
        unwalkable=1
    [/movement_costs]
#enddef
#define DRAKEFLY_RESISTANCE
    [resistance]
        blade=90
        pierce=110
        impact=80
        fire=50
        cold=150
        arcane=130
    [/resistance]
#enddef
    [movetype]
        name=drakefly
        # this has been commented out because it interferes with the standard
        # drake standing/flying animations
        # flies=true

        # Drakes are huge (easy targets) flying beasts, but are different
        # from the classical flying unit: to fight they have to land
        # They love caves and mountains, and above all: warmth
        # But because of big wings moving in caves is difficult for them
        {DRAKEFLY_MOVE}
        [defense]
            deep_water=80
            shallow_water=80
            reef=70
            swamp_water=70
            flat=70
            sand=60
            forest=60
            hills=60
            mountains=60
            village=60
            castle=60
            cave=70
            fungus=60
            frozen=80
            unwalkable=60
        [/defense]
        {DRAKEFLY_RESISTANCE}
    [/movetype]

    [movetype]
        name=drakeglide
        #flies=true
        {DRAKEFLY_MOVE}
        [defense]
            {FLY_DEFENSE 60}
            cave=70
            fungus=60
        [/defense]
        {DRAKEFLY_RESISTANCE}
    [/movetype]

    [movetype]
        name=drakeglide2
        #flies=true
        [movement_costs]
            {FLY_MOVE}
            cave=3
            fungus=2
        [/movement_costs]
        [defense]
            {FLY_DEFENSE 50}
            cave=70
            fungus=60
        [/defense]
        {DRAKEFLY_RESISTANCE}
    [/movetype]

    [movetype]
        name=drakefoot
        # These Drakes wear heavy armor - they don't fly
        # But the armor makes them a good bit tougher
        # Do a bit worse in Swamps as they can't hop to dry spots
        [movement_costs]
            shallow_water=3
            reef=2
            swamp_water=3
            flat=1
            sand=1
            forest=2
            hills=1
            mountains=1
            village=1
            castle=1
            cave=2
            frozen=3
            fungus=2
        [/movement_costs]
        [defense]
            shallow_water=80
            reef=70
            swamp_water=80
            flat=70
            sand=60
            forest=60
            hills=60
            mountains=60
            village=60
            castle=60
            cave=70
            frozen=80
            fungus=60
        [/defense]
        [resistance]
            blade=80
            pierce=100
            impact=70
            fire=50
            cold=150
            arcane=130
        [/resistance]
    [/movetype]
[/units]
#undef WOODLAND_RESISTANCE
#undef FLY_MOVE
#undef FLY_DEFENSE
#undef FLY_RESISTANCE
#undef MOUNTAIN_MOVE
#undef MOUNTAIN_DEFENSE
#undef DRAKEFLY_MOVE
#undef DRAKEFLY_RESISTANCE
