

//==========================================================================
// Basic Wizardy Powers
//==========================================================================

entityDef "sp_bolt_of_foom"
{
	class		dmSpecialPower
	
	powername	"Bolt of Foom"
	menudescription	"A small blast of concentrated foom used to smack enemies at a distance." 
	selectRange 10

	dealdamage	fire,[herolevel]/2d3+2,0.0
	originEmitter emitter_bolt_of_foom
	
	magicscore	0.2
	fireonimpact true
	manacost 1+[baselinemana]/5

	blindfire false

	silent true
}

entityDef "sp_foompop"
{
	class		dmSpecialPower
	powername	"Foom Pop"
	menudescription	"A test explosion." 
	
	selectRange 10
	nummagicattacks	1
	damage		1d3
	notargets true
	destemitter explosion_emitter
	magicscore	0.9
	manacost 3
}

//==========================================================================
// Foominology Powers
//==========================================================================

entityDef "sp_cinderfist"
{
	class		dmSpecialPower
	
	powername	"Cinderfist"
	menudescription	"A powerful fire attack against an adjacent enemy that has a chance to set them alight." 

	selectrange 1
	nummagicattacks	1
	
	damage 1d6
	magicscore 0.25

	statuseffect_1	"on_fire,50"
	
	hittargetemitter	emitter_cinderfist
	
	manacost 4+[baselinemana]/4
	
}

entityDef "sp_cinderfist_enemy"
{
	class		dmSpecialPower
	
	powername	"Cinderfist"
	menudescription	"A powerful fire attack against an adjacent enemy that has a chance to set them alight." 

	selectrange 1
	nummagicattacks	1
	
	dealdamage fire,4d6+10,0
	magicscore 0.15

	statuseffect_1	"on_fire_enemy,50"
	
	hittargetemitter	emitter_cinderfist
	
	manacost 6
	
}



entityDef "sp_lava_lance"
{
	class		dmSpecialPower
	
	powername	"Lava Lance"
	menudescription	"You hurl a spear of fire in a line up to five squares long, damaging everything in it." 
	
	line 5
	selectrange	1
	
	nummagicattacks	1
	knockback	1
	
	damage		1d10
	
	originemitter test_directional_foom_emitter
	magicscore	0.5
	
	manacost [baselinemana]/4+[herolevel]+4
}

entityDef "sp_foomsplosion"
{
	class		dmSpecialPower
	
	powername	"Foomsplosion"
	menudescription "The proverbial fireball-- blast monsters in a 3x3 area with hot heat and flame."
	
	magicscore 0.0
	
	selectRange 5
	burstradius 2
	
	usesmalleremitter test_foom_bolt_barrage
	smalleremittershots 4d4
	smallerpower		sp_foomsplosion_missile

	manacost [baselinemana]/3+[herolevel]+15

}

entityDef "sp_dread_foomsplosion"
{
	class		dmSpecialPower
	
	powername	"Obliteration Swarm"
	menudescription "The proverbial fireball-- blast monsters in a 3x3 area with hot heat and flame."
	
	magicscore 0.0
	
	selectRange 8
	burstradius 2

	casttime 2

	cooldown 12
	
	usesmalleremitter test_foom_bolt_barrage
	smalleremittershots 4d4
	smallerpower		sp_dread_foomsplosion_missile

	manacost 17

}




entityDef "sp_dread_foomsplosion_missile"
{
	class		dmSpecialPower
	
	powername	"Dread Purple Missile"
	menudescription	"One of many launched during a Foomsplosion" 
	selectRange 10

	dealdamage	dark,2d4+4,0
	originEmitter emitter_bolt_of_doom_bonus
	
	magicscore	0.23
	fireonimpact true
	manacost 3

	silent true
}


