
// **************************************************
// Zaubersprüche
// **************************************************

const int SPELL_GOOD	= 0;
const int SPELL_NEUTRAL	= 1;
const int SPELL_BAD	= 2;

CLASS C_Spell {
	VAR STRING	decal_enabled;		
	VAR STRING	decal_disabled;		
	VAR INT		energy;				// Mana oder Wille ? (ATR_MANA / ATR_MADNESS)
	VAR INT		time_per_mana;		// Zeit pro investierten Manapunkt (ms)
	VAR INT		mana_per_level;		// Mana pro Level
	VAR INT		max_level;			// Anzahl der Levels
	VAR INT		damage_per_level;	// Schaden pro Level
	VAR INT		type;			// Good, Neutral or Bad
};

// *****************
// Kreis des Feuers
// *****************

INSTANCE Spell_Light (C_Spell)
{
	decal_enabled	= "lightspell_16bit.tga";
	decal_disabled	= "megic_disabled.tga";
	time_per_mana	= 750;
	energy = ATR_MANA;
	type = SPELL_NEUTRAL;
	mana_per_level = 1;
	max_level      = 1;
};

INSTANCE Spell_Fireball (C_Spell)
{
	decal_enabled	= "fireball_16bit.tga";
	decal_disabled	= "megic_disabled.tga";
	energy = ATR_MANA;
	time_per_mana	= 750;
	mana_per_level	= 1;
	max_level		= 10;
	damage_per_level= 3;
	type = SPELL_BAD;
};

INSTANCE Spell_Transform (C_Spell)
{
	decal_enabled	= "magicdummy16bit_1.tga";
	decal_disabled	= "megic_disabled.tga";
	energy			= ATR_MANA;
	max_level		= 3;
	mana_per_level	= 3;
	time_per_mana	= 1 * 1000;
	type = SPELL_NEUTRAL;
};

INSTANCE Spell_Earthquake (C_Spell)
{
	decal_enabled	= "magicdummy16Bit_2.tga";
	decal_disabled	= "megic_disabled.tga";
	energy = ATR_MANA;
	type = SPELL_BAD;
};

INSTANCE Spell_Petrify (C_Spell)
{
	decal_enabled	= "magicdummy16Bit_3.tga";
	decal_disabled	= "megic_disabled.tga";
	energy = ATR_MANA;
	max_level		= 10;
	mana_per_level	= 2;
	time_per_mana	= 500;
	type = SPELL_BAD;
};

// *****************
// Kreis des Wassers
// *****************

INSTANCE Spell_Heal (C_Spell)
{
	decal_enabled	= "magicdummy16Bit_4.tga";
	decal_disabled	= "megic_disabled.tga";
	energy			= ATR_MANA;
	time_per_mana	= 2 * 1000;				// 2 Sekunden;
	type = SPELL_GOOD;
};

INSTANCE Spell_Lightning (C_Spell)
{
	decal_enabled	= "magicdummy16Bit_5.tga";
	decal_disabled	= "megic_disabled.tga";
	time_per_mana	= 1000;
	energy			= ATR_MANA;
	type			= SPELL_BAD;
};

INSTANCE Spell_Unused1 (C_Spell)
{
	decal_enabled	= "magicdummy16Bit_1.tga";
	decal_disabled	= "megic_disabled.tga";
	energy = ATR_MANA;
	type = SPELL_NEUTRAL;
};

INSTANCE Spell_Invisible (C_Spell)
{
	decal_enabled	= "magicdummy16Bit_2.tga";
	decal_disabled	= "megic_disabled.tga";
	energy = ATR_MANA;
	type = SPELL_NEUTRAL;
};

INSTANCE Spell_Teleportation (C_Spell)
{
	decal_enabled	= "magicdummy16Bit_3.tga";
	decal_disabled	= "megic_disabled.tga";
	energy = ATR_MANA;
	max_level		= 3;
	mana_per_level	= 2;
	time_per_mana	= 500;
	type = SPELL_NEUTRAL;
};

INSTANCE Spell_Daemon (C_Spell)
{
	decal_enabled	= "magicdummy16Bit_4.tga";
	decal_disabled	= "megic_disabled.tga";
	energy = ATR_MANA;
	type = SPELL_BAD;
};

INSTANCE Spell_StopTime (C_Spell)
{
	decal_enabled	= "magicdummy16Bit_1.tga";
	decal_disabled	= "megic_disabled.tga";
	energy = ATR_MANA;
	type = SPELL_NEUTRAL;
};

// *****************
//      Psionic
// *****************

INSTANCE Spell_Forget (C_Spell)
{
	decal_enabled	= "psidummy16Bit_1.tga";
	decal_disabled	= "megic_disabled.tga";
	max_level		= 1;
	mana_per_level	= 3;
	time_per_mana	= 1000;
	energy			= ATR_MADNESS;
	type			= SPELL_BAD;
};

INSTANCE Spell_WindFist (C_Spell)
{
	decal_enabled	= "psidummy16Bit_2.tga";
	decal_disabled	= "megic_disabled.tga";
	energy			= ATR_MADNESS;
	max_level		= 3;
	mana_per_level	= 1;
	time_per_mana	= 1000;
	damage_per_level= 2;
	type = SPELL_BAD;
};

INSTANCE Spell_Telekinesis (C_Spell)
{	
	decal_enabled	= "psidummy16Bit_3.tga";
	decal_disabled	= "megic_disabled.tga";
	energy = ATR_MADNESS;
	type = SPELL_NEUTRAL;
};

INSTANCE Spell_HumanControl (C_Spell)
{
	decal_enabled	= "humanctrl16Bit.tga";
	decal_disabled	= "megic_disabled.tga";
	energy			= ATR_MADNESS;
//	max_level		= 3;
//	mana_per_level	= 3;
	time_per_mana	= 1 * 1000;
	type = SPELL_BAD;
};

INSTANCE Spell_Unused2 (C_Spell)
{
	decal_enabled	= "psidummy16Bit_4.tga";
	decal_disabled	= "megic_disabled.tga";
	energy = ATR_MADNESS;
	type = SPELL_NEUTRAL;
};

INSTANCE Spell_Insane (C_Spell)
{
	decal_enabled	= "psidummy16Bit_5.tga";
	decal_disabled	= "megic_disabled.tga";
	energy = ATR_MADNESS;
	type = SPELL_NEUTRAL;
};

INSTANCE Spell_TeleStorm (C_Spell)
{
	decal_enabled	= "psidummy16Bit_1.tga";
	decal_disabled	= "megic_disabled.tga";
	energy = ATR_MADNESS;
	type = SPELL_NEUTRAL;
};
