beginscendatascript;

// ******************************* Terrains *******************************

// new terrains

begindefineterrain 122;
	import = 129;
	te_which_sheet = 517;
	te_which_icon = 3;
	
begindefineterrain 123;
	te_which_sheet = 517;
	te_which_icon = 4;
	
begindefineterrain 124;
	import = 232;
	te_which_sheet = 517;
	te_which_icon = 5;
	te_second_icon = 6;

begindefineterrain 175;
	import = 194;
	te_special_property = 0;
	te_default_script = "specobj";

begindefineterrain 176;
	import = 195;
	te_special_property = 0;
	te_default_script = "specobj";

begindefineterrain 271;
	import = 270;
	te_icon_adjust = 4;
	
begindefineterrain 287;
	import = 270;
	te_icon_adjust = 2;
	
begindefineterrain 288;
	import = 286;
	te_icon_adjust = 1;
	
begindefineterrain 358;
	import = 355;
	te_which_sheet = 517;
	te_which_icon = 2;

begindefineterrain 377;
	import = 376;
	te_icon_adjust = 130;
	
begindefineterrain 390;
	import = 351;
	te_icon_adjust = 64;

begindefineterrain 391;
	import = 352;
	te_icon_adjust = 64;
	
begindefineterrain 392;
	import = 353;
	te_icon_adjust = 64;

begindefineterrain 393;
	import = 354;
	te_icon_adjust = 64;

begindefineterrain 422;
	import = 231;
	te_name = "Lightning Pillar";
	te_which_sheet = 500;
	te_which_icon = 4;
	te_anim_steps = 3;
	te_draw_on_automap = 0;

begindefineterrain 423 ;
	te_name = "Lightning Pillar 2";
	te_which_icon = 0;

// change default terrains
begindefineterrain 424;
	import = 209;
begindefineterrain 209;
	te_light_radius = 15;

begindefineterrain 424;
	import = 267;
begindefineterrain 267;
	te_light_radius = 15;

begindefineterrain 424;
	import = 347;
begindefineterrain 347;
	te_light_radius = 15;

begindefineterrain 424;
	import = 384;
begindefineterrain 384;
	te_swap_terrain = 388;
	
begindefineterrain 424;
	import = 374;
begindefineterrain 374;
	te_default_script = "lever";

begindefineterrain 424;
	import = 380;
begindefineterrain 380;
	te_terrain_to_crumble_to = 137;
	
begindefineterrain 424;
	import = 381;
begindefineterrain 381;
	te_terrain_to_crumble_to = 137;
	
begindefineterrain 424;
	import = 382;
begindefineterrain 382;
	te_terrain_to_crumble_to = 137;
	
begindefineterrain 424;
	import = 383;
begindefineterrain 383;
	te_terrain_to_crumble_to = 137;

// more new terrains
begindefineterrain 424 ;
	import = 285;
	te_name = "Basin";
	te_which_sheet = 500;
	te_which_icon = 8;

begindefineterrain 425;
	import = 285;
	te_name = "Dark pool";
	te_icon_adjust = 64;
// red line around black pool

begindefineterrain 426;
	import = 285;
	te_name = "Purple pool";
	te_icon_adjust = 4;
// light purple

begindefineterrain 427;
	import = 285;
	te_name = "Yellow pool";
	te_icon_adjust = 1;
// yellow

begindefineterrain 428;
	import = 285;
	te_name = "Blue pool";
	te_icon_adjust = 512;
// sky blue

begindefineterrain 429;
	import = 285;
	te_name = "Pool";
	te_icon_adjust = 256;
// bright turquoise

begindefineterrain 430;
	import = 285;
	te_name = "Pink pool";
	te_icon_adjust = 128;
// light pink/purple

begindefineterrain 431;
	import = 285;
	te_name = "Gray pool";
	te_icon_adjust = 513;
// gray

begindefineterrain 432;
	import = 285;
	te_name = "Pool";
	te_icon_adjust = 136;
// pastel

begindefineterrain 433;
	import = 300;
	te_name = "Stalagmite in water";
	te_which_sheet = 509;
	te_which_icon = 9;
	te_ed_which_sheet = 681;
	te_ed_which_icon = 74;

begindefineterrain 434;
	import = 210;
	te_name = "Dead bonfire";
	te_which_sheet = 509;
	te_which_icon = 8;

begindefineterrain 435;
	import = 267;
	te_name = "Hell lamp";
	te_which_sheet = 509;
	te_which_icon = 0;
	te_anim_steps = 3;
	te_draw_on_automap = 0;	

begindefineterrain 436;
	import = 219;
	te_name = "Table";
	te_which_sheet = 727;
	te_which_icon = 9;
	te_ed_which_icon = 79;

begindefineterrain 437;
	import = 125;
	te_name = "Barrier";
	te_which_sheet = 764;
	te_which_icon = 0;
	te_ed_which_sheet = 686;
	te_ed_which_icon = 42;
	te_anim_steps = 4;

begindefineterrain 438;
	import = 232;
	te_name = "Robed Statue (east)";
	te_which_sheet = 501;
	te_which_icon = 3;
	te_second_icon = 2;
begindefineterrain 439;
	te_name = "Robed Statue (west)";
	te_which_icon = 1;
	te_second_icon = 0;
begindefineterrain 440;
	te_name = "Armored Statue (e)";
	te_which_icon = 6;
	te_second_icon = 7;
begindefineterrain 441;
	te_name = "Armored Statue (w)";
	te_which_icon = 4;
	te_second_icon = 5;

begindefineterrain 442;
	import = 209;
	te_name = "Crystal light";
	te_which_sheet = 509;
	te_which_icon = 4;

// from VoDT
begindefineterrain 443;
	import = 200;
	te_name = "Locker";
	te_which_sheet = 513;
	te_which_icon = 5;
	te_ed_which_sheet = 514;
	te_ed_which_icon = 25;
begindefineterrain 444;
	te_which_icon = 6;
	te_ed_which_icon = 26;