entityDef "sp_foomsplosion_missile"
{
	class		dmSpecialPower
	
	powername	"Foomsplosion Missile"
	menudescription	"One of many launched during a Foomsplosion" 
	selectRange 10

	dealdamage	fire,[herolevel]+1/2d3,0.0
	originEmitter emitter_foomsplosion_missile
	
	magicscore	0.23
	fireonimpact true
	manacost 3

	silent true
}

entityDef "sp_demolition_cascade"
{
	class		dmSpecialPower
	
	powername	"Demolition Cascade"
	menudescription	"Cause a ring of explosions that expands over three rounds." 
	
	manacost	24

	script demolition_cascade

}

entityDef	"sp_xesperas_challenge"
{
	class		dmSpecialPower
	powername	"Xespera's Challenge"
	selectrange	0

	script		xesperas_challenge
}

entityDef "sp_chain_lightning"
{
	class		dmSpecialPower
	
	powername	"Off The Chain Lightning"
	menudescription	"A short range arc of all the way live electricity that bounces from target to target at whim." 
	
	selectRange 0
	
	nummagicattacks	1
	
	damage		3d10
	
	chain	4
	chainrange	4
	chainparticle particle_lightning_bolt
	
	magicscore	0.25
	
	manacost 28
}

entityDef "sp_flare"
{
	class		dmSpecialPower
	
	powername	"Flare"
	menudescription "Ignite a large group of enemies and send them flying backwards."
	
	nummagicattacks 1
	
	selectRange 1
	blastradius 2

	statuseffect_1	on_fire
	
	knockback 5

	hitTargetEmitter blunt_impact_emitter
	
	magicscore 0.1
	
	manacost 48
}


//==========================================================================
// Cryoscience Powers
//==========================================================================


entityDef "sp_frozen_armor"
{
	class		dmSpecialPower
	
	powername	"Frozen Armor"
	menudescription "You chill the air around you to create a short-lived layer of armor, like in every other RPG, except way more awesome because this is Dungeonmans."
	
	originemitter	emitter_snowflake

	powershouldtarget	friendly

	selfstatuseffect_1 frost_armor	
	manacost 5

	sfx_applied	magic_ice_charge
}

entityDef "sp_frozen_armor_hateglacier"
{
	class		dmSpecialPower
	
	powername	"Raging Frozen Armor"
	menudescription "You chill the air around you to create a short-lived layer of armor, like in every other RPG, except way more awesome because this is Dungeonmans."
	
	originemitter	emitter_snowflake

	powershouldtarget	friendly

	statuseffect_1	frost_armor
	manacost 5

	selectrange	0
	burstradius	3

	sfx_applied	magic_ice_charge
}



entityDef "sp_conjure_ice_block"
{
	class		dmSpecialPower
	
	powername	"Conjure Ice Block"
	menudescription "Conjure a solid block of ice that prevents creatures from moving into it."
	
	selectRange 5
	
	conjure		obstacle_ice_block
	
	destEmitter summoning_poof

	manacost 3
	
}

entityDef "sp_rhombus_of_rime"
{
	class		dmSpecialPower
	
	powername	"Rhombus of Rime"
	menudescription	"A blast of cold foom in an area defined by four sides of equal length." 
	
	selectRange 1
	blastRadius 1

	dealdamage	ice,[herolevel]d4,0
	statuseffect_1	"frozen,75"
	
	magicscore 0.25
	
	originEmitter		rhombus_of_rime_emitter
	hitTargetEmitter	emitter_snowflake

	manacost [baselinemana]/3+[herolevel]
}

entityDef "sp_rhombus_of_rime_enemy_rank_2"
{
	class		dmSpecialPower
	
	powername	"Rhombus of Rime"
	menudescription	"A blast of cold foom in an area defined by four sides of equal length." 
	
	selectRange 1
	blastRadius 1

	dealdamage	ice,6d6,0
	statuseffect_1	"frozen,50"
	
	magicscore 0.30
	
	originEmitter		rhombus_of_rime_emitter
	hitTargetEmitter	emitter_snowflake

	manacost 15
}

