#textdomain wesnoth-dw
[textdomain]
    name="wesnoth-dw"
[/textdomain]

# wmlscope: set export=no
[campaign]
    id=Dead_Water
    rank=170
    icon="units/undead/soulless-swimmer.png~RC(magenta>blue)"
    name= _ "Dead Water"
    abbrev= _ "DW"
    define=CAMPAIGN_DEAD_WATER
    first_scenario=01_Invasion
    difficulties="EASY,NORMAL,HARD,NIGHTMARE"
    difficulty_descriptions={MENU_IMG_TXT2 "data/campaigns/Dead_Water/images/units/merfolk/citizen.png~RC(magenta>red)" ( _ "Citizen") (_ "(Beginner)")} +
    ";*" + {MENU_IMG_TXT2 "units/merfolk/fighter.png~RC(magenta>red)" ( _ "Fighter") (_ "(Normal)")} +
    ";" + {MENU_IMG_TXT2 "units/merfolk/warrior.png~RC(magenta>red)" (_ "Warrior") (_ "(Challenging)")} +
    ";" + {MENU_IMG_TXT2 "units/merfolk/triton.png~RC(magenta>red)" (_ "Triton") (_ "(Difficult)")}
    description= _ "You are Kai Krellis, son and heir of the last merman king but only a child. A necromancer is turning your subjects into undead slaves! Lead your people on a mission to convince a powerful mer-sorceress to help you repel the invasion. The oceans near the Northern Lands are perilous, so you will need cunning and bravery to survive. But first you need to gain the respect of your troops!

" + _ "(Intermediate level, 10 scenarios.)"
    image="data/campaigns/Dead_Water/images/campaign_image.png"

    # This version, ready for mainline, is lightly adapted from UMC version 0.9.18

    [about]
        title = _ "Campaign design and programming"
        [entry]
            name = "Dan Gerhards (beetlenaut)"
        [/entry]
    [/about]
    [about]
        title = _ "Script-doctoring and cleanup for mainline"
        [entry]
            name = "Eric S. Raymond (ESR)"
        [/entry]
    [/about]
    [about]
        title = _ "Artwork"
        [entry]
            name = "Kathrin Polikeit (Kitty)"
            comment = "Portraits for brawler, Kai Krellis, Gwabbo, and Caladon"
        [/entry]
        [entry]
            name = "Justin Nichols (JustinOperable)"
            comment = "Portrait for Cylanna"
        [/entry]
        [entry]
            name = "Zerovirus"
            comment = "Kai Krellis sprites"
        [/entry]
        [entry]
            name = "Francisco Muñoz (fmunoz)"
            comment = "Attack icons"
        [/entry]
    [/about]
[/campaign]

#ifdef CAMPAIGN_DEAD_WATER
[binary_path]
    path=data/campaigns/Dead_Water
[/binary_path]

{campaigns/Dead_Water/utils}

[+units]
    {campaigns/Dead_Water/units}
[/units]

{campaigns/Dead_Water/scenarios}

[lua]
    code=<<
	local _ = wesnoth.textdomain "wesnoth-dw"
	local old_unit_status = wesnoth.theme_items.unit_status
	
	function wesnoth.theme_items.unit_status()
		local u = wesnoth.get_displayed_unit()
		if not u then return {} end
		local s = old_unit_status()
		
		if u.status.stunned then
			table.insert(s, { "element",  { image = "misc/stunned-status-icon.png",
			                                tooltip = _"stunned: This unit is stunned. It cannot enforce its Zone of Control."
			} } )
		end
		
		return s
	end
	>>
[/lua]
#endif

# wmllint: directory spellings kai Krellis Dorth Jotha Tirigaz Laudiss
# wmllint: directory spellings Ravanal Mal-Ravanal Tyegëa Bilheld Teelöa
# wmllint: directory spellings Govon Caladon Maudin Siddry Indress Cylanna
# wmllint: directory spellings neep