begindefineterrain 445;
	import = 125;
	te_name = "Machinery";
	te_which_sheet = 513;
	te_which_icon = 0;
	te_ed_which_sheet = 514;
	te_ed_which_icon = 20;
begindefineterrain 446;
	te_which_icon = 1;
	te_ed_which_icon = 21;
begindefineterrain 447;
	te_which_icon = 2;
	te_ed_which_icon = 22;
begindefineterrain 448;
	te_which_icon = 3;
	te_ed_which_icon = 23;
begindefineterrain 449;
	te_which_icon = 7;
	te_ed_which_icon = 27;
begindefineterrain 450;
	te_name = "Cage";
	te_which_icon = 4;
	te_ed_which_icon = 24;
	
begindefineterrain 451;
	import = 180;
	te_which_sheet = 515;
	te_which_icon = 5;
	
begindefineterrain 452;
	import = 181;
	te_which_sheet = 515;
	te_which_icon = 6;
	
begindefineterrain 453;
	import = 178;
	te_which_sheet = 515;
	te_which_icon = 7;
	
begindefineterrain 454;
	import = 179;
	te_which_sheet = 515;
	te_which_icon = 8;
	
begindefineterrain 455;
	import = 180;
	te_which_sheet = 516;
	te_which_icon = 5;
	
begindefineterrain 456;
	import = 181;
	te_which_sheet = 516;
	te_which_icon = 6;
	
begindefineterrain 457;
	import = 178;
	te_which_sheet = 516;
	te_which_icon = 7;
	
begindefineterrain 458;
	import = 179;
	te_which_sheet = 516;
	te_which_icon = 8;
	
begindefineterrain 459;
	import = 204;
	te_name = "Bubbly tube";
	te_which_sheet = 515;
	te_which_icon = 0;
	te_anim_steps = 5;
	te_ed_which_sheet = 686;
	te_ed_which_icon = 41;
	
begindefineterrain 460;
	te_name = "Crystal pile";
	te_which_sheet = 516;
	te_anim_steps = 4;
	te_ed_which_sheet = 514;
	te_ed_which_icon = 12;
	te_light_radius = 7;
	te_terrain_to_crumble_to = 461;
	
begindefineterrain 461;
	import = 204;
	te_name = "Broken crystals";
	te_which_sheet = 516;
	te_which_icon = 4;
	te_ed_which_sheet = 685;
	te_ed_which_icon = 55;
	
begindefineterrain 462;
	te_name = "Crystal protrusion";
	te_which_icon = 9;
	te_ed_which_sheet = 684;
	te_ed_which_icon = 84;

begindefineterrain 463;
	import = 180;
	te_which_sheet = 502;
	te_which_icon = 0;
	
begindefineterrain 464;
	import = 181;
	te_which_sheet = 502;
	te_which_icon = 1;
	
begindefineterrain 465;
	import = 180;
	te_which_sheet = 502;
	te_which_icon = 2;
	
begindefineterrain 466;
	import = 181;
	te_which_sheet = 502;
	te_which_icon = 3;
	
begindefineterrain 467;
	import = 180;
	te_which_sheet = 502;
	te_which_icon = 4;
	
begindefineterrain 468;
	import = 181;
	te_which_sheet = 502;
	te_which_icon = 5;
	
begindefineterrain 469;
	import = 180;
	te_which_sheet = 502;
	te_which_icon = 6;
	
begindefineterrain 470;
	import = 181;
	te_which_sheet = 502;
	te_which_icon = 7;
	
begindefineterrain 471;
	import = 180;
	te_which_sheet = 502;
	te_which_icon = 8;
	
begindefineterrain 472;
	import = 181;
	te_which_sheet = 502;
	te_which_icon = 9;
	
begindefineterrain 473;
	import = 180;
	te_which_sheet = 517;
	te_which_icon = 0;
	
begindefineterrain 474;
	import = 181;
	te_which_sheet = 517;
	te_which_icon = 1;

begindefineterrain 475;
	import = 125;
	te_name = "Boat";
	te_which_sheet = 741;
	te_which_icon = 7;
	te_ed_which_sheet = 683;
	te_ed_which_icon = 17;
	te_full_move_block = 0;
	
begindefineterrain 476;
	te_which_icon = 8;
	te_ed_which_icon = 18;
	
begindefineterrain 477;
	te_which_icon = 9;
	te_ed_which_icon = 19;
	
begindefineterrain 478;
	te_which_sheet = 742;
	te_which_icon = 0;
	te_ed_which_icon = 20;
	
begindefineterrain 480;
	import = 351;
	te_icon_adjust = 2;

begindefineterrain 481;
	import = 352;
	te_icon_adjust = 2;
	
begindefineterrain 482;
	import = 353;
	te_icon_adjust = 2;

begindefineterrain 483;
	import = 354;
	te_icon_adjust = 2;
	
begindefineterrain 484;
	import = 351;
	te_icon_adjust = 4;

begindefineterrain 485;
	import = 352;
	te_icon_adjust = 4;
	
begindefineterrain 486;
	import = 353;
	te_icon_adjust = 4;

begindefineterrain 487;
	import = 354;
	te_icon_adjust = 4;
	

// ******************************* Floors *******************************

begindefinefloor 130;
	import = 98;
	fl_special_property = 6;

begindefinefloor 131;
	import = 97;
	fl_special_property = 6;

begindefinefloor 132;
	import = 79;
	fl_name = "Ice";
	fl_which_sheet = 752;
	fl_which_icon = 0;
	fl_ed_which_sheet = 684;
	fl_ed_which_icon = 20;
	fl_special_property = 2;
	
begindefinefloor 133;
	import = 97;
	fl_name = "Red floor";
	fl_icon_adjust = 128;
	
begindefinefloor 134;
	import = 80;
	fl_blocked = 1;

// ******************************* Items *******************************
// ********* change default items *********
begindefineitem 446;
	import = 279;
begindefineitem 279;
	it_ability_str_1 = 5;
	it_value = 2500;
	
begindefineitem 446;
	import = 432;
begindefineitem 432; // Ring of Speed
	it_ability_str_1 = 2;