entityDef "sp_rhombus_of_rime_enemy_rank_1"
{
	class		dmSpecialPower
	
	powername	"Rhombus of Rime"
	menudescription	"A blast of cold foom in an area defined by four sides of equal length." 
	
	selectRange 1
	blastRadius 1

	dealdamage	ice,4d5,0
	statuseffect_1	"frozen,50"
	
	magicscore 0.15
	
	originEmitter		rhombus_of_rime_emitter
	hitTargetEmitter	emitter_snowflake

	manacost 15
}



entityDef "sp_avalanche"
{
	class		dmSpecialPower
	
	powername	"Avalanche"
	menudescription	"Create a rolling force of ice and snow that moves 1 tile per round away from you." 
	
	selectRange 1
	nummagicattacks	1
	damage	4d8
	magicscore	0.6

	hazard		haz_boulder
	
	manacost 22
}


entityDef "status_power_coldnado"
{
	class		dmSpecialPower
	powername	"^2Coldnado"
	
	burstRadius	3
	dealdamage	ice,1,0.0
	
	magicscore	0.08
	castingstring	"[attacker] commands a mighty ^2Coldnado!^7"
	
}

entityDef "status_power_enemy_coldnado"
{
	class		dmSpecialPower
	powername	"^2Coldnado"
	
	burstRadius	3
	dealdamage	ice,1,0.0
	
	magicscore	0.36
	castingstring	"[attacker] commands a mighty ^2Coldnado!^7"
	
}


entityDef "sp_coldnado"
{
	class		dmSpecialPower
	
	powername	"Coldnado"
	menudescription	"Use your own body as a frozen core that forces a tremendous drop in both temperature and barometric pressure, causing a whirling storm of ice and wind to surround you for a few rounds." 
	
	powershouldtarget	friendly

	selfstatuseffect status_effect_coldnado
	
	manacost [baselinemana]/3+[herolevel]+4
}

entityDef "sp_enemy_coldnado"
{
	class		dmSpecialPower
	
	powername	"Coldnado"
	menudescription	"Use your own body as a frozen core that forces a tremendous drop in both temperature and barometric pressure, causing a whirling storm of ice and wind to surround you for a few rounds." 
	
	powershouldtarget	friendly

	selfstatuseffect status_effect_enemy_coldnado
	
	manacost [baselinemana]/3+[herolevel]+4
}

//==========================================================================
// Tricksonometry Powers
//==========================================================================

entityDef "sp_strobetrotter"
{
	class		dmSpecialPower
	
	powername	"Strobetrotter"
	menudescription "Blind enemies near you with a bright flash of light, reducing thier chance to hit"
	
	burstradius	2
	
	statusEffect	"strobe_blind"
	
	originemitter	emitter_strobetrotter
	
	manacost 6

}
	
entityDef "sp_blink"
{
	class		dmSpecialPower
	
	powername	"Blink"
	menudescription	"Teleport instantly to another tile." 
	
	selectRange 7
	
	teleport	true
	
	originEmitter	bamf_emitter
	destEmitter		summoning_poof

	targettile_01	empty
	targettile_02	in_los
	
	manacost 10
}

entityDef "sp_decoymans"
{
	class		dmSpecialPower
	
	powername	"Conjure Decoymans"
	menudescription "Create a false image of you that taunts the monsters to come kill it."
	
	selectRange 5
	
	conjure		decoymans
	
	destEmitter summoning_poof
	
	manacost [herolevel]+4

}

entityDef "sp_invisibility"
{
	class		dmSpecialPower
	
	powername	"Vanish"
	menudescription "Disappear from sight, preventing enemies from targeting you directly. This won't protect you from area attacks or splash damage!"
	
	selfstatuseffect	"invisibility"
	
	manacost "[herolevel]x3"

}