// ********* add new items *********
begindefineitem 446;
	clear;
	it_name = "Book";
	it_full_name = "Book";
	it_variety = 21;
	it_floor_which_sheet = 512;
	it_floor_which_icon = 0;
	it_inventory_icon = 0;
	it_weight = 5;
	it_ability_1 = 207;
	it_ability_str_1 = 10;

begindefineitem 447;
	it_full_name = "Book";
	it_floor_which_icon = 1;
	it_inventory_icon = 1;
	it_ability_str_1 = 11;

begindefineitem 448;
	it_full_name = "Book";
	it_floor_which_icon = 2;
	it_inventory_icon = 2;
	it_ability_str_1 = 12;

begindefineitem 449;
	import = 78;
	it_name = "Halberd";
	it_full_name = "Halberd of Calindor";
	it_damage_per_level = 9;
	it_bonus = 7;
	it_ability_1 = 74; // damage to undead
	it_ability_str_1 = 40;
	it_ability_2 = 6; // pole weapons
	it_ability_str_2 = 3;
	
begindefineitem 450;
	import = 302;
	it_full_name = "Immunity Charm";
	it_floor_which_icon = 5;
	it_inventory_icon = 8;
	it_ability_1 = 54;
	it_ability_str_1 = 3;
	it_value = 3000;
	
begindefineitem 451;
	clear;
	it_name = "Phaedra";
	it_full_name = "Phaedra";
	it_identified = 1;
	it_weight = 1500;
	it_variety = 21;
	it_floor_which_sheet = 512;
	it_floor_which_icon = 4;
	it_inventory_icon = 4;
	
begindefineitem 452;
	import = 371;
	it_name = "Bahssikavan Spear";
	it_full_name = "Bahssikavan Spear";
	it_damage_per_level = 8;
	it_bonus = 6;
	it_value = 6000;
	it_magic = 1;
	it_identified = 1;
	it_ability_1 = 75; // damage to demons
	it_ability_str_1 = 30;
	
begindefineitem 453;
	import = 299;
	it_full_name = "Blademaster's Bracelet";
	it_ability_str_1 = 4; // Melee weapons
	it_ability_str_2 = 4; // Pole weapons
	it_ability_str_3 = 5; // Damage
	it_value = 6000;
	
begindefineitem 454;
	import = 296;
	it_full_name = "Bracelet of Efficiency";
	it_ability_1 = 28;
	it_ability_str_1 = 3;
	
begindefineitem 455;
	clear;
	it_name = "Golem Arm";
	it_full_name = "Golem Arm";
	it_variety = 21;
	it_floor_which_sheet = 512;
	it_floor_which_icon = 5;
	it_inventory_icon = 6;
	it_value = 10;
	it_weight = 15;
	it_identified = 1;
	
begindefineitem 456;
	import = 446;
	it_full_name = "Scroll";
	it_floor_which_sheet = 1014;
	it_floor_which_icon = 5;
	it_inventory_icon = 6;
	it_identified = 1;
	it_weight = 10;
	it_ability_str_1 = 13;

begindefineitem 457;
	import = 452;
	it_name = "Spear of Khalthas";
	it_full_name = "Spear of Khalthas";
	it_value = 8000;
	it_damage_per_level = 8;
	it_bonus = 6;
	it_ability_1 = 61; // one extra AP
	it_ability_str_1 = 1;
	it_ability_2 = 74; // damage to undead
	it_ability_str_2 = 30;
	it_ability_3 = 78; // damage to reptiles
	it_ability_str_3 = 20;
	
begindefineitem 458;
	import = 282;
	it_full_name = "Wand of Devastation";
	it_charges = 3;
	it_ability_1 = 220;
	it_ability_str_1 = 14;
	it_value = 200;
	it_identified = 1;
	
begindefineitem 459;
	import = 385;
	it_name = "Vahnatai Cloak";
	it_full_name = "Magic Vahnatai Cloak";
	it_protection = 4;
	it_ability_1 = 55; // Resist fire
	it_ability_str_1 = 8;
	it_ability_2 = 57; // Resist magic
	it_ability_str_2 = 6;
	it_ability_3 = 56; // Resist cold
	it_ability_str_3 = 5;
	it_value = 2000;
	it_icon_adjust = 2;
	
begindefineitem 460;
	import = 40;
	it_full_name = "Magic Plate Mail";
	it_bonus = 20;
	it_protection = 50;
	it_encumbrance = 4;
	it_value = 6000;
	it_ability_1 = 54; // All hostile effects
	it_ability_str_1 = 1;
	it_ability_2 = 86; // Regenerate
	it_ability_str_2 = 5;
	it_ability_3 = 84; // Protect from petrification
	it_ability_str_3 = 15;
	it_magic = 1;
	
begindefineitem 461;
	import = 370;
	it_name = "Spear";
	it_full_name = "Magic Slith Spear";
	it_damage_per_level = 7;
	it_value = 70;
	it_bonus = 4;
	it_value = 8000;
	it_ability_1 = 61;
	it_ability_str_1 = 1;
	it_ability_2 = 70;
	it_ability_str_2 = 30;
	
begindefineitem 462;
	import = 148;
	it_full_name = "Quickness Gauntlets";
	it_protection = 5;
	it_value = 1000;
	it_ability_1 = 2; // Dexterity
	it_ability_str_1 = 3;
	it_ability_1 = 20; // Quick Strike
	it_ability_str_1 = 2;
	it_ability_1 = 61; // Extra AP
	it_ability_str_1 = 1;
	
begindefineitem 463;
	import = 384;
	it_full_name = "Steel Razordisk";
	it_bonus = 6;
	it_value = 100;
begindefineitem 107;
	
begindefineitem 464;
	import = 359;
	it_full_name = "Helm of Runes";
	it_protection = 5;
	it_bonus = 10;
	it_ability_str_1 = 5;
	it_ability_2 = 58;
	it_ability_str_2 = 6;
	it_value = 2000;
	
begindefineitem 465;
	import = 19;
	it_full_name = "Pants of Health";
	it_protection = 6;
	it_bonus = 3;
	it_ability_1 = 59;
	it_ability_str_1 = 8;
	it_ability_2 = 60;
	it_ability_str_2 = 6;
	
begindefineitem 466;
	import = 18;
	it_full_name = "Elemental Pants";
	it_protection = 6;
	it_bonus = 4;
	it_ability_1 = 55;
	it_ability_str_1 = 7;
	it_ability_2 = 56;
	it_ability_str_2 = 7;
	
begindefineitem 467;
	import = 427;
	it_full_name = "Shield of Witness";
	it_protection = 1;
	it_bonus = 0;
	it_ability_str_1 = 50;
	it_value = 2500;
	
begindefineitem 468;
	import = 463;
	it_full_name = "Razordisk of Light";
	it_ability_1 = 75;
	it_ability_str_1 = 40;
	it_value = 150;
	
begindefineitem 469;
	it_full_name = "Razordisk of Life";
	it_ability_1 = 74;
begindefineitem 353;

// ******************************* Creatures *******************************

// ********* change default creatures *********
begindefinecreature 239;
	import = 34;
begindefinecreature 34;
	cr_default_attitude = 2;

begindefinecreature 239;
	import = 35;
begindefinecreature 35;
	cr_default_attitude = 2;

begindefinecreature 239;
	import = 36;
begindefinecreature 36;
	cr_default_attitude = 2;

begindefinecreature 239;
	import = 37;
begindefinecreature 37;
	cr_default_attitude = 2;

begindefinecreature 239;
	import = 38;
begindefinecreature 38;
	cr_default_attitude = 2;
	
begindefinecreature 239;
	import = 225;
begindefinecreature 225;
	cr_special_abil = 33;
	
begindefinecreature 239;
	import = 159;
begindefinecreature 159;
	cr_level = 36;
	cr_hp_bonus = 100;
	cr_natural_armor = 15;
	cr_attack_1 = 7;
	cr_attack_2 = 5;
	cr_attack_3 = 5;
	cr_special_abil = 1;
	cr_summon_class = 10;
	
begindefinecreature 239;
	import = 169;
begindefinecreature 169;
	cr_level = 40;
	cr_hp_bonus = 100;
	cr_natural_armor = 15;
	cr_attack_1 = 8;
	cr_attack_2 = 5;
	cr_attack_3 = 5;

begindefinecreature 239;
	import = 59;
begindefinecreature 59; // Imp
	cr_level = 30;
	cr_amount_stat_adjust 1 = 8; // Mage spells
	cr_amount_stat_adjust 2 = 8; // Priest spells
	cr_natural_armor = 11;

begindefinecreature 239;
	import = 60;
begindefinecreature 60; // Demon
	cr_level = 35;
	cr_amount_stat_adjust 1 = 20; // Mage spells
	cr_what_stat_adjust 4 = 12; // Priest spells
	cr_amount_stat_adjust 4 = 11;
	cr_natural_armor = 15;
	cr_start_item 0 = 299; // Warrior's Bracelet
	cr_start_item_chance 0 = 2;
	cr_start_item 1 = 433; // Ring of Will
	cr_start_item_chance 1 = 2;
	cr_start_item 2 = 280; // Quicksilver Ring
	cr_start_item_chance 2 = 4;
	cr_start_item 3 = 443; // Plate Boots
	cr_start_item_chance 3 = 4;
	cr_start_item 4 = 444; // Titanium Boots
	cr_start_item_chance 4 = 2;
	cr_start_item 5 = 332; // Dragonskin Cloak
	cr_start_item_chance 5 = 4;
	cr_start_item 6 = 298; // Priest's Bracelet
	cr_start_item_chance 6 = 3;
	cr_start_item 7 = 3;
	cr_start_item_chance 7 = 50;

begindefinecreature 239;
	import = 61;
begindefinecreature 61; // Haakai
	cr_level = 45;
	cr_immunities 4 = 100;

begindefinecreature 239;
	import = 95;
begindefinecreature 95; // Mung demon
	cr_level = 30;
	cr_immunities 2 = 100;
	cr_hp_bonus = 150;

begindefinecreature 239;
	import = 92;
begindefinecreature 92;
	cr_default_aggression = 50;

begindefinecreature 239;
	import = 216;
begindefinecreature 216;
	cr_name = "Blade Golem";
	cr_level = 39;
	cr_attack_1 = 8;
	
begindefinecreature 239;
	import = 217;
begindefinecreature 217; // Fire Golem
	cr_level = 45;
	cr_start_item_chance 0 = 30; // Ruby
	cr_hp_bonus = 50;
	cr_immunities 2 = 25;
	cr_immunities 3 = 100;

begindefinecreature 239;
	import = 218;
begindefinecreature 218; // Ice Golem
	cr_level = 45;
	cr_start_item_chance 0 = 30; // Emerald
	cr_hp_bonus = 50;
	cr_attack_2 = 6;
	cr_attack_3 = 6;
	cr_attack_23_type = 5;
	cr_immunities 2 = 25;
	cr_immunities 3 = 100;

begindefinecreature 239;
	import = 219;
begindefinecreature 219; // Jeweled Golem
	cr_level = 50;
	cr_start_item_chance 0 = 10; // Jeweled Ring
	cr_start_item_chance 1 = 20; // Emerald
	cr_start_item_chance 2 = 20; // Ruby
	cr_hp_bonus = 100;
	cr_attack_2 = 6;
	cr_attack_3 = 6;
	cr_attack_1_type = 1;
	cr_attack_23_type = 5;
	cr_immunities 2 = 75;
	cr_immunities 3 = 100;
	cr_special_abil = 9;

begindefinecreature 239;
	import = 220;
begindefinecreature 220; // Demon Golem
	cr_level = 55;
	cr_hp_bonus = 150;
	cr_immunities 0 = 100;
	cr_immunities 1 = 100;
	cr_immunities 3 = 100;
	cr_special_abil = 11;
	
begindefinecreature 239;
	import = 136;