entityDef "sp_hero_cloud"
{
	class		dmSpecialPower
	
	powername	"Hero Cloud"
	menudescription "Surround yourself in delightful illusions that make you difficult to hit."
	
	selfstatuseffect	"mirror_image"
	originEmitter		summoning_poof
	
	powershouldtarget	friendly

	manacost [herolevel]x2+3
}


//==========================================================================
// Enemy Wizardy Powers
//==========================================================================

entityDef "sp_bolt_of_bandit_foom"
{
	class		dmSpecialPower
	
	powername	"Bolt of Foom"
	menudescription	"A small blast of concentrated foom used to smack enemies at a distance." 
	
	selectRange 4
	
	nummagicattacks	1
	
	dealdamage		fire,1d6+13,0
	
	originEmitter emitter_bolt_of_foom
	
	magicscore	0.09
	fireonimpact true
	
	manacost 4
}

entityDef "sp_bolt_of_bandit_foom_02"
{
	class		dmSpecialPower
	
	powername	"Bolt of Foom"
	menudescription	"A small blast of concentrated foom used to smack enemies at a distance." 
	
	selectRange 4
	
	nummagicattacks	1
	
	dealdamage_01	fire,3d6+15,0
	
	originEmitter emitter_bolt_of_foom
	
	magicscore	0.09
	fireonimpact true

	statuseffect_1	on_fire_enemy_02,100
	
	manacost 4
}



entityDef "sp_bolt_of_purple_doom"
{
	class		dmSpecialPower
	
	powername	"Bolt of Doom"
	menudescription	"Dark gravity bomb oh noes!" 
	
	selectRange 6
	
	dealdamage	dark,1d4+20,0.0
	
	originEmitter emitter_bolt_of_doom
	
	fireonimpact true
	
	manacost 4
}


entityDef "sp_icy_graveshard"
{
	class		dmSpecialPower
	
	powername	"Icy Graveshard"
	menudescription	"Ice shard? No. Frozen grimdark made of unliving corpse dew and honed to a razor edge by hate and malice!" 
	
	selectRange 6

	dealdamage_01	ice,1d4+4,0.0
	dealdamage_02	ranged,1d4+4,0.0
	
	originEmitter		emitter_ice_shard
	hitTargetEmitter	emitter_snowflake
	
	magicscore	0.09
	fireonimpact true
	
	manacost 4
}

entityDef "sp_icy_graveshard_rank_2"
{
	class		dmSpecialPower
	
	powername	"Frozen Graveshard"
	menudescription	"Ice shard? No. Frozen grimdark made of unliving corpse dew and honed to a razor edge by hate and malice!" 
	
	selectRange 6
	
	nummagicattacks	1
	
	dealdamage_01	ice,3d4+15,0.0
	dealdamage_02	ranged,3d4+15,0.0
	
	originEmitter		emitter_ice_shard
	hitTargetEmitter	emitter_snowflake
	
	magicscore	0.09
	fireonimpact true
	
	manacost 4

	cooldown 2
}


entitydef "sp_protection_all"
{
	class dmSpecialPower
	powername	"Protection: All"

	statuseffect_1	protection_all
	powershouldtarget	friendly
	
}

entitydef "sp_protection_purple"
{
	class dmSpecialPower
	powername	"Protection: Dread Purple"

	statuseffect_1	protection_purple
	powershouldtarget	friendly
	
}
entitydef "sp_protection_fire"
{
	class dmSpecialPower
	powername	"Protection: Fire"

	statuseffect_1	protection_fire
	powershouldtarget	friendly
	
}
entitydef "sp_protection_ice"
{
	class dmSpecialPower
	powername	"Protection: Ice"

	statuseffect_1	protection_ice
	powershouldtarget	friendly
	
}
entitydef "sp_protection_poison"
{
	class dmSpecialPower
	powername	"Protection: Poison"
	statuseffect_1	protection_poison
	powershouldtarget	friendly
	
}