begindefinecreature 136; // Emerald Skeleton
	cr_name = "Emerald Skeleton";
	cr_level = 52;
	cr_summon_class = 10;
	cr_special_abil = 8;
	cr_default_strategy = 0;
	cr_attack_1 = 7;
	cr_attack_1_type = 1;
	cr_natural_armor = 10;
	cr_icon_adjust = 4;
	cr_start_item 1 = 204;
	cr_start_item_chance 1 = 20;
	
begindefinecreature 239;
	import = 42;
begindefinecreature 42; // Skeleton
	cr_level = 43;
	cr_start_item 0 = 87; // Javelin
	cr_start_item_chance 1 = 10;
	cr_start_item 2 = 207; // Gold Ring
	cr_start_item_chance 2 = 10;
	cr_attack_1 = 7;
	cr_summon_class = 7;

begindefinecreature 239;
	import = 43;
begindefinecreature 43; // Zombie
	cr_level = 47;
	cr_natural_armor = 10;
	cr_attack_1 = 9;
	cr_summon_class = 7;

begindefinecreature 239;
	import = 44;
begindefinecreature 44; // Ghoul
	cr_level = 49;
	cr_special_abil = 10;
	cr_start_item_chance 0 = 6;
	cr_hp_bonus = 40;
	cr_natural_armor = 25;
	cr_attack_1 = 7;
	cr_attack_2 = 5;
	cr_attack_3 = 5;
	cr_summon_class = 8;

begindefinecreature 239;
	import = 45;
begindefinecreature 45; // Ghast
	cr_name = "Ghast";
	cr_level = 51;
	cr_special_abil = 10;
	cr_start_item 0 = 212;
	cr_start_item_chance 1 = 15;
	cr_hp_bonus = 50;
	cr_natural_armor = 25;
	cr_attack_1 = 8;
	cr_attack_2 = 5;
	cr_attack_3 = 5;
	cr_summon_class = 8;

begindefinecreature 239;
	import = 46;
begindefinecreature 46; // Spirit
	cr_level = 53;
	cr_amount_stat_adjust 0 = 20; // Mage Spells
	cr_amount_stat_adjust 1 = 15; // Magery
	cr_hp_bonus = 60;
	cr_natural_armor = 36;
	cr_attack_1 = 9;
	cr_immunities 2 = 100;

begindefinecreature 239;
	import = 47;
begindefinecreature 47; // Wight
	cr_level = 52;
	cr_hp_bonus = 100;
	cr_natural_armor = 30;
	cr_attack_1 = 8;
	cr_attack_1_type = 1;
	cr_special_abil = 23;
	cr_summon_class = 8;

begindefinecreature 239;
	import = 48;
begindefinecreature 48; // Ghost
	cr_level = 58;
	cr_hp_bonus = 100;
	cr_natural_armor = 40;
	cr_attack_1 = 9;
	cr_special_abil = 0;
	cr_immunities 0 = 100;
	cr_immunities 2 = 100;
	cr_what_stat_adjust 0 = 12;
	cr_amount_stat_adjust 0 = 20; // Priest Spells
	cr_what_stat_adjust 1 = 25;
	cr_amount_stat_adjust 1 = 15; // Magery

begindefinecreature 239;
	import = 49;
begindefinecreature 49; // Lich
	cr_level = 60;
	cr_amount_stat_adjust 0 = 20; // Magery
	cr_amount_stat_adjust 1 = 30; // Mage Spells
	cr_amount_stat_adjust 2 = 30; // Priest Spells, then Assassination
	cr_what_stat_adjust 4 = 19;
	cr_amount_stat_adjust 4 = 10; // Quick Strike
	cr_start_item_chance 3 = 30; // Herbs
	cr_start_item_chance 4 = 30;
	cr_start_item_chance 5 = 30;
	cr_hp_bonus = 500;
	cr_natural_armor = 40;
	cr_immunities 0 = 100;
	cr_immunities 2 = 100;
	
begindefinecreature 239;
	import = 87;
begindefinecreature 87; // Vampire
	cr_level = 65;
	cr_what_stat_adjust 1 = 11;
	cr_amount_stat_adjust 1 = 25;
	cr_what_stat_adjust 2 = 25;
	cr_amount_stat_adjust 2 = 25;
	cr_what_stat_adjust 3 = 10;
	cr_amount_stat_adjust 3 = 25;
	cr_special_abil = 12;
	cr_natural_armor = 40;
	cr_immunities 0 = 100;
	cr_immunities 3 = 100;
	cr_summon_class = 8;
	cr_icon_adjust = 4;
	
begindefinecreature 239;
	import = 138;
begindefinecreature 138; // Specter
	cr_level = 54;
	cr_attack_1 = 7;
	cr_special_abil = 0;
	cr_natural_armor = 20;
	cr_default_strategy = 1;
	cr_start_item 0 = 97;
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 98;
	cr_start_item_chance 1 = 33;
	cr_start_item 2 = 106;
	cr_start_item_chance 2 = 100;
	cr_start_item 3 = 108;
	cr_start_item_chance 3 = 50;
	
begindefinecreature 239;
	import = 185;
begindefinecreature 185; // Spawned Fungus
	cr_level = 36;
	cr_attack_1 = 12;
	cr_attack_1_type = 3;
	cr_immunities 0 = 100;
	cr_summon_class = 9;
	cr_special_abil = 12; // melee acid

begindefinecreature 239;
	import = 64;
begindefinecreature 64; // Eye beast
	cr_level = 40;
	cr_what_stat_adjust 0 = 9;
	cr_amount_stat_adjust 0 = 2;
	cr_what_stat_adjust 1 = 11;
	cr_amount_stat_adjust 1 = 15;
	cr_what_stat_adjust 2 = 12;
	cr_amount_stat_adjust 2 = 15;
	cr_what_stat_adjust 3 = 26;
	cr_amount_stat_adjust 3 = 8;
	cr_hp_bonus = 11;
	cr_default_attitude = 4;
	cr_species = 6;
	cr_natural_armor = 2;
	cr_which_sheet = 1552;
	cr_attack_1 = 6;
	cr_attack_1_type = 7;
	cr_immunities 2 = 100;
	cr_immunities 4 = 50;
	cr_special_abil = 11; // paralysis ray
	
begindefinecreature 239;
	import = 90;
begindefinecreature 90; // Ur-Basilisk
	cr_level = 30;
	cr_hp_bonus = 30;
	cr_icon_adjust = 256;
	cr_attack_1 = 9;

// ********* add new creatures *********
begindefinecreature 107;
	import = 38;
	cr_name = "Green slith chief";
	cr_icon_adjust = 256;
// happy green with yellow frill

begindefinecreature 108;
	import = 38;
	cr_name = "Green slith chief";
	cr_icon_adjust = 384;
// lighter than s ch g

begindefinecreature 109;
	import = 38;
	cr_name = "Blue slith chief";
	cr_icon_adjust = 1;
//  blue frill

begindefinecreature 110;
	import = 38;
	cr_name = "Neon slith chief";
	cr_icon_adjust = 4;
// neon green frill

begindefinecreature 111;
	import = 61;
	cr_name = "Demon lord";
	cr_which_sheet = 1570;

begindefinecreature 112;
	import = 175;
	cr_name = "Philip";
	cr_which_sheet = 506;
	cr_small_or_large_template = 1;
	cr_default_attitude = 3;

begindefinecreature 113;
	import = 175;
	cr_name = "Melissa";
	cr_which_sheet = 508;
	cr_small_or_large_template = 1;
	cr_default_attitude = 3;

begindefinecreature 114;
	import = 105;
	cr_name = "Rosalia";
	cr_which_sheet = 505;
	cr_small_or_large_template = 1;
	cr_default_attitude = 3;

begindefinecreature 115;
	import = 105;
	cr_name = "Mycroft";
	cr_which_sheet = 507;
	cr_small_or_large_template = 1;
	cr_default_attitude = 3;

begindefinecreature 116;
	import = 101;
	cr_name = "Red dragon";
	cr_icon_adjust = 4;

begindefinecreature 117;
	import = 126;
	cr_default_script = "hunter";

begindefinecreature 118;
	import = 38;
	cr_name = "Slith ghost chief";
	cr_icon_adjust = 65;
	cr_default_attitude = 4;
	cr_species = 8;
	cr_level = 50;
	cr_hp_bonus = 200;
	cr_what_stat_adjust 0 = 11;
	cr_amount_stat_adjust 0 = 17;
	cr_what_stat_adjust 1 = 12;
	cr_amount_stat_adjust 1 = 17;
	cr_immunities 2 = 100;
	cr_immunities 4 = 100;
	cr_immunities 5 = 10;
	cr_start_item 5 = 460; // Magic plate armor
	cr_start_item_chance 4 = 30;
	cr_start_item 6 = 461; // Magic slith spear
	cr_start_item_chance 6 = 5;
// red ghost

begindefinecreature 119;
	clear;
	cr_name = "Wisp";
	cr_which_sheet = 511;
	cr_small_or_large_template = 0;
	cr_level = 40;
	cr_species = 10;			
	cr_hp_bonus = 1000;
	
begindefinecreature 146;
	clear;
	cr_name = "Skeleton Warrior";
	cr_level = 56;
	cr_hp_bonus = 300;
	cr_ap_bonus = 2;
	cr_natural_armor = 40;
	cr_start_item 0 = 203; // Ruby
	cr_start_item_chance 0 = 20;
	cr_start_item 1 = 206; // Amber
	cr_start_item_chance 1 = 10;
	cr_start_item 2 = 62; // Steel greatsword
	cr_start_item_chance 2 = 100;
	cr_default_attitude = 4;
	cr_species = 8;
	cr_which_sheet = 520;
	cr_immunities 0 = 100;
	cr_immunities 1 = 100;
	cr_immunities 4 = 100;
	
begindefinecreature 147;
	cr_name = "Skeleton Soldier";
	cr_level = 48;
	cr_ap_bonus = 0;
	cr_start_item 2 = 61; // Iron greatsword
	cr_natural_armor = 20;
	cr_which_sheet = 521;
	
begindefinecreature 148;
	import = 104;
	cr_name = "Necromancer";
	cr_which_sheet = 522;
	cr_default_attitude = 4;
	cr_species = 12;
	cr_what_stat_adjust 3 = 4;
	cr_amount_stat_adjust 3 = 12;
	// Diamond Dagger, Robe of the Magi, Nimble Band, and Freedom Charm
	cr_hp_bonus = 500;
	cr_immunities 3 = 100;
	
begindefinecreature 149;
	import = 146;
	cr_name = "Undead Lord";
	cr_which_sheet = 523;
	cr_level = 60;
	cr_start_item 2 = 63; // Blessed greatsword
	cr_immunities 0 = 100;
	cr_immunities 2 = 100;
	
begindefinecreature 150;
	clear;
	cr_name = "Lizard Rider";
	cr_level = 50;
	cr_which_sheet = 524;
	cr_ap_bonus = 8;
	cr_species = 5;
	cr_default_attitude = 3;
	
begindefinecreature 151;
	import = 149;
	cr_which_sheet = 525;
	cr_special_abil = 3; // Stoning ray
	
begindefinecreature 152;
	import = 146;
	cr_icon_adjust = 64;
	
begindefinecreature 153;
	clear;
	cr_name = "Demonlord";
	cr_level = 50;
	cr_hp_bonus = 300;
	cr_sp_bonus = 200;
	cr_special_abil = 12; // Melee attack covers target with acid
	cr_default_attitude = 4; // Hostile A
	cr_species = 7; //Demon
	cr_natural_armor = 15;
	cr_attack_1 = 8;
	cr_attack_1_type = 0; // Strike
	cr_attack_2 = 6;
	cr_attack_23_type = 1; // Claw
	cr_attack_3 = 6;
	cr_which_sheet = 527;
	cr_what_stat_adjust 0 = 0; // Strength
	cr_amount_stat_adjust 0 = 10;
	cr_what_stat_adjust 1 = 11; // Mage Spells
	cr_amount_stat_adjust 1 = 17;
	cr_what_stat_adjust 2 = 12; // Priest Spells
	cr_amount_stat_adjust 2 = 17;
	cr_what_stat_adjust 3 = 25; // Magery
	cr_amount_stat_adjust 3 = 8;
	cr_what_stat_adjust 4 = 4; // Melee Weapons
	cr_amount_stat_adjust 4 = 15;
	cr_start_item 0 = 239;
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 204;
	cr_start_item_chance 1 = 100;
	cr_immunities 0 = 100; // Fire
	cr_immunities 1 = 20; // Cold
	cr_immunities 3 = 100; // Mental
	cr_immunities 4 = 100; // Poison/acid
	
begindefinecreature 154;
	import = 38;
	cr_which_sheet = 519;
	
begindefinecreature 155;
	cr_which_sheet = 526;

begindefinecreature 179;
	import = 142;
	cr_level = 25;
	cr_name = "Fire slime";
	cr_immunities 0 = 100;
	cr_immunities 1 = 0;
	cr_special_abil = 17;
	cr_icon_adjust = 1;
	
begindefinecreature 200; // chitrachs
	import = 159;
	cr_name = "Ice chitrach";
	cr_icon_adjust = 513; // blue
	cr_special_abil = 27; // cold field
	cr_immunities 1 = 100;
	
begindefinecreature 201;
	cr_level = 40;
	cr_name = "Magic chitrach";
	cr_icon_adjust = 130; // bright pink-purple
	cr_special_abil = 32; // magic ray
	
begindefinecreature 202;
	cr_level = 35;
	cr_name = "Dark chitrach";
	cr_icon_adjust = 16; // dark
	cr_special_abil = 39; // blade field
	cr_immunities 1 = 0; // cold
	cr_immunities 5 = 100; // melee immune (for the blade field)
	
begindefinecreature 203;
	import = 201;
	cr_level = 43;
	cr_name = "Psychic chitrach";
	cr_icon_adjust = 256; // bright green
	cr_special_abil = 7; // charm ray

begindefinecreature 234;
	import = 156;
	cr_name = "Slith army";
	cr_which_sheet = 510;
	
begindefinecreature 237;
	import = 60;
	cr_name = "Winged Demon";
	cr_which_sheet = 518;

begindefinecreature 238;
	import = 36;
	cr_name = "Legare";
	cr_level = 25;
	cr_default_attitude = 3;
	cr_icon_adjust = 129;
	cr_what_stat_adjust 0 = 12;
	cr_amount_stat_adjust 0 = 18;
	cr_what_stat_adjust 1 = 25;
	cr_amount_stat_adjust 1 = 12;
	cr_which_sheet = 1532;
	cr_small_or_large_template = 1;

begindefinecreature 239;
	import = 100;
begindefinecreature 100;  // slith avatar
	cr_which_sheet = 1532;
	cr_level = 60;
	cr_species = 8;
	cr_hp_bonus = 200;
	cr_sp_bonus = 100;
	cr_what_stat_adjust 0 = 11;
	cr_amount_stat_adjust 0 = 20;
	cr_what_stat_adjust 1 = 12;
	cr_amount_stat_adjust 1 = 20;
	cr_what_stat_adjust 2 = 25;
	cr_amount_stat_adjust 2 = 15;
	cr_what_stat_adjust 3 = 10;
	cr_amount_stat_adjust 3 = 10;
	cr_ap_bonus = 2;
	cr_immunities 2 = 100;
	cr_immunities 4 = 100;
	cr_immunities 5 = 10;
	cr_natural_armor = 20;
	cr_icon_adjust = 2;

begindefinecreature 239;
	import = 52; // Fire lizard
begindefinecreature 52;
	cr_attack_1_type = 2; // because Fire Lizards strike when attacking
	cr_attack_23_type = 1;
	cr_level = 30;
	cr_summon_class = 4;
	cr_hp_bonus = 100;
	cr_immunities 3 = 90;

begindefinecreature 239;
	import = 141; // Ice lizard
begindefinecreature 141;
	cr_level = 35;
	cr_summon_class = 4;
	cr_hp_bonus = 150;
	cr_natural_armor = 10;

begindefinecreature 239;
	import = 58; // Drake
begindefinecreature 58;
	cr_level = 30;
	cr_what_stat_adjust 3 = 12; // priest spells
	cr_amount_stat_adjust 3 = 5;
	cr_hp_bonus = 150;
	cr_default_strategy = 1;
	cr_immunities 3 = 100;

begindefinecreature 239;
	import = 227; // Drake lord
begindefinecreature 227;

begindefinecreature 239;
	import = 126; // Mutant lizard
begindefinecreature 126;
	cr_hp_bonus = 300;

begindefinecreature 239;
	import = 58;
	cr_level = 35;
	cr_name = "Fire drake";
	cr_special_abil = 20;
	cr_amount_stat_adjust 0 = 0;
	cr_amount_stat_adjust 3 = 0;
	cr_hp_bonus = 400;
	cr_default_strategy = 0;
	cr_icon_adjust = 128;
	cr_immunities 0 = 100;
	cr_immunities 1 = 0;

begindefinecreature 180;
	import = 58;
	cr_start_item 0 = 233;
	cr_start_item_chance 0 = 50;
	cr_start_item 1 = 239;
	cr_start_item_chance 1 = 50;
	cr_default_strategy = 0;
	cr_natural_armor = 10;

begindefinecreature 181;
	import = 58;
	cr_what_stat_adjust 3 = 12; // priest spells
	cr_amount_stat_adjust 3 = 17;

begindefinecreature 235;
	import = 35;
	cr_name = "Ithik";
	cr_icon_adjust = 256;
	cr_level = 55;
	cr_what_stat_adjust 0 = 7; // Thrown missiles
	cr_amount_stat_adjust 0 = 9;
	cr_what_stat_adjust 1 = 10; // Assassination
	cr_amount_stat_adjust 1 = 12;
	cr_what_stat_adjust 2 = 20; // Parry
	cr_amount_stat_adjust 2 = 15;
	cr_what_stat_adjust 3 = 29; // Riposte
	cr_amount_stat_adjust 3 = 8;
	cr_start_item 0 = 78; // Blessed halberd
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 225; // Haste potion
	cr_start_item_chance 1 = 100;
	cr_start_item 2 = 87; // Steel javelin
	cr_start_item_chance 2 = 100;
	cr_start_item 3 = 86; // Iron javelin
	cr_start_item_chance 3 = 100;
	cr_start_item 4 = 0;
	cr_start_item 5 = 0;
	cr_start_item 6 = 0;
	cr_start_item 7 = 0;
	cr_natural_armor = 20;
	cr_immunities 0 = 25;
	cr_immunities 1 = 75;
	cr_immunities 3 = 50;
	cr_immunities 4 = 100;
	cr_summon_class = 4;

begindefinecreature 236;
	import = 101;
	cr_name = "Galthrax";
	cr_level = 99;
	cr_species = 12;
	cr_natural_armor = 75;
	cr_attack_1 = 9;
	cr_attack_2 = 7;
	cr_attack_3 = 7;
	cr_immunities 0 = 100;
	cr_immunities 1 = 100;
	cr_immunities 2 = 100;
	cr_immunities 3 = 100;
	cr_immunities 4 = 100;
	cr_icon_adjust = 5;
	
begindefinecreature 240;
	import = 34;
	cr_name = "Slith ghost";
	cr_icon_adjust = 66;
	cr_default_attitude = 4;
	cr_level = 35;
	cr_hp_bonus = 50;
	cr_special_abil = 21;
	cr_species = 8;
	cr_immunities 1 = 100;
	cr_immunities 2 = 25;
	cr_start_item_chance 3 = 100;
	cr_start_item_chance 4 = 50;
	cr_start_item 6 = 87;
	cr_natural_armor = 15;
	cr_summon_class = 50;
// green

begindefinecreature 241;
	import = 34;
	cr_name = "Red slith";
	cr_icon_adjust = 128;

begindefinecreature 242;
	import = 34;
	cr_name = "Blue slith";
	cr_icon_adjust = 1;

begindefinecreature 243;
	import = 34;
	cr_name = "Green slith";
	cr_icon_adjust = 256;

begindefinecreature 244;
	import = 34;
	cr_name = "Dark green slith";
	cr_icon_adjust = 4;

begindefinecreature 245;
	import = 35;
	cr_name = "Green slith warrior";
	cr_icon_adjust = 256;

begindefinecreature 246;
	import = 35;
	cr_name = "Dark slith warrior";
	cr_icon_adjust = 4;

begindefinecreature 247;
	import = 35;
	cr_name = "Blue slith warrior";
	cr_icon_adjust = 1;

begindefinecreature 248;
	import = 35;
	cr_name = "Red slith warrior";
	cr_icon_adjust = 128;

begindefinecreature 249;
	import = 35;
	cr_name = "Slith ghost warrior";
	cr_icon_adjust = 68;
	cr_default_attitude = 4;
	cr_level = 40;
	cr_hp_bonus = 100;
	cr_special_abil = 10;
	cr_species = 8;
	cr_immunities 1 = 100;
	cr_immunities 2 = 25;
	cr_start_item 0 = 371;
	cr_start_item 1 = 461;
	cr_start_item_chance 1 = 5;
	cr_start_item 2 = 272;
	cr_start_item 4 = 143;
	cr_start_item_chance 5 = 20;
	cr_start_item 6 = 268;
	cr_start_item_chance 6 = 30;
	cr_start_item 7 = 87;
	cr_ap_bonus = 2;
	cr_natural_armor = 25;
	cr_summon_class = 50;
// purple

begindefinecreature 250;
	import = 36;
	cr_name = "Green slith priest";
	cr_icon_adjust = 256;

begindefinecreature 251;
	import = 36;
	cr_name = "Dark slith priest";
	cr_icon_adjust = 4;

begindefinecreature 252;
	import = 36;
	cr_name = "Blue slith priest";
	cr_icon_adjust = 1;

begindefinecreature 253;
	import = 36;
	cr_name = "Red slith priest";
	cr_icon_adjust = 128;

begindefinecreature 254;
	import = 36;
	cr_name = "Slith priest ghost";
	cr_icon_adjust = 64;
	cr_default_attitude = 4;
	cr_level = 45;
	cr_species = 8;
	cr_hp_bonus = 50;
	cr_sp_bonus = 50;
	cr_immunities 1 = 100;
	cr_immunities 2 = 75;
	cr_start_item_chance 2 = 30;
	cr_start_item 3 = 279;
	cr_start_item_chance 3 = 25;
	cr_start_item_chance 4 = 25;
	cr_start_item_chance 5 = 20;
	cr_start_item 6 = 223;
	cr_start_item_chance 6 = 10;
	cr_amount_stat_adjust 0 = 17;
	cr_amount_stat_adjust 1 = 15;

begindefinecreature 255;
	clear;
	cr_name = "Phaedra";
	cr_which_sheet = 504;
	cr_level = 50;
	cr_hp_bonus = 200;
	cr_sp_bonus = 400;
	cr_ap_bonus = 2;
	cr_small_or_large_template = 1;
	cr_natural_armor = 20;
	cr_what_stat_adjust 0 = 4; // Melee weapons
	cr_amount_stat_adjust 0 = 9;
	cr_what_stat_adjust 1 = 3; // Endurance
	cr_amount_stat_adjust 1 = 7;
	cr_what_stat_adjust 2 = 19; // Quick Strike
	cr_amount_stat_adjust 2 = 10;
	cr_what_stat_adjust 3 = 10; // Assassination
	cr_amount_stat_adjust 3 = 15;
	cr_what_stat_adjust 4 = 20; // Parry
	cr_amount_stat_adjust 4 = 12;
	cr_what_stat_adjust 5 = 29; // Riposte
	cr_amount_stat_adjust 5 = 10;
	cr_start_item 0 = 63; // Blessed Greatsword
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 451; // Phaedra
	cr_start_item_chance 1 = 100;
	cr_immunities 0 = 25;
	cr_immunities 1 = 25;
	cr_immunities 2 = 10;
	cr_immunities 3 = 75;
	cr_immunities 4 = 40;