// Exodus Custom Objects Script
//
// Developed from Custom Objects Script Base v1.0.1
// 
// A general commment: this looks like an insane mess if you don't know what's
// going on. Basically, I've taken the Custom Objects Script Base and grafted on
// a set of additional modifications specific to this scenario. Within the Base
// and within the Exodus objects, the order always goes modifications on the
// default first, then new objects. Also, I've clustered object types together,
// in the order: floors, terrains, creatures, items. Additionally, items are a
// bit more complicated.
// 
// In other words, the order is this:
// Floors
//		Base
//			Default Modifications
//			New objects
//		Exodus
//			Default Modifications
//			New objects
// Terrains
//		Base
//			Default Modifications
//			New objects
//		Exodus
//			Default Modifications
//			New objects
// Creatures
//		Base
//			Default Modifications
//			New objects
//		Exodus
//			Default Modifications
//			New objects
// Items
//		Base
//			Default Modifications
//			New objects (altered)
//		Exodus
//			Default Modifications
//			Default Replacements
//			New objects
//
// It's not really as insane as it sounds.

beginscendatascript;

// ******************************** FLOOR TYPES ********************************
// FIX DEFAULT FLOORS
begindefinefloor 132;
	import = 100;
begindefinefloor 100;
	fl_ed_icon_adjust = 256;

// ADD NEW FLOORS

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_anim_steps = 4;
	fl_special_property = 2;
	
begindefinefloor 133;
	import = 81;
	fl_which_sheet = 705;
	fl_which_icon = 9;
	fl_ed_which_sheet = 680;
	fl_ed_which_icon = 59;
	
begindefinefloor 134;
	import = 117;
	fl_which_sheet = 707;
	fl_which_icon = 4;
	fl_ed_which_sheet = 680;
	fl_ed_which_icon = 74;
	
begindefinefloor 135;
	import = 117;
	fl_which_sheet = 709;
	fl_which_icon = 1;
	fl_ed_which_sheet = 680;
	fl_ed_which_icon = 91;
	
begindefinefloor 136;
	import = 73;
	fl_name = "Grass";
	fl_which_sheet = 751;
	fl_which_icon = 5;
	fl_ed_which_sheet = 684;
	fl_ed_which_icon = 15;
	
begindefinefloor 137;
	import = 77;
	fl_which_sheet = 751;
	fl_which_icon = 6;
	fl_ed_which_sheet = 684;
	fl_ed_which_icon = 16;
	
begindefinefloor 138;
	import = 95;
	fl_which_sheet = 751;
	fl_which_icon = 7;
	fl_ed_which_sheet = 684;
	fl_ed_which_icon = 17;
	
begindefinefloor 139;
	import = 81;
	fl_which_sheet = 759;
	fl_which_icon = 8;
	fl_ed_which_sheet = 684;
	fl_ed_which_icon = 98;
	
begindefinefloor 140;
	import = 81;
	fl_which_sheet = 759;
	fl_which_icon = 9;
	fl_ed_which_sheet = 684;
	fl_ed_which_icon = 99;
	
begindefinefloor 141;
	import = 100;
	fl_which_sheet = 761;
	fl_which_icon = 4;
	fl_ed_which_sheet = 686;
	fl_ed_which_icon = 14;
	
begindefinefloor 142;
	fl_which_icon = 5;
	fl_ed_which_icon = 15;
	fl_anim_steps = 4;
	
begindefinefloor 143;
	import = 100;
	fl_which_sheet = 761;
	fl_which_icon = 9;
	fl_ed_which_sheet = 686;
	fl_ed_which_icon = 19;
	
// END BASE

// Alter default terrains
begindefinefloor 144;
	import = 79;
begindefinefloor 79;
	fl_special_strength = 400;
	
begindefinefloor 144;
	import = 80;
begindefinefloor 80;
	fl_out_fight_town_used = 59;
	
// New floors

begindefinefloor 92;
	import = 79;
	fl_special_property = 0;
	fl_blocked = 1;

// Letter floors
begindefinefloor 144;
	import = 0;
	fl_name = "Blank";
	fl_which_sheet = 501;
	fl_which_icon = 0;
	fl_ed_which_sheet = 503;
	fl_ed_which_icon = 0;
	
begindefinefloor 145;
	fl_name = "A";
	fl_which_icon = 1;
	fl_ed_which_icon = 1;
	
begindefinefloor 146;
	fl_name = "B";
	fl_which_icon = 2;
	fl_ed_which_icon = 2;
	
begindefinefloor 147;
	fl_name = "C";
	fl_which_icon = 3;
	fl_ed_which_icon = 3;
	
begindefinefloor 148;
	fl_name = "D";
	fl_which_icon = 4;
	fl_ed_which_icon = 4;
	
begindefinefloor 149;
	fl_name = "E";
	fl_which_icon = 5;
	fl_ed_which_icon = 5;
	
begindefinefloor 150;
	fl_name = "F";
	fl_which_icon = 6;
	fl_ed_which_icon = 6;
	
begindefinefloor 151;
	fl_name = "G";
	fl_which_icon = 7;
	fl_ed_which_icon = 7;
	
begindefinefloor 152;
	fl_name = "H";
	fl_which_icon = 8;
	fl_ed_which_icon = 8;
	
begindefinefloor 153;
	fl_name = "I";
	fl_which_icon = 9;
	fl_ed_which_icon = 9;
	
begindefinefloor 154;
	fl_name = "J";
	fl_which_icon = 10;
	fl_ed_which_icon = 10;
	
begindefinefloor 155;
	fl_name = "K";
	fl_which_icon = 11;
	fl_ed_which_icon = 11;
	
begindefinefloor 156;
	fl_name = "L";
	fl_which_icon = 12;
	fl_ed_which_icon = 12;
	
begindefinefloor 157;
	fl_name = "M";
	fl_which_icon = 13;
	fl_ed_which_icon = 13;
	
begindefinefloor 158;
	fl_name = "N";
	fl_which_icon = 14;
	fl_ed_which_icon = 14;
	
begindefinefloor 159;
	fl_name = "O";
	fl_which_icon = 15;
	fl_ed_which_icon = 15;
	
begindefinefloor 160;
	fl_name = "P";
	fl_which_icon = 16;
	fl_ed_which_icon = 16;
	
begindefinefloor 161;
	fl_name = "Q";
	fl_which_icon = 17;
	fl_ed_which_icon = 17;
	
begindefinefloor 162;
	fl_name = "R";
	fl_which_icon = 18;
	fl_ed_which_icon = 18;
	
begindefinefloor 163;
	fl_name = "S";
	fl_which_icon = 19;
	fl_ed_which_icon = 19;
	
begindefinefloor 164;
	fl_name = "T";
	fl_which_icon = 20;
	fl_ed_which_icon = 20;
	
begindefinefloor 165;
	fl_name = "U";
	fl_which_icon = 21;
	fl_ed_which_icon = 21;
	
begindefinefloor 166;
	fl_name = "V";
	fl_which_icon = 22;
	fl_ed_which_icon = 22;
	
begindefinefloor 167;
	fl_name = "W";
	fl_which_icon = 23;
	fl_ed_which_icon = 23;
	
begindefinefloor 168;
	fl_name = "X";
	fl_which_icon = 24;
	fl_ed_which_icon = 24;
	
begindefinefloor 169;
	fl_name = "Y";
	fl_which_icon = 25;
	fl_ed_which_icon = 25;
	
begindefinefloor 170;
	fl_name = "Z";
	fl_which_icon = 26;
	fl_ed_which_icon = 26;
	
begindefinefloor 171;
	fl_name = "?";
	fl_which_icon = 27;
	fl_ed_which_icon = 27;
	
begindefinefloor 172;
	import = 0;
	fl_name = "Dark Ground";
	fl_which_sheet = 501;
	fl_which_icon = 28;
	fl_ed_which_sheet = 502;
	fl_ed_which_icon = 2;
begindefinefloor 173;
	fl_which_icon = 29;
	fl_ed_which_icon = 3;
	
begindefinefloor 174;
	import = 0;
	fl_which_sheet = 500;
	fl_which_icon = 51;
	fl_ed_which_sheet = 502;
	fl_ed_which_icon = 0;
begindefinefloor 175;
	fl_which_icon = 52;
	fl_ed_which_icon = 1;
	
begindefinefloor 176;
	import = 140;
	fl_icon_adjust = 131;
	fl_ed_which_sheet = 503;
	fl_ed_which_icon = 28;
	
begindefinefloor 177;
	import = 139;
	fl_icon_adjust = 131;
	fl_ed_which_sheet = 503;
	fl_ed_which_icon = 29;
	
begindefinefloor 178;
	import = 174;
	fl_icon_adjust = 1;
	fl_ed_which_icon = 66;
	
begindefinefloor 179;
	import = 174;
	fl_icon_adjust = 2;
	fl_ed_which_icon = 67;
	
begindefinefloor 180;
	import = 174;
	fl_icon_adjust = 3;
	fl_ed_which_icon = 68;
	
begindefinefloor 181;
	import = 174;
	fl_icon_adjust = 64;
	fl_ed_which_icon = 69;
	
begindefinefloor 182;
	import = 37;
	fl_which_sheet = 500;
	fl_which_icon = 64;
	fl_ed_which_sheet = 502;
	fl_ed_which_icon = 61;
	
begindefinefloor 183;
	import = 100;
	fl_icon_adjust = 2;
	
begindefinefloor 184;
	import = 141;
	fl_icon_adjust = 512;
	
begindefinefloor 185;
	import = 41;
	fl_which_sheet = 500;
	fl_which_icon = 65;
	fl_ed_which_sheet = 502;
	fl_ed_which_icon = 75;
	
begindefinefloor 186;
	fl_which_icon = 66;
	fl_ed_which_icon = 76;
	
begindefinefloor 187;
	fl_which_icon = 67;
	fl_ed_which_icon = 77;
	
begindefinefloor 188;
	import = 37;
	fl_which_sheet = 500;
	fl_which_icon = 69;
	fl_ed_which_sheet = 502;
	fl_ed_which_icon = 79;

// ******************************* TERRAIN TYPES *******************************
// FIX OLD TERRAINS or something
begindefineterrain 422;
	import = 396;
begindefineterrain 396;
	te_swap_terrain = 456;
	
begindefineterrain 397;
	import = 147;
	te_name = "Tree";
	te_which_sheet = 787;
	te_which_icon = 1;
	te_second_icon = 2;
	te_ed_which_sheet = 688;
	te_ed_which_icon = 78;
	te_second_icon_offset_y = -55;
	
// ADD NEW ONES

begindefineterrain 288; // mushroom container
	import = 143;
	te_special_property = 40;

begindefineterrain 422;
	import = 125;
	te_which_sheet = 703;
	te_which_icon = 8;
	te_ed_which_sheet = 680;
	te_ed_which_icon = 38;
	
begindefineterrain 423;
	import = 96;
	te_which_sheet = 707;
	te_which_icon = 9;
	
begindefineterrain 424;
	import = 355;
	te_which_sheet = 709;
	te_which_icon = 9;
	te_ed_which_sheet = 680;
	te_ed_which_icon = 99;
	
begindefineterrain 425;
	import = 125;
	te_which_sheet = 717;
	te_which_icon = 7;
	te_ed_which_sheet = 681;
	te_ed_which_icon = 77;
	
begindefineterrain 426;
	import = 141;
	te_name = "Grave";
	te_which_sheet = 720;
	te_which_icon = 2;
	te_ed_which_sheet = 682;
	te_ed_which_icon = 92;
	
begindefineterrain 427;
	te_which_sheet = 720;
	te_which_icon = 3;
	te_ed_which_sheet = 682;
	te_ed_which_icon = 93;
	
begindefineterrain 428;
	import = 280;
	te_name = "Cross";
	te_which_sheet = 720;
	te_which_icon = 4;
	te_ed_which_sheet = 682;
	te_ed_which_icon = 94;
	
begindefineterrain 429;
	import = 280;
	te_which_sheet = 720;
	te_which_icon = 5;
	te_ed_which_sheet = 682;
	te_ed_which_icon = 95;
	
begindefineterrain 430;
	import = 125;
	te_name = "Keg";
	te_which_sheet = 720;
	te_which_icon = 6;
	te_ed_which_sheet = 682;
	te_ed_which_icon = 96;
	
begindefineterrain 431;
	te_which_sheet = 720;
	te_which_icon = 7;
	te_ed_which_sheet = 682;
	te_ed_which_icon = 97;
	
begindefineterrain 432;
	te_name = "Unlit Bonfire";
	te_which_sheet = 722;
	te_which_icon = 5;
	te_ed_which_sheet = 682;
	te_ed_which_icon = 25;
	
begindefineterrain 433;
	import = 282;
	te_which_sheet = 726;
	te_which_icon = 7;
	te_ed_which_sheet = 682;
	te_ed_which_icon = 67;
	
begindefineterrain 434;
	import = 219;
	te_which_sheet = 727;
	te_which_icon = 9;
	te_ed_which_sheet = 682;
	te_ed_which_icon = 79;
	
begindefineterrain 435;
	import = 261;
	te_which_sheet = 728;
	te_which_icon = 1;
	te_ed_which_sheet = 682;
	te_ed_which_icon = 81;
	
begindefineterrain 436;
	import = 125;
	te_name = "Pillar";
	te_which_sheet = 728;
	te_which_icon = 6;
	te_ed_which_sheet = 682;
	te_ed_which_icon = 86;
	
begindefineterrain 437;
	import = 141;
	te_name = "Mine";
	te_which_sheet = 730;
	te_which_icon = 0;
	te_ed_which_sheet = 687;
	te_ed_which_icon = 10;
	te_swap_terrain = 438;
	te_default_script = "trap";
	
begindefineterrain 438;
	import = 141;
	te_name = "Destroyed Mine";
	te_which_sheet = 730;
	te_which_icon = 1;
	te_ed_which_sheet = 687;
	te_ed_which_icon = 11;
	
begindefineterrain 439;
	import = 437;
	te_which_sheet = 731;
	te_which_icon = 0;
	te_anim_steps = 3;
	te_ed_which_sheet = 687;
	te_ed_which_icon = 12;
	te_swap_terrain = 440;
	
begindefineterrain 440;
	import = 438;
	te_which_sheet = 731;
	te_which_icon = 3;
	te_ed_which_sheet = 687;
	te_ed_which_icon = 13;
	
begindefineterrain 441;
	import = 267;
	te_name = "Light";
	te_which_sheet = 732;
	te_which_icon = 0;
	te_ed_which_sheet = 687;
	te_ed_which_icon = 14;
	te_anim_steps = 3;
	
begindefineterrain 442;
	te_which_sheet = 732;
	te_which_icon = 3;
	te_ed_which_sheet = 687;
	te_ed_which_icon = 15;
	
begindefineterrain 443;
	import = 298;
	te_which_sheet = 742;
	te_which_icon = 8;
	te_ed_which_sheet = 683;
	te_ed_which_icon = 28;
	
begindefineterrain 444;
	import = 125;
	te_name = "Pole";
	te_which_sheet = 743;
	te_which_icon = 7;
	te_ed_which_sheet = 683;
	te_ed_which_icon = 37;
	
begindefineterrain 445;
	import = 293;
	te_name = "Slope";
	te_which_sheet = 744;
	te_which_icon = 5;
	
begindefineterrain 446;
	import = 294;
	te_name = "Slope";
	te_which_sheet = 744;
	te_which_icon = 6;
	
begindefineterrain 447;
	import = 295;
	te_name = "Slope";
	te_which_sheet = 744;
	te_which_icon = 7;
	
begindefineterrain 448;
	import = 296;
	te_name = "Slope";
	te_which_sheet = 744;
	te_which_icon = 8;
	
begindefineterrain 449;
	import = 219;
	te_which_sheet = 757;
	te_which_icon = 9;
	te_ed_which_sheet = 684;
	te_ed_which_icon = 79;
	
begindefineterrain 450;
	te_which_sheet = 759;
	te_which_icon = 6;
	te_ed_which_sheet = 684;
	te_ed_which_icon = 96;
	
begindefineterrain 451;
	te_which_sheet = 759;
	te_which_icon = 7;
	te_ed_which_sheet = 684;
	te_ed_which_icon = 97;
	
begindefineterrain 452;
	import = 304;
	te_name = "Building";
	te_which_sheet = 762;
	te_which_icon = 0;
	te_ed_which_sheet = 686;
	te_ed_which_icon = 20;
	
begindefineterrain 453;
	import = 125;
	te_name = "Field";
	te_which_sheet = 764;
	te_which_icon = 0;
	te_ed_which_sheet = 686;
	te_ed_which_icon = 42;
	te_anim_steps = 4;
	
begindefineterrain 454;
	import = 450;
	te_which_sheet = 768;
	te_which_icon = 2;
	te_ed_which_sheet = 686;
	te_ed_which_icon = 82;
	
begindefineterrain 455;
	import = 368;
	te_which_sheet = 769;
	te_which_icon = 3;
	te_ed_which_sheet = 686;
	te_ed_which_icon = 93;
	
begindefineterrain 456;
	import = 204;
	te_which_sheet = 786;
	te_which_icon = 6;
	te_ed_which_sheet = 688;
	te_ed_which_icon = 66;
	
begindefineterrain 457;
	te_which_sheet = 786;
	te_which_icon = 7;
	te_ed_which_sheet = 688;
	te_ed_which_icon = 67;
	
begindefineterrain 458;
	clear;
	te_name = "Found Supply Cache";
	te_which_sheet = 787;
	te_which_icon = 0;
	te_ed_which_sheet = 688;
	te_ed_which_icon = 70;
	te_swap_terrain = 396;
	
begindefineterrain 459;
	import = 450;
	te_which_sheet = 789;
	te_which_icon = 2;
	te_ed_which_sheet = 688;
	te_ed_which_icon = 92;
	
begindefineterrain 460;
	import = 405;
	te_which_sheet = 796;
	te_which_icon = 8;
	te_ed_which_sheet = 689;
	te_ed_which_icon = 68;
	
// END BASE TERRAINS
// Alter default terrains
begindefineterrain 461;
	import = 172;
begindefineterrain 172;
	te_name = "Fence";
	te_draw_on_automap = 1;
	
begindefineterrain 461;
	import = 173;
begindefineterrain 173;
	te_name = "Fence";
	te_draw_on_automap = 1;

begindefineterrain 461;
	import = 272;
begindefineterrain 272;
	te_default_script = "dummy";
	
begindefineterrain 461;
	import = 301;
begindefineterrain 301;
	te_out_fight_town_used = -1;
	
begindefineterrain 461;
	import = 374;
begindefineterrain 374;
	te_default_script = "dummy";
	
begindefineterrain 461;
	import = 375;
begindefineterrain 375;
	te_default_script = "dummy";
	
begindefineterrain 461;
	import = 405;
begindefineterrain 405;
	te_full_move_block = 1;

// New terrains
	
begindefineterrain 122;
	import = 106;
	te_which_sheet = 500;
	te_which_icon = 53;
	
begindefineterrain 123;
	import = 110;
	te_which_sheet = 500;
	te_which_icon = 54;
	
begindefineterrain 124;
	import = 112;
	te_which_sheet = 500;
	te_which_icon = 55;
	
begindefineterrain 175;
	import = 149;
	te_name = "Ruined Boat";
	te_which_sheet = 500;
	te_which_icon = 56;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 4;
	
begindefineterrain 176;
	import = 141;
	te_which_sheet = 500;
	te_which_icon = 57;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 5;
begindefineterrain 177;
	te_which_icon = 58;
	te_ed_which_icon = 6;
	
begindefineterrain 271;
	import = 270;
	te_icon_adjust = 2;
	
begindefineterrain 287;
	import = 276;
	te_icon_adjust = 4;
	
begindefineterrain 297;
	import = 300;
	te_name = "Boat";
	te_which_sheet = 742;
	te_which_icon = 0;
	te_ed_which_sheet = 683;
	te_ed_which_icon = 20;
	
begindefineterrain 340;
	import = 335;
	te_icon_adjust = 1;
	
begindefineterrain 359;
	import = 405;
	te_name = "Abandoned Camp";
	te_which_sheet = 500;
	te_which_icon = 59;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 7;
	
begindefineterrain 461;
	import = 180;
	te_name = "Painting";
	te_which_sheet = 500;
	te_which_icon = 0;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 10;
	
begindefineterrain 462;
	import = 181;
	te_name = "Painting";
	te_which_sheet = 500;
	te_which_icon = 1;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 11;
	
begindefineterrain 463;
	import = 461;
	te_which_icon = 2;
	te_ed_which_icon = 12;
	
begindefineterrain 464;
	import = 462;
	te_which_icon = 3;
	te_ed_which_icon = 13;
	
begindefineterrain 465;
	import = 461;
	te_which_icon = 4;
	te_ed_which_icon = 14;
	
begindefineterrain 466;
	import = 462;
	te_which_icon = 5;
	te_ed_which_icon = 15;
	
begindefineterrain 467;
	import = 461;
	te_which_icon = 6;
	te_ed_which_icon = 16;
	
begindefineterrain 468;
	import = 462;
	te_which_icon = 7;
	te_ed_which_icon = 17;
	
begindefineterrain 469;
	import = 461;
	te_which_icon = 8;
	te_ed_which_icon = 18;
	
begindefineterrain 470;
	import = 462;
	te_which_icon = 9;
	te_ed_which_icon = 19;
	
begindefineterrain 471;
	import = 461;
	te_which_icon = 10;
	
begindefineterrain 472;
	import = 462;
	te_which_icon = 11;
	
begindefineterrain 473;
	import = 232;
	te_name = "Robed Statue";
	te_which_sheet = 500;
	te_which_icon = 15;
	te_second_icon = 14;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 22;
begindefineterrain 474;
	te_which_icon = 13;
	te_second_icon = 12;
	te_ed_which_icon = 23;
begindefineterrain 475;
	te_name = "Armored Statue";
	te_which_icon = 18;
	te_second_icon = 19;
	te_ed_which_icon = 24;
begindefineterrain 476;
	te_which_icon = 16;
	te_second_icon = 17;
	te_ed_which_icon = 25;
	
begindefineterrain 477;
	import = 180;
	te_which_sheet = 500;
	te_which_icon = 24;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 34;
	
begindefineterrain 478;
	import = 181;
	te_which_sheet = 500;
	te_which_icon = 25;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 35;
	
begindefineterrain 479;
	import = 178;
	te_which_sheet = 500;
	te_which_icon = 26;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 36;
	
begindefineterrain 480;
	import = 179;
	te_which_sheet = 500;
	te_which_icon = 27;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 37;
	
begindefineterrain 481;
	import = 204;
	te_name = "Bubbly tube";
	te_which_sheet = 500;
	te_which_icon = 30;
	te_anim_steps = 5;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 40;

begindefineterrain 482;
	import = 204;
	te_name = "Machinery";
	te_which_sheet = 500;
	te_which_icon = 28;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 38;
begindefineterrain 483;
	te_which_icon = 29;
	te_ed_which_icon = 39;
begindefineterrain 484;
	te_which_icon = 35;
	te_ed_which_icon = 41;
begindefineterrain 485;
	te_which_icon = 36;
	te_ed_which_icon = 42;
begindefineterrain 486;
	te_which_icon = 37;
	te_ed_which_icon = 43;
begindefineterrain 487;
	te_name = "Blue light";
	te_which_icon = 38;
	te_ed_which_icon = 44;
begindefineterrain 488;
	te_name = "Pillar";
	te_which_icon = 39;
	te_ed_which_icon = 45;
begindefineterrain 489;
	te_name = "Cage";
	te_which_icon = 49;
	te_ed_which_icon = 54;
begindefineterrain 490;
	te_name = "Basin";
	te_which_icon = 48;
	te_ed_which_icon = 53;
	
begindefineterrain 491;
	import = 204;
	te_name = "Lightning Pillar";
	te_which_sheet = 500;
	te_which_icon = 40;
	te_anim_steps = 3;
	te_light_radius = 7;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 50;
begindefineterrain 492 ;
	te_name = "Lightning Pillar";
	te_which_icon = 44;
	te_ed_which_icon = 51;

begindefineterrain 493;
	import = 300;
	te_name = "Stalagmite";
	te_which_sheet = 500;
	te_which_icon = 50;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 60;

begindefineterrain 494;
	import = 285;
	te_name = "Dark pool";
	te_ed_which_sheet = 502;
	te_ed_which_icon = 80;
	te_icon_adjust = 64;

begindefineterrain 495;
	import = 285;
	te_name = "Purple pool";
	te_icon_adjust = 4;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 81;

begindefineterrain 496;
	import = 285;
	te_name = "Yellow pool";
	te_icon_adjust = 1;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 82;

begindefineterrain 497;
	import = 285;
	te_name = "Blue pool";
	te_icon_adjust = 512;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 83;

begindefineterrain 498;
	import = 285;
	te_name = "Pool";
	te_icon_adjust = 256;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 84;

begindefineterrain 499;
	import = 285;
	te_name = "Pink pool";
	te_icon_adjust = 128;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 81;

begindefineterrain 500;
	import = 285;
	te_name = "Gray pool";
	te_icon_adjust = 513;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 82;

begindefineterrain 501;
	import = 285;
	te_name = "Pool";
	te_ed_which_sheet = 502;
	te_ed_which_icon = 87;
	te_icon_adjust = 136;
	
begindefineterrain 502;
	import = 477;
	te_which_icon = 20;
	te_ed_which_icon = 30;
	
begindefineterrain 503;
	import = 478;
	te_which_icon = 21;
	te_ed_which_icon = 31;
	
begindefineterrain 504;
	import = 479;
	te_which_icon = 22;
	te_ed_which_icon = 32;
	
begindefineterrain 505;
	import = 480;
	te_which_icon = 23;
	te_ed_which_icon = 33;
	
begindefineterrain 506; // dark hills
	import = 106;
	te_which_sheet = 501;
	te_which_icon = 30;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 55;
	
begindefineterrain 507;
	import = 107;
	te_which_sheet = 501;
	te_which_icon = 31;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 56;
	
begindefineterrain 508;
	import = 108;
	te_which_sheet = 501;
	te_which_icon = 32;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 57;
	
begindefineterrain 509;
	import = 109;
	te_which_sheet = 501;
	te_which_icon = 33;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 58;
	
begindefineterrain 510;
	import = 110;
	te_which_sheet = 501;
	te_which_icon = 34;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 59;
	
// More dark terrain, which is out of order, but I wanted it all together
	
begindefineterrain 377;
	import = 112;
	te_which_sheet = 501;
	te_which_icon = 36;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 91;
	
begindefineterrain 378;
	import = 113;
	te_which_sheet = 501;
	te_which_icon = 37;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 92;
	
begindefineterrain 379;
	import = 114;
	te_which_sheet = 501;
	te_which_icon = 38;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 93;
	
begindefineterrain 390;
	import = 116;
	te_which_sheet = 501;
	te_which_icon = 40;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 95;
	
begindefineterrain 391;
	import = 117;
	te_which_sheet = 501;
	te_which_icon = 41;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 96;
	
begindefineterrain 392;
	import = 118;
	te_which_sheet = 501;
	te_which_icon = 42;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 46;
	
begindefineterrain 393;
	import = 119;
	te_which_sheet = 501;
	te_which_icon = 43;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 47;
	
begindefineterrain 394;
	import = 120;
	te_which_sheet = 501;
	te_which_icon = 44;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 48;
	
begindefineterrain 358;
	import = 121;
	te_which_sheet = 501;
	te_which_icon = 45;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 49;
	
begindefineterrain 407;
	import = 331;
	te_which_sheet = 501;
	te_which_icon = 46;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 97;
	
begindefineterrain 408;
	import = 332;
	te_which_sheet = 501;
	te_which_icon = 47;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 98;
	
begindefineterrain 409;
	import = 333;
	te_which_sheet = 501;
	te_which_icon = 48;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 97;
	
begindefineterrain 421;
	import = 111;
	te_which_sheet = 501;
	te_which_icon = 35;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 90;
	
// A few out of order so that they don't import wrongly.
begindefineterrain 178;
	import = 167;
	te_name = "Barrel";
	te_which_sheet = 500;
	te_which_icon = 70;
	te_ed_which_sheet = 502;
	te_ed_which_icon = 7;
begindefineterrain 179;
	te_name = "Leaky Barrel";
	te_which_icon = 71;
	te_ed_which_icon = 8;
	
// ****************************** CREATURE TYPES ******************************
// FIX OLD CREATURES
begindefinecreature 234;
	import = 100;
begindefinecreature 100;  // slith avatar w/ Bahs stats
	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 234;
	import = 135;
begindefinecreature 135;
	cr_which_sheet_upper = 1618;
	
begindefinecreature 234;
	import = 157;
begindefinecreature 157;
	cr_name = "Crystal Soul";
	
// ADD NEW ONES

begindefinecreature 234;
	clear;
	cr_name = "Slime Pool";
	cr_which_sheet = 1533;
	cr_level = 30;
	cr_species = 10;

begindefinecreature 235;
	import = 83;
	cr_level = 99;
	cr_name = "Spider Queen";
	cr_which_sheet = 1568;
	cr_amount_stat_adjust 0 = 40; // magery
	cr_amount_stat_adjust 1 = 20; // priest spells
	cr_amount_stat_adjust 2 = 20; // mage spells
	cr_what_stat_adjust 3 = 26;
	cr_amount_stat_adjust 3 = 0;
	cr_what_stat_adjust 4 = 10;
	cr_amount_stat_adjust 4 = 8;
	cr_start_item 0 = 373;
	cr_start_item_chance 0 = 100;
	cr_attack_1 = 4;
	cr_immunities 0 = 50;
	cr_immunities 1 = 50;
	cr_immunities 2 = 30;
	cr_immunities 3 = 40;
	cr_immunities 5 = 40;
	cr_default_strategy = 1;

begindefinecreature 236;
	import = 61;
	cr_level = 90;
	cr_name = "Demon Lord";
	cr_which_sheet = 1570;
	cr_hp_bonus = 1000;
	cr_amount_stat_adjust 0 = 25;
	cr_amount_stat_adjust 1 = 25;
	cr_amount_stat_adjust 2 = 25;
	cr_amount_stat_adjust 3 = 20;
	cr_what_stat_adjust 4 = 28;
	cr_amount_stat_adjust 4 = 20;
	cr_natural_armor = 100;
	cr_attack_1 = 8;
	cr_attack_2 = 7;
	cr_attack_3 = 7;
	cr_immunities 0 = 100;
	cr_immunities 1 = 20;
	cr_immunities 2 = 75;
	cr_immunities 4 = 0;
	cr_immunities 5 = 60;

begindefinecreature 237;
	import = 18;
	cr_level = 20;
	cr_name = "King";
	cr_which_sheet = 1572;
	
// End base creatures
// Change default creatures

// For convenience, a few out of order here.
begindefinecreature 238;
	import = 5;
begindefinecreature 5; // Captain
	cr_name = "Dark Captain";
	cr_level = 95;
	cr_start_item 0 = 42; // Steel Plate Mail
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 63; // Blessed Greatsword
	cr_start_item_chance 1 = 100;
	cr_start_item 2 = 143; // Steel Helmet
	cr_start_item_chance 2 = 100;
	cr_start_item 3 = 3; // Gold Coins
	cr_start_item_chance 3 = 100;
	cr_start_item 4 = 233; // Haste Elixir
	cr_start_item_chance 4 = 100;
	cr_start_item 5 = 226; // Invulnerability Potion
	cr_start_item_chance 5 = 25;
	cr_start_item_chance 6 = 0;
	cr_start_item_chance 7 = 0;
	cr_default_attitude = 4;
	cr_immunities 0 = 50;
	cr_immunities 1 = 50;
	cr_immunities 2 = 100;
	cr_immunities 3 = 100;
	cr_immunities 5 = 30;
	cr_icon_adjust = 0;
	
begindefinecreature 6; // Soldier
	clear;
	cr_name = "Night Soldier";
	cr_level = 90;
	cr_start_item 0 = 62; // Steel Greatsword
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 225; // Haste Potion
	cr_start_item_chance 1 = 100;
	cr_start_item 2 = 3;
	cr_start_item_chance 2 = 100;
	cr_default_attitude = 4;
	cr_which_sheet = 1508;
	cr_small_or_large_template = 1;
	cr_natural_armor = 20;
	cr_immunities 0 = 25;
	cr_immunities 1 = 25;
	cr_immunities 2 = 50;
	cr_immunities 3 = 25;
	cr_immunities 5 = 25;
	
begindefinecreature 8; // Archer
	clear;
	cr_name = "Shadow Archer";
	cr_level = 92;
	cr_what_stat_adjust 0 = 6; // Bows
	cr_amount_stat_adjust 0 = 25;
	cr_what_stat_adjust 1 = 30; // Sharpshooter
	cr_amount_stat_adjust 2 = 25;
	cr_start_item 0 = 3;
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 98; // Blessed Crossbow
	cr_start_item_chance 1 = 100;
	cr_start_item 2 = 108; // Blessed Bolts
	cr_start_item_chance 2 = 100;
	cr_start_item 3 = 58; // Blessed Longsword
	cr_start_item_chance 3 = 100;
	cr_default_attitude = 4;
	cr_which_sheet = 1511;
	cr_small_or_large_template = 1;
	cr_default_strategy = 1;
	cr_immunities 0 = 50;
	cr_immunities 1 = 50;
	cr_immunities 2 = 50;
	cr_immunities 3 = 100;
	cr_immunities 5 = 33;

begindefinecreature 238;
	import = 20;
begindefinecreature 20; // Elite Soldier
	clear;
	cr_name = "Elite Warrior";
	cr_level = 91;
	cr_what_stat_adjust 0 = 10;
	cr_amount_stat_adjust 0 = 8;
	cr_start_item 0 = 43; // Blessed Plate Mail
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 63; // Blessed Greatsword
	cr_start_item_chance 1 = 100;
	cr_start_item 2 = 3;
	cr_start_item_chance 2 = 100;
	cr_start_item 3 = 251; // Lightning Spray Scroll
	cr_start_item_chance 3 = 100;
	cr_default_attitude = 4;
	cr_natural_armor = 10;
	cr_which_sheet = 1577;
	cr_small_or_large_template = 1;
	cr_immunities 0 = 100;
	cr_immunities 1 = 100;
	cr_immunities 2 = 50;
	cr_immunities 3 = 75;
	cr_immunities 5 = 50;
	
begindefinecreature 21;
	import = 8; // Shadow Archer
	cr_name = "Gray Archer";
	cr_level = 78;
	cr_start_item_chance 3 = 0; // no sword
	cr_attack_1 = 6;
	cr_attack_1_type = 4;
	cr_attack_2 = 4;
	cr_attack_3 = 4;
	cr_attack_23_type = 9;
	cr_immunities 0 = 60;
	cr_immunities 1 = 60;
	cr_immunities 2 = 75;
	cr_immunities 3 = 100;
	cr_immunities 5 = 50;
	cr_which_sheet = 527;

begindefinecreature 96; // Royal guard
	clear;
	cr_name = "Dark Knight";
	cr_level = 90;
	cr_start_item 0 = 78; // Blessed Halberd
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 226; // Invulnerability Elixir
	cr_start_item_chance 1 = 100;
	cr_start_item 2 = 3;
	cr_start_item_chance 2 = 100;
	cr_hp_bonus = 200;
	cr_default_attitude = 4;
	cr_which_sheet = 1574;
	cr_immunities 0 = 10;
	cr_immunities 1 = 10;
	cr_immunities 2 = 100;
	cr_immunities 3 = 100;
	cr_immunities 5 = 60;
	
begindefinecreature 175; // Empire Dervish
	clear;
	cr_name = "Condemned King";
	cr_level = 99;
	cr_what_stat_adjust 0 = 10; // Assassination
	cr_amount_stat_adjust 0 = 15;
	cr_what_stat_adjust 1 = 28; // Lethal Blow
	cr_amount_stat_adjust 1 = 8;
	cr_start_item 0 = 3; // Gold coins
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 246; // Arcane Blow
	cr_start_item_chance 1 = 10;
	cr_start_item 2 = 234; // Invulnerability Elixir
	cr_start_item_chance 2 = 100;
	cr_attack_1 = 7;
	cr_attack_1_type = 4;
	cr_attack_2 = 5;
	cr_attack_3 = 5;
	cr_attack_23_type = 9;
	cr_default_attitude = 4;
	cr_which_sheet = 1610;
	cr_small_or_large_template = 1;
	cr_immunities 0 = 75;
	cr_immunities 1 = 75;
	cr_immunities 2 = 100;
	cr_immunities 3 = 100;
	cr_immunities 5 = 50;

// Now the rest in order

begindefinecreature 238;
	import = 15;
begindefinecreature 15; // Mage
	cr_name = "Wicked Mage";
	cr_level = 50;
	cr_attack_1 = 12;
	cr_what_stat_adjust 0 = 0; // Strength
	cr_amount_stat_adjust 0 = 30;
	cr_amount_stat_adjust 1 = 0;
	cr_default_attitude = 4;
	cr_immunities 2 = 0;
	cr_default_strategy = 0;
	cr_icon_adjust = 2;

begindefinecreature 238;
	import = 16;
begindefinecreature 16; // wizard
	cr_name = "Archwizard";
	cr_level = 75;
	cr_what_stat_adjust 2 = 12;
	cr_amount_stat_adjust 2 = 20;
	cr_start_item 2 = 297; // Mage Bracelet
	cr_start_item_chance 2 = 50;
	cr_start_item 4 = 231; // Energy Elixir
	cr_start_item_chance 4 = 100;
	cr_start_item 5 = 234; // Invulnerability Elixir
	cr_start_item_chance 5 = 100;
	cr_start_item 6 = 218; // Toadstools
	cr_start_item_chance 6 = 50;
	cr_start_item 7 = 219; // Mandrake
	cr_start_item_chance 7 = 50;
	cr_immunities 0 = 50;
	cr_immunities 1 = 50;
	cr_immunities 2 = 100;
	cr_immunities 3 = 100;
	cr_immunities 5 = 50;

begindefinecreature 238;
	import = 34;
begindefinecreature 34; // Slith
	cr_default_attitude = 2;
	cr_level = 40;
	cr_natural_armor = 15;
	
begindefinecreature 238;
	import = 35;
begindefinecreature 35; // Slith warrior
	cr_default_attitude = 2;
	cr_level = 55;
	cr_natural_armor = 25;
	cr_immunities 0 = 25;
	cr_immunities 1 = 25;
	cr_immunities 2 = 25;
	cr_immunities 3 = 25;
	cr_immunities 4 = 25;
	
begindefinecreature 238;
	import = 36;
begindefinecreature 36; // Slith priest
	cr_default_attitude = 2;
	cr_level = 60;
	cr_what_stat_adjust 0 = 11;
	cr_amount_stat_adjust 0 = 25;
	cr_what_stat_adjust 1 = 12;
	cr_amount_stat_adjust 1 = 25;
	cr_what_stat_adjust 2 = 25;
	cr_amount_stat_adjust 2 = 15;
	cr_natural_armor = 8;
	
begindefinecreature 238;
	import = 37;
begindefinecreature 37; // Slith mage
	cr_default_attitude = 2;
	cr_level = 60;
	cr_what_stat_adjust 0 = 11;
	cr_amount_stat_adjust 0 = 25;
	cr_what_stat_adjust 1 = 12;
	cr_amount_stat_adjust 1 = 25;
	cr_what_stat_adjust 2 = 25;
	cr_amount_stat_adjust 2 = 15;
	cr_natural_armor = 8;
	
begindefinecreature 238;
	import = 38;
begindefinecreature 38; // Slith chief
	cr_default_attitude = 2;
	cr_level = 70;
	cr_natural_armor = 30;
	cr_immunities 0 = 40;
	cr_immunities 1 = 40;
	cr_immunities 2 = 40;
	cr_immunities 3 = 40;
	cr_immunities 4 = 40;
	
begindefinecreature 238;
	import = 46;
begindefinecreature 46; // spirit
	cr_name = "Malevolent Spirit";
	cr_level = 60;
	cr_what_stat_adjust 0 = 11;
	cr_amount_stat_adjust 0 = 0;
	cr_what_stat_adjust 1 = 25;
	cr_amount_stat_adjust 1 = 0;
	cr_hp_bonus = 50;
	cr_natural_armor = 30;
	cr_which_sheet = 1538;
	cr_attack_1 = 5;
	cr_special_abil = 8;
	cr_default_strategy = 0;
	
begindefinecreature 238;
	import = 48;
begindefinecreature 48; // Ghost
	cr_name = "Heavy Ghost";
	cr_level = 60;
	cr_hp_bonus = 70;
	cr_natural_armor = 30;
	cr_icon_adjust = 3;
	cr_attack_1 = 5;
	cr_special_abil = 4;
	
begindefinecreature 238;
	import = 55;
begindefinecreature 55; // Poison fungus
	cr_name = "Acid fungus";
	cr_level = 60;
	cr_attack_1 = 7;
	cr_attack_2 = 5;
	cr_immunities 1 = 0;
	cr_immunities 4 = 0;
	cr_immunities 5 = 30;
	cr_special_abil = 12; // acid melee
	
begindefinecreature 238;
	import = 60;
begindefinecreature 60; // Demon
	cr_name = "Demon Warrior";
	cr_level = 65;
	
begindefinecreature 238;
	import = 61;
begindefinecreature 61; // Haakai
	cr_name = "Haakai Lord";
	cr_level = 75;
	cr_what_stat_adjust 0 = 25;
	cr_amount_stat_adjust 0 = 15;
	cr_what_stat_adjust 1 = 11;
	cr_amount_stat_adjust 1 = 25;
	cr_what_stat_adjust 2 = 12;
	cr_amount_stat_adjust 2 = 25;
	cr_what_stat_adjust 3 = 10;
	cr_amount_stat_adjust 3 = 10;
	cr_hp_bonus = 500;
	cr_attack_1 = 6;
	cr_attack_2 = 4;
	cr_attack_3 = 4;
	cr_immunities 1 = 0;
	cr_immunities 2 = 40;
	cr_immunities 4 = 0;
	cr_immunities 5 = 40;
	cr_special_abil = 33;
	cr_default_strategy = 1;
	
begindefinecreature 238;
	import = 63;
begindefinecreature 63; // Asp
	cr_name = "Fire Worm";
	cr_level = 70;
	cr_hp_bonus = 100;
	cr_attack_1 = 6;
	cr_summon_class = 8;
	cr_special_abil = 26; // fire field
	cr_immunities 0 = 100;
	cr_immunities 1 = 0;
	cr_immunities 2 = 75;
	cr_immunities 3 = 75;
	cr_immunities 4 = 0;
	cr_immunities 5 = 0;
	cr_icon_adjust = 5;
	
begindefinecreature 238;
	import = 66;
begindefinecreature 66; // Living statue
	cr_name = "Stone Golem";
	cr_level = 92;
	cr_what_stat_adjust 0 = 11;
	cr_amount_stat_adjust 0 = 25;
	cr_what_stat_adjust 1 = 12;
	cr_amount_stat_adjust 1 = 25;
	cr_what_stat_adjust 2 = 25;
	cr_amount_stat_adjust 2 = 20;
	cr_natural_armor = 15;
	cr_attack_1 = 6;
	cr_attack_2 = 4;
	cr_attack_3 = 4;
	cr_attack_23_type = 4;
	cr_immunities 0 = 25;
	cr_immunities 1 = 25;
	cr_immunities 2 = 25;
	cr_immunities 4 = 0;
	cr_immunities 5 = 50;
	
begindefinecreature 238;
	import = 69;
begindefinecreature 69; // Giant spider
	cr_name = "Warrior Aranea";
	cr_level = 85;
	cr_hp_bonus = 25;
	cr_attack_1 = 6;
	cr_summon_class = -1;
	cr_immunities 0 = 20;
	cr_immunities 1 = 20;
	cr_immunities 2 = 20;
	cr_immunities 5 = 30;
	cr_icon_adjust = 4;
	
begindefinecreature 238;
	import = 82;
begindefinecreature 82; // Good Witch
	cr_name = "Faerie Queen";
	cr_level = 99;
	cr_what_stat_adjust 0 = 11;
	cr_amount_stat_adjust 0 = 25;
	cr_what_stat_adjust 1 = 12;
	cr_amount_stat_adjust 1 = 25;
	cr_what_stat_adjust 2 = 25;
	cr_amount_stat_adjust 2 = 50;
	cr_start_item 0 = 3;
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 259; // Scroll Force Cage
	cr_start_item_chance 1 = 100;
	cr_start_item 2 = 239; // Heroic Brew
	cr_start_item_chance 2 = 100;
	cr_start_item_chance 3 = 0;
	cr_start_item_chance 4 = 0;
	cr_start_item_chance 5 = 0;
	cr_attack_1 = 7;
	cr_immunities 0 = 50;
	cr_immunities 1 = 50;
	cr_immunities 2 = 75;
	cr_immunities 3 = 75;
	cr_immunities 5 = 90;
	
begindefinecreature 238;
	import = 71;
begindefinecreature 71; // Aranea

// The next two are technically replacements, but I want them together
begindefinecreature 238;
	import = 91; // Black shade
begindefinecreature 88; // #3
	cr_name = "The Presence";
	cr_level = 99;
	cr_what_stat_adjust 0 = 9;
	cr_amount_stat_adjust 0 = 25;
	cr_what_stat_adjust 1 = 11;
	cr_amount_stat_adjust 1 = 25;
	cr_what_stat_adjust 2 = 12;
	cr_amount_stat_adjust 2 = 25;
	cr_what_stat_adjust 3 = 25;
	cr_amount_stat_adjust 3 = 30;
	cr_species = 12;
	cr_attack_1 = 10;
	cr_attack_2 = 7;
	cr_attack_3 = 7;
	cr_ap_bonus = 1;
	cr_immunities 5 = 30;
	
begindefinecreature 238;
	import = 91; // Black shade
begindefinecreature 89; // #2
	cr_name = "The Presence";
	cr_level = 99;
	cr_what_stat_adjust 0 = 9;
	cr_amount_stat_adjust 0 = 25;
	cr_what_stat_adjust 1 = 11;
	cr_amount_stat_adjust 1 = 25;
	cr_what_stat_adjust 2 = 12;
	cr_amount_stat_adjust 2 = 25;
	cr_what_stat_adjust 3 = 25;
	cr_amount_stat_adjust 3 = 30;
	cr_species = 12;
	cr_attack_1 = 5;
	cr_attack_2 = 4;
	cr_attack_3 = 4;
	cr_ap_bonus = 4;
	cr_immunities 5 = 30;

begindefinecreature 238;
	import = 91; // Black shade
begindefinecreature 91; // #1
	cr_name = "The Presence";
	cr_level = 80;
	cr_what_stat_adjust 1 = 11;
	cr_amount_stat_adjust 1 = 0;
	cr_what_stat_adjust 2 = 25;
	cr_amount_stat_adjust 2 = 0;
	cr_species = 12;
	cr_attack_1 = 12;
	cr_attack_2 = 9;
	cr_attack_3 = 9;
	cr_ap_bonus = 0;
	cr_immunities 5 = 30;
	cr_default_strategy = 0;
	
begindefinecreature 238;
	import = 92;
begindefinecreature 92; // Granite Golem
	cr_name = "Golem";
	cr_level = 95;
	cr_attack_1 = 7;
	cr_attack_2 = 5;
	cr_attack_3 = 5;
	cr_attack_23_type = 4;
	cr_immunities 0 = 25;
	cr_immunities 1 = 25;
	cr_immunities 2 = 100;
	cr_immunities 3 = 100;
	cr_immunities 4 = 0;
	cr_immunities 5 = 75;
	cr_summon_class = -1;
	cr_start_item 0 = 203;
	cr_start_item_chance 0 = 100;
	
begindefinecreature 238;
	import = 95;
begindefinecreature 95; // Mung demon
	cr_level = 95;
	cr_amount_stat_adjust 0 = 0;
	cr_amount_stat_adjust 1 = 0;
	cr_natural_armor = 30;
	cr_attack_1 = 8;
	cr_attack_2 = 6;
	cr_attack_3 = 6;
	cr_immunities 2 = 0;
	cr_icon_adjust = 517;
	
begindefinecreature 238;
	import = 140;
begindefinecreature 140; // Vahnavoi
	cr_name = "Vahnavoi Drone";
	cr_level = 55;
	cr_what_stat_adjust 0 = 21; // blademaster
	cr_amount_stat_adjust 0 = 15;
	cr_start_item 0 = 385;
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 381;
	cr_start_item_chance 1 = 100;
	cr_start_item 2 = 208;
	cr_start_item_chance 2 = 25;
	cr_immunities 2 = 50;
	cr_immunities 5 = 15;
	
begindefinecreature 238;
	import = 144;
begindefinecreature 144; // Shambler
	cr_name = "Shambler";
	cr_level = 90;
	cr_natural_armor = 25;
	cr_attack_1 = 8;
	cr_attack_2 = 5;
	cr_attack_3 = 5;
	cr_immunities 0 = 75;
	cr_immunities 1 = 75;
	cr_immunities 1 = 50;
	cr_immunities 3 = 100;
	cr_immunities 5 = 50;
	cr_special_abil = 4;
	cr_summon_class = -1;
	
begindefinecreature 238;
	import = 146;
begindefinecreature 146; // Vahnatai
	cr_name = "Vahnatai Guard";
	cr_level = 90;
	cr_what_stat_adjust 0 = 7; // Thrown
	cr_amount_stat_adjust 0 = 25;
	cr_what_stat_adjust 1 = 30; // Sharpshooter
	cr_amount_stat_adjust 1 = 25;
	cr_start_item 0 = 293;
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 204;
	cr_start_item_chance 1 = 50;
	cr_start_item 2 = 226;
	cr_start_item_chance 2 = 100;
	cr_special_abil = 16; // rock-throwing
	cr_immunities 3 = 100;
	cr_immunities 5 = 100;
	cr_default_strategy = 1;
	cr_icon_adjust = 133;
	
begindefinecreature 149; // Vahnatai Warrior
	clear;
	cr_name = "Warrior";
	cr_level = 94;
	cr_start_item 0 = 2;
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 230; // Strength Elixir
	cr_start_item_chance 1 = 100;
	cr_default_attitude = 4;
	cr_species = 13;
	cr_which_sheet = 1590;
	cr_attack_1 = 7;
	cr_small_or_large_template = 1;
	cr_icon_adjust = 2;
	cr_immunities 0 = 10;
	cr_immunities 1 = 10;
	cr_immunities 2 = 25;
	cr_immunities 3 = 25;
	cr_immunities 5 = 30;
	
begindefinecreature 150; // Vahnatai Warrior
	import = 149;
	cr_which_sheet = 1591;
	
begindefinecreature 238;
	import = 151;
begindefinecreature 151; // Vahnatai Shaper
	cr_name = "Shaper";
	cr_level = 90;
	cr_what_stat_adjust 0 = 12;
	cr_amount_stat_adjust 0 = 25;
	cr_amount_stat_adjust 1 = 25;
	cr_amount_stat_adjust 2 = 25;
	cr_start_item 0 = 220; // Healing Potion
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 3;
	cr_start_item_chance 1 = 100;
	cr_start_item 2 = 287; // Wand of Acid
	cr_start_item_chance 2 = 100;
	cr_start_item 2 = 217; // Graymold
	cr_start_item_chance 3 = 50;
	cr_start_item_chance 4 = 0;
	cr_start_item_chance 5 = 0;
	cr_hp_bonus = 50;
	cr_attack_1 = 5;
	cr_default_attitude = 4;
	cr_immunities 0 = 25;
	cr_immunities 1 = 25;
	cr_immunities 2 = 50;
	cr_immunities 3 = 50;
	cr_immunities 5 = 20;
	
begindefinecreature 238;
	import = 153;
begindefinecreature 153; // Vahnatai Keeper
	cr_name = "Keeper";
	cr_level = 93;
	cr_what_stat_adjust 0 = 12;
	cr_amount_stat_adjust 0 = 25;
	cr_amount_stat_adjust 1 = 25;
	cr_amount_stat_adjust 2 = 50;
	cr_start_item 0 = 3;
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 233; // Haste Elixir
	cr_start_item_chance 1 = 100;
	cr_start_item 2 = 288; // Wand of Forcecage
	cr_start_item_chance 2 = 100;
	cr_start_item 3 = 218; // Toadstools
	cr_start_item_chance 3 = 50;
	cr_start_item_chance 4 = 0;
	cr_start_item_chance 5 = 0;
	cr_start_item_chance 6 = 0;
	cr_attack_1 = 5;
	cr_default_attitude = 4;
	cr_immunities 0 = 25;
	cr_immunities 1 = 25;
	cr_immunities 2 = 50;
	cr_immunities 3 = 50;
	cr_immunities 5 = 20;
	
begindefinecreature 155; // Vahnatai Blade
	clear;
	cr_name = "Blademaster";
	cr_level = 99;
	cr_what_stat_adjust 0 = 10; // Assassination
	cr_amount_stat_adjust 0 = 15;
	cr_what_stat_adjust 1 = 28; // Lethal Blow
	cr_amount_stat_adjust 1 = 8;
	cr_start_item 0 = 3;
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 226; // Invulnerability Potion
	cr_start_item_chance 1 = 100;
	cr_attack_1 = 8;
	cr_default_attitude = 4;
	cr_species = 13;
	cr_which_sheet = 1594;
	cr_immunities 0 = 10;
	cr_immunities 1 = 10;
	cr_immunities 2 = 75;
	cr_immunities 3 = 75;
	cr_immunities 5 = 50;
	cr_small_or_large_template = 1;
	cr_icon_adjust = 1;
	
begindefinecreature 156; // Vahnatai Lord
	clear;
	cr_name = "Vahnatai King";
	cr_level = 99;
	cr_what_stat_adjust 0 = 11;
	cr_amount_stat_adjust 0 = 50;
	cr_what_stat_adjust 1 = 12;
	cr_amount_stat_adjust 1 = 50;
	cr_what_stat_adjust 2 = 25;
	cr_amount_stat_adjust 2 = 50;
	cr_what_stat_adjust 3 = 10;
	cr_amount_stat_adjust 3 = 25;
	cr_what_stat_adjust 4 = 28;
	cr_amount_stat_adjust 4 = 25;
	cr_start_item 0 = 292; // Rod of Major Call
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 239; // Heroic Brew
	cr_start_item_chance 1 = 100;
	cr_hp_bonus = 500;
	cr_default_attitude = 4;
	cr_species = 13;
	cr_which_sheet = 1595;
	cr_attack_1 = 11;
	cr_attack_2 = 8;
	cr_attack_3 = 8;
	cr_attack_1_type = 8;
	cr_attack_23_type = 1;
	cr_immunities 0 = 100;
	cr_immunities 1 = 100;
	cr_immunities 2 = 100;
	cr_immunities 3 = 100;
	cr_immunities 5 = 75;
	cr_small_or_large_template = 1;
	cr_icon_adjust = 7;

begindefinecreature 238;
	import = 158;
begindefinecreature 158; // Doomguard
	cr_name = "Doomguard King";
	cr_level = 99;
	cr_what_stat_adjust 0 = 29;
	cr_amount_stat_adjust 0 = 25;
	cr_start_item 0 = 410;
	cr_start_item_chance 0 = 100;
	cr_hp_bonus = 0;
	cr_attack_1 = 11;
	cr_attack_2 = 8;
	cr_attack_3 = 8;
	cr_natural_armor = 0;
	cr_immunities 3 = 100;
	cr_immunities 4 = 0;
	cr_icon_adjust = 387;
	
begindefinecreature 238;
	import = 159;
begindefinecreature 159; // Chitrach
	cr_name = "Poison Chitrach";
	cr_level = 90;
	cr_natural_armor = 40;
	cr_which_sheet = 1598;
	cr_attack_1 = 11;
	cr_attack_2 = 9;
	cr_attack_2 = 9;
	cr_summon_class = -1;
	cr_immunities 0 = 25;
	cr_immunities 1 = 25;
	cr_immunities 4 = 0;
	cr_immunities 5 = 30;
	cr_special_abil = 4;
	cr_icon_adjust = 4;
	
begindefinecreature 238;
	import = 160;
begindefinecreature 160; // Chitrach Larva
	cr_name = "Foul Larva";
	cr_level = 88;
	cr_attack_1 = 9;
	cr_attack_2 = 8;
	cr_attack_2 = 8;
	cr_summon_class = -1;
	cr_special_abil = 10;
	cr_icon_adjust = 4;
	
begindefinecreature 238;
	import = 161;
begindefinecreature 161;
	cr_name = "Longfang Hydra";
	cr_level = 90;
	cr_attack_1 = 11;
	cr_attack_2 = 7;
	cr_attack_3 = 7;
	cr_summon_class = -1;
	cr_icon_adjust = 2;
	cr_immunities 0 = 20;
	cr_immunities 1 = 20;
	cr_immunities 2 = 20;
	cr_immunities 3 = 75;
	cr_immunities 5 = 20;
	
begindefinecreature 238;
	import = 170;
begindefinecreature 170; // Giant Slug
	cr_name = "Acrid Slug";
	cr_level = 90;
	cr_attack_1 = 9;
	cr_attack_2 = 9;
	cr_attack_3 = 9;
	cr_attack_23_type = 1;
	cr_summon_class = -1;
	cr_immunities 0 = 30;
	cr_immunities 1 = 30;
	cr_immunities 4 = 0;
	cr_immunities 5 = 50;
	cr_special_abil = 32;
	cr_icon_adjust = 4;
	
begindefinecreature 238;
	import = 172;
begindefinecreature 172; // Rakshasa
	cr_name = "Rakshasa Mage";
	cr_level = 95;
	cr_what_stat_adjust 0 = 11;
	cr_amount_stat_adjust 0 = 25;
	cr_what_stat_adjust 1 = 10;
	cr_amount_stat_adjust 1 = 25;
	cr_what_stat_adjust 2 = 28;
	cr_amount_stat_adjust 2 = 25;
	cr_what_stat_adjust 3 = 23;
	cr_amount_stat_adjust 3 = 5;
	cr_what_stat_adjust 4 = 12;
	cr_amount_stat_adjust 4 = 25;
	cr_start_item 0 = 22;
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 119;
	cr_start_item_chance 1 = 6;
	cr_start_item 2 = 207;
	cr_start_item_chance 2 = 10;
	cr_start_item 3 = 210;
	cr_start_item_chance 3 = 10;
	cr_start_item 4 = 212;
	cr_start_item_chance 4 = 10;
	cr_start_item 5 = 297;
	cr_start_item_chance 5 = 2;
	cr_start_item 6 = 112;
	cr_start_item_chance 6 = 10;
	cr_start_item 7 = 47;
	cr_start_item_chance 7 = 100;
	cr_natural_armor = 50;
	cr_immunities 3 = 100;
	cr_immunities 4 = 0;
	cr_summon_class = 8;
	cr_hp_bonus = 1000;
	
begindefinecreature 238;
	import = 173;
begindefinecreature 173;
	cr_name = "Naga";
	cr_level = 65;
	cr_amount_stat_adjust 0 = 30; // Mage Spells
	cr_what_stat_adjust 1 = 12;
	cr_amount_stat_adjust 1 = 20;
	cr_what_stat_adjust 3 = 29;
	cr_amount_stat_adjust 3 = 10;
	cr_start_item 0 = 304;
	cr_start_item_chance 0 = 5;
	cr_start_item 1 = 305;
	cr_start_item_chance 1 = 5;
	cr_start_item 2 = 309;
	cr_start_item_chance 2 = 5;
	cr_start_item 3 = 310;
	cr_start_item_chance 3 = 5;
	cr_start_item 4 = 303;
	cr_start_item_chance 4 = 5;
	cr_attack_1 = 7;
	cr_immunities 0 = 60;
	cr_immunities 2 = 50;
	cr_immunities 3 = 100;
	cr_immunities 4 = 100;
	cr_immunities 5 = 30;
	cr_summon_class = 8;
	cr_default_strategy = 1;
	cr_hp_bonus = 300;
	cr_natural_armor = 30;
	
begindefinecreature 238;
	import = 174;
begindefinecreature 174; // Efreet
	cr_name = "Flamelord";
	cr_level = 78;
	cr_amount_stat_adjust 0 = 0;
	cr_amount_stat_adjust 1 = 15; // Defense
	cr_amount_stat_adjust 2 = 15; // Assassination
	cr_start_item_chance 0 = 0;
	cr_start_item_chance 1 = 0;
	cr_start_item_chance 2 = 0;
	cr_start_item_chance 3 = 0;
	cr_natural_armor = 0;
	cr_attack_1 = 7;
	cr_natural_armor = 20;
	cr_immunities 2 = 30;
	cr_immunities 3 = 40;
	cr_immunities 5 = 40;
	cr_summon_class = -1;
	cr_special_abil = 0;
	cr_hp_bonus = 300;
	cr_ap_bonus = 0;
	
begindefinecreature 238;
	import = 176;
begindefinecreature 176; // Foul Rat
	cr_name = "Poisonous Rat";
	cr_level = 63;
	cr_amount_stat_adjust 0 = 0;
	cr_attack_1 = 6;
	cr_immunities 0 = 10;
	cr_immunities 1 = 10;
	cr_immunities 4 = 0;
	cr_immunities 5 = 30;
	cr_summon_class = -1;
	cr_icon_adjust = 3;
	
begindefinecreature 182; // Slith Archmage
	clear;
	cr_name = "Slith Archmage";
	cr_level = 99;
	cr_start_item 0 = 226; // Invulnerability Potion
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 261; // Scroll - Divine Host
	cr_start_item_chance 1 = 100;
	cr_default_attitude = 4;
	cr_species = 3;
	cr_which_sheet = 1531;
	cr_small_or_large_template = 1;
	cr_attack_1 = 15;
	cr_attack_2 = 10;
	cr_attack_3 = 10;
	cr_immunities 0 = 10;
	cr_immunities 1 = 10;
	cr_immunities 2 = 50;
	cr_immunities 3 = 50;
	cr_immunities 5 = 60;
	
begindefinecreature 238;
	import = 192;
begindefinecreature 192; // Worg
	cr_name = "Giant Wolf";
	cr_level = 75;
	cr_attack_1 = 10;
	cr_summon_class = 9;
	
begindefinecreature 238;
	import = 193;
begindefinecreature 193; // Bear
	cr_name = "Grizzly";
	cr_level = 70;
	cr_attack_1 = 9;
	cr_summon_class = 7;
	
begindefinecreature 238;
	import = 195;
begindefinecreature 195;
	cr_name = "Amethyst Slime";
	cr_level = 85;
	cr_attack_1 = 10;
	cr_attack_2 = 6;
	cr_attack_3 = 6;
	cr_attack_23_type = 7;
	cr_immunities 5 = 75; // Melee
	cr_special_abil = 38; // stink cloud
	cr_what_stat_adjust 0 = 9; // defense
	cr_amount_stat_adjust 0 = 25;
	cr_immunities 2 = 100;
	cr_immunities 3 = 100;
	cr_icon_adjust = 37;

begindefinecreature 238;
	import = 196;
begindefinecreature 196;
	cr_name = "Aquamarine Slime";
	cr_level = 85;
	cr_attack_1 = 10;
	cr_attack_2 = 6;
	cr_attack_3 = 6;
	cr_attack_23_type = 7;
	cr_immunities 0 = 20; // Fire
	cr_immunities 1 = 100; // Cold
	cr_immunities 2 = 20; // Magic
	cr_immunities 3 = 75; // Mental
	cr_immunities 5 = 40; // Melee
	cr_special_abil = 0;
	cr_icon_adjust = 6;

// Technically the next two are replacements, but they're here for convenience.
begindefinecreature 200;
	import = 196;
	cr_name = "Tourmaline Slime";
	cr_immunities 1 = 0; // cold
	cr_immunities 5 = 25; // Melee
	cr_special_abil = 12; // acid melee
	cr_icon_adjust = 2;
	
begindefinecreature 201;
	import = 195;
	cr_name = "Malachite Slime";
	cr_attack_1 = 11;
	cr_immunities 5 = 25; // Melee
	cr_special_abil = 36; // web melee
	cr_amount_stat_adjust 0 = 0;
	cr_icon_adjust = 12;

begindefinecreature 238;
	import = 197;
begindefinecreature 197;
	cr_name = "Garnet Slime";
	cr_level = 80;
	cr_attack_1 = 12;
	cr_immunities 5 = 25; // Melee
	cr_special_abil = 5; // throws webs
	cr_icon_adjust = 133;

begindefinecreature 238;
	import = 198;
begindefinecreature 198;
	cr_name = "Topaz Slime";
	cr_level = 80;
	cr_amount_stat_adjust 0 = 0;
	cr_attack_1 = 12;
	cr_immunities 4 = 100;
	cr_immunities 5 = 25; // Melee
	cr_special_abil = 34; // throws spines
	cr_icon_adjust = 130;
	cr_default_strategy = 1;

begindefinecreature 238;
	import = 199;
begindefinecreature 199;
	cr_name = "King of Slimes";
	cr_level = 96;
	cr_what_stat_adjust 0 = 26;
	cr_amount_stat_adjust 0 = 2;
	cr_hp_bonus = 200;
	cr_attack_1 = 12;
	cr_attack_2 = 9;
	cr_attack_3 = 9;
	cr_icon_adjust = 7;
	
begindefinecreature 238;
	import = 205;
begindefinecreature 205; // Big Roach
	cr_name = "Diseased Roach";
	cr_level = 86;
	cr_default_attitude = 4;
	cr_attack_1 = 8;
	cr_attack_2 = 7;
	cr_attack_3 = 7;
	cr_attack_23_type = 1;
	cr_immunities 0 = 30;
	cr_immunities 1 = 30;
	cr_immunities 5 = 40;
	cr_icon_adjust = 4;
	
begindefinecreature 238;
	import = 216;
begindefinecreature 216; // Golem of Blades
	cr_name = "Metal Golem";
	cr_level = 65;
	cr_attack_1 = 7;
	cr_attack_2 = 5;
	cr_attack_3 = 5;
	cr_icon_adjust = 2;
	cr_immunities 0 = 10;
	cr_immunities 1 = 100;
	cr_immunities 2 = 25;
	cr_immunities 3 = 100;
	cr_immunities 5 = 40;
	
begindefinecreature 238;
	import = 217;
begindefinecreature 217; // Fire Golem
	cr_name = "Flame Golem";
	cr_level = 91;
	cr_start_item_chance 0 = 100; // Ruby
	cr_hp_bonus = 50;
	cr_attack_1 = 8;
	cr_attack_2 = 6;
	cr_attack_3 = 6;
	cr_immunities 0 = 100;
	cr_immunities 1 = 0;
	cr_immunities 2 = 50;
	cr_immunities 3 = 100;
	cr_immunities 4 = 0;
	cr_immunities 5 = 50;
	cr_special_abil = 0;
	
begindefinecreature 238;
	import = 218;
begindefinecreature 218; // Ice Golem
	cr_name = "Frost Golem";
	cr_level = 69;
	cr_start_item_chance 0 = 100; // Emerald
	cr_hp_bonus = 50;
	cr_attack_1 = 5;
	cr_attack_2 = 5;
	cr_attack_3 = 5;
	cr_immunities 0 = 0;
	cr_immunities 1 = 100;
	cr_immunities 2 = 25;
	cr_immunities 3 = 100;
	cr_immunities 4 = 0;
	cr_immunities 5 = 25;
	cr_special_abil = 18;
	
begindefinecreature 238;
	import = 219;
begindefinecreature 219; // Jeweled Golem
	cr_name = "Bejeweled Machine";
	cr_level = 75;
	cr_start_item 0 = 287; // Wand of Acid
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 205; // Ruby
	cr_start_item_chance 1 = 100;
	cr_start_item 2 = 220; // Healing Potion
	cr_start_item_chance 2 = 100;
	cr_attack_1 = 7;
	cr_attack_1_type = 8;
	cr_immunities 0 = 10;
	cr_immunities 1 = 10;
	cr_immunities 2 = 50;
	cr_immunities 3 = 100;
	cr_immunities 4 = 0;
	cr_immunities 5 = 50;
	cr_special_abil = 12; // acid melee
	
begindefinecreature 223; // Alien Beast
	clear;
	cr_name = "Mutant Wolf";
	cr_level = 93;
	cr_default_attitude = 4;
	cr_species = 6;
	cr_which_sheet = 1580;
	cr_attack_1 = 7;
	cr_attack_1_type = 2;
	cr_immunities 0 = 25;
	cr_immunities 1 = 10;
	cr_immunities 2 = 25;
	cr_immunities 3 = 10;
	cr_immunities 5 = 50;
	
begindefinecreature 224; // Pack Leader
	clear;
	cr_name = "Giant Mutant";
	cr_level = 99;
	cr_default_attitude = 4;
	cr_species = 6;
	cr_which_sheet = 1571;
	cr_attack_1 = 8;
	cr_attack_1_type = 2;
	cr_immunities 0 = 50;
	cr_immunities 1 = 25;
	cr_immunities 2 = 25;
	cr_immunities 3 = 75;
	cr_immunities 5 = 75;
	
begindefinecreature 238;
	import = 225;
begindefinecreature 225;
	cr_name = "Great Dark Wyrm";
	cr_level = 55;
	cr_immunities 4 = 0;
	
begindefinecreature 238;
	import = 228;
begindefinecreature 228; // Spine Beast
	cr_name = "Sharp Worm";
	cr_level = 95;
	cr_natural_armor = 75;
	cr_attack_1 = 8;
	cr_attack_2 = 7;
	cr_attack_3 = 7;
	cr_ap_bonus = 2;
	cr_summon_class = -1;
	cr_icon_adjust = 4;

begindefinecreature 238;
	import = 231;
begindefinecreature 231;
	cr_name = "Ugly Unicorn";
	cr_level = 50;
	cr_attack_1 = 6;
	cr_attack_1_type = 9;
	cr_summon_class = -1;
	
// Replace old creatures
	
begindefinecreature 12;
	clear;
	cr_name = "Darklord";
	cr_level = 80;
	cr_species = 12;
	cr_which_sheet = 526;
	cr_default_attitude = 4;

begindefinecreature 27;
	import = 151;
	cr_icon_adjust = 2;
	
begindefinecreature 28;
	import = 151;
	cr_icon_adjust = 1;
	
begindefinecreature 29;
	import = 151; // Shaper
	cr_icon_adjust = 5;
	cr_immunities 5 = 100;
	
begindefinecreature 30;
	import = 153; // Keeper
	cr_icon_adjust = 5;
	cr_immunities 5 = 100;
	
begindefinecreature 31;
	import = 153;
	cr_icon_adjust = 6;
	
begindefinecreature 65;
	clear;
	cr_name = "Giant Goblin";
	cr_level = 70;
	cr_default_attitude = 4;
	cr_species = 1;
	cr_which_sheet = 528;
	cr_attack_1 = 6;
	cr_attack_2 = 4;
	cr_attack_3 = 4;
	cr_attack_1_type = 4;
	cr_attack_23_type = 10;
	cr_immunities 0 = 50;
	cr_immunities 1 = 50;
	cr_immunities 2 = 25;
	cr_immunities 3 = 75;
	cr_immunities 5 = 25;
	
begindefinecreature 67;
	clear;
	cr_name = "Faery";
	cr_level = 75;
	cr_species = 1;
	cr_which_sheet = 523;
	cr_small_or_large_template = 1;
	cr_what_stat_adjust 0 = 0; // Strength
	cr_amount_stat_adjust 0 = 20;
	cr_start_item 0 = 63; // Blessed Greatsword
	cr_start_item_chance 0 = 100;
	cr_immunities 0 = 25;
	cr_immunities 1 = 25;
	cr_immunities 2 = 50;
	cr_immunities 3 = 10;
	cr_immunities 5 = 25;
	
begindefinecreature 71;
	import = 65;
	cr_name = "Goblin Chief";
	cr_level = 95;
	cr_which_sheet = 529;
	cr_attack_1 = 9;
	cr_attack_2 = 6;
	cr_attack_3 = 6;
	cr_immunities 0 = 100;
	cr_immunities 1 = 100;
	cr_immunities 2 = 25;
	cr_immunities 3 = 100;
	cr_immunities 5 = 40;
	
begindefinecreature 73;
	clear;
	cr_name = "Nathaganth";
	cr_level = 99;
	cr_species = 12;
	cr_which_sheet = 525;
	cr_default_attitude = 4;
	cr_attack_1 = 20;
	cr_attack_2 = 15;
	cr_attack_3 = 15;
	cr_attack_1_type = 7;
	cr_attack_23_type = 8;
	cr_hp_bonus = 1000;
	cr_immunities 0 = 100;
	cr_immunities 1 = 100;
	cr_immunities 2 = 100;
	cr_immunities 3 = 100;
	cr_immunities 4 = 100;
	cr_immunities 5 = 100;
	
begindefinecreature 143;
	import = 237;
	cr_name = "Possanathoss";
	cr_level = 99;
	cr_icon_adjust = 545;
	
begindefinecreature 145;
	import = 112;
	cr_name = "Pithoss";
	cr_hp_bonus = 1000;
	cr_immunities 0 = 50;
	cr_immunities 1 = 50;
	cr_immunities 2 = 25;
	cr_immunities 3 = 100;
	cr_immunities 5 = 75;

begindefinecreature 191;
	import = 35;
	cr_name = "The Goddess";
	cr_icon_adjust = 64;

begindefinecreature 206;
	clear;
	cr_name = "Lava Lizard";
	cr_level = 60;
	cr_which_sheet = 1543;
	cr_species = 5;
	cr_default_attitude = 4;
	cr_attack_1 = 7;
	cr_attack_2 = 5;
	cr_attack_3 = 5;
	cr_attack_1_type = 2;
	cr_attack_23_type = 1;
	cr_special_abil = 26; // fire field
	cr_immunities 0 = 100; // Fire
	cr_immunities 2 = 20; // Magic
	cr_immunities 5 = 30; // Melee

begindefinecreature 207;
	clear;
	cr_name = "Slith Barbarian";
	cr_level = 60;
	cr_default_attitude = 4;
	cr_species = 3;
	cr_natural_armor = 8;
	cr_attack_1 = 12;
	cr_attack_2 = 9;
	cr_attack_3 = 9;
	cr_attack_1_type = 9;
	cr_attack_23_type = 0;
	cr_immunities 0 = 50;
	cr_immunities 1 = 50;
	cr_immunities 5 = 30;
	cr_icon_adjust = 3;
	cr_which_sheet = 514;

begindefinecreature 208;
	clear;
	cr_name = "Slith War-Mage";
	cr_level = 99;
	cr_default_attitude = 4;
	cr_species = 3;
	cr_hp_bonus = 25;
	cr_natural_armor = 8;
	cr_what_stat_adjust 0 = 11;
	cr_amount_stat_adjust 0 = 11;
	cr_what_stat_adjust 1 = 12;
	cr_amount_stat_adjust 1 = 8;
	cr_what_stat_adjust 2 = 25;
	cr_amount_stat_adjust 2 = 8;
	cr_attack_1 = 8;
	cr_attack_2 = 6;
	cr_attack_3 = 6;
	cr_attack_1_type = 9;
	cr_attack_23_type = 0;
	cr_immunities 0 = 100; // Fire
	cr_immunities 1 = 50;
	cr_immunities 2 = 50;
	cr_immunities 5 = 20;
	cr_which_sheet = 511;
	cr_icon_adjust = 3;
	cr_default_strategy = 1;

begindefinecreature 209;
	clear;
	cr_name = "Barbarian Chief";
	cr_level = 85;
	cr_default_attitude = 4;
	cr_species = 3;
	cr_natural_armor = 10;
	cr_immunities 0 = 50;
	cr_immunities 1 = 100;
	cr_immunities 5 = 30;
	cr_attack_1 = 8;
	cr_attack_2 = 5;
	cr_attack_3 = 5;
	cr_attack_23_type = 1;
	cr_which_sheet = 516;
	cr_icon_adjust = 3;

begindefinecreature 212;
	import = 206;
	cr_name = "Rock Lizard";
	cr_icon_adjust = 4;
	cr_special_abil = 7; // charm ray
	cr_default_strategy = 1;
	cr_immunities 1 = 100; // Cold
	cr_immunities 2 = 20; // Magic
	cr_immunities 3 = 75; // Mental
	cr_immunities 5 = 40; // Melee

begindefinecreature 213;
	clear;
	cr_name = "Slith Barbarian";
	cr_level = 95;
	cr_default_attitude = 4;
	cr_species = 3;
	cr_start_item 0 = 3; // gold
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 210; // gold bracelet
	cr_start_item_chance 1 = 50;
	cr_start_item 2 = 307; // war charm
	cr_start_item_chance 2 = 33;
	cr_start_item 3 = 181; // beautiful skin
	cr_start_item_chance 3 = 25;
	cr_natural_armor = 8;
	cr_attack_1 = 9;
	cr_attack_2 = 7;
	cr_attack_3 = 7;
	cr_attack_1_type = 9;
	cr_attack_23_type = 0;
	cr_immunities 0 = 50;
	cr_immunities 1 = 50;
	cr_immunities 5 = 30;
	cr_icon_adjust = 5;
	cr_which_sheet = 514;

begindefinecreature 214;
	clear;
	cr_name = "Slith War-Mage";
	cr_level = 99;
	cr_default_attitude = 4;
	cr_species = 3;
	cr_hp_bonus = 25;
	cr_natural_armor = 8;
	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_start_item 0 = 3; // gold
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 181; // beautiful skin
	cr_start_item_chance 1 = 25;
	cr_start_item 2 = 231; // energy elixir
	cr_start_item_chance 2 = 100;
	cr_attack_1 = 7;
	cr_attack_2 = 5;
	cr_attack_3 = 5;
	cr_attack_1_type = 4;
	cr_attack_23_type = 7;
	cr_immunities 0 = 100; // Fire
	cr_immunities 1 = 50;
	cr_immunities 2 = 50;
	cr_immunities 5 = 20;
	cr_which_sheet = 511;
	cr_icon_adjust = 4;
	cr_default_strategy = 1;

begindefinecreature 215;
	clear;
	cr_name = "Barbarian Chief";
	cr_level = 99;
	cr_default_attitude = 4;
	cr_species = 3;
	cr_natural_armor = 10;
	cr_attack_1 = 10;
	cr_attack_2 = 9;
	cr_attack_3 = 9;
	cr_attack_1_type = 9;
	cr_attack_23_type = 0;
	cr_start_item 0 = 3; // gold
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 287; // wand of acid
	cr_start_item_chance 1 = 100;
	cr_start_item 2 = 212; // gold necklace
	cr_start_item_chance 2 = 100;
	cr_immunities 0 = 50;
	cr_immunities 1 = 100;
	cr_immunities 5 = 30;
	cr_which_sheet = 516;
	cr_icon_adjust = 4;

begindefinecreature 226;
	import = 214; // Slith War-Mage
	cr_hp_bonus = 200;
	cr_immunities 0 = 40;
	cr_immunities 1 = 100;
	cr_immunities 2 = 100;
	cr_immunities 3 = 100;
	cr_immunities 5 = 75;
	cr_icon_adjust = 1;
	
begindefinecreature 227;
	clear;
	cr_name = "Clawbug";
	cr_level = 60;
	cr_which_sheet = 519;
	cr_species = 9;
	cr_default_attitude = 4;
	cr_attack_1 = 5;
	cr_attack_1_type = 5;
	cr_special_abil = 1;
	cr_ap_bonus = 4;
	cr_immunities 0 = 100; // Fire
	cr_immunities 5 = 40; // Melee
	
begindefinecreature 232;
	clear;
	cr_name = "Kerbeross";
	cr_level = 95;
	cr_which_sheet = 524;
	cr_attack_1 = 12;
	cr_attack_1_type = 2;
	cr_attack_2 = 10;
	cr_attack_3 = 10;
	cr_attack_23_type = 2;
	cr_ap_bonus = 2;
	cr_default_attitude = 4;
	cr_species = 6;
	cr_immunities 0 = 100;
	cr_immunities 1 = 100;
	cr_immunities 2 = 100;
	cr_immunities 3 = 100;
	cr_immunities 5 = 75;

// Add new creatures
	
begindefinecreature 107;
	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 108;
	import = 34;
	cr_name = "Red slith";
	cr_icon_adjust = 128;

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

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

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

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

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

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

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

begindefinecreature 116;
	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 117;
	import = 38;
	cr_name = "Green slith chief";
	cr_icon_adjust = 256;

begindefinecreature 118;
	import = 38;
	cr_name = "Red slith chief";
	cr_icon_adjust = 130;

begindefinecreature 119;
	import = 38;
	cr_name = "Blue slith chief";
	cr_icon_adjust = 1;
	cr_hp_bonus = 2000;
	cr_immunities 0 = 50;
	cr_immunities 1 = 50;
	cr_immunities 2 = 25;
	cr_immunities 3 = 100;
	cr_immunities 5 = 80; // Melee

begindefinecreature 120;
	import = 38;
	cr_name = "Neon slith chief";
	cr_icon_adjust = 4;

begindefinecreature 133;
	import = 37;
	cr_name = "Purple slith priest";
	cr_icon_adjust = 677;

begindefinecreature 179;
	clear;
	cr_name = "Phaedra";
	cr_which_sheet = 517;
	cr_level = 95;
	cr_hp_bonus = 200;
	cr_sp_bonus = 400;
	cr_ap_bonus = 2;
	cr_small_or_large_template = 1;
	cr_natural_armor = 50;
	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_immunities 0 = 50; // Fire
	cr_immunities 1 = 50; // Cold
	cr_immunities 2 = 25; // Magic
	cr_immunities 3 = 75; // Mental
	cr_immunities 4 = 25; // Poison/acid
	cr_immunities 5 = 20; // Melee
begindefinecreature 180;
	cr_which_sheet = 518;

begindefinecreature 181;
	clear;
	cr_name = "Berekh";
	cr_which_sheet = 522;
	cr_level = 78;
	cr_hp_bonus = 500;
	cr_default_script = "berekh";
	cr_attack_1 = 8;
	cr_attack_1_type = 4;

begindefinecreature 194;
	import = 212;
	cr_name = "Frost Lizard";
	cr_icon_adjust = 1;
	cr_special_abil = 18; // breathes cold
	cr_default_courage = 75;
	cr_default_strategy = 0;
	cr_immunities 0 = 0; // Fire
	cr_immunities 1 = 100; // Cold
	cr_immunities 2 = 50; // Magic
	cr_immunities 3 = 0; // Mental
	cr_immunities 5 = 50; // Melee

begindefinecreature 238;
	import = 38;
	cr_which_sheet = 505;
begindefinecreature 239;
	cr_which_sheet = 507;
	
begindefinecreature 240;
	clear;
	cr_name = "Lizard Rider";
	cr_level = 50;
	cr_which_sheet = 506;
	cr_ap_bonus = 4;
	cr_species = 5;
	cr_default_attitude = 3;
	
begindefinecreature 241;
	clear;
	cr_name = "Great Naga";
	cr_which_sheet = 1608;
	cr_which_sheet_upper = 1609;
	cr_level = 70;
	cr_sp_bonus = 100;
	cr_hp_bonus = 200;
	cr_default_attitude = 4;
	cr_species = 14;
	cr_attack_1 = 5;
	cr_attack_1_type = 5;
	cr_default_strategy = 1;
	cr_special_abil = 7; // charm ray
	cr_immunities 0 = 100; // fire
	cr_immunities 2 = 100; // magic
	cr_immunities 3 = 100; // mental
	cr_immunities 5 = 20; // melee
	cr_icon_adjust = 5;
	
begindefinecreature 242;
	import = 206; // fyora
	cr_level = 56;
	cr_special_abil = 17; // breathes fire
	
begindefinecreature 243;
	import = 35; // Slith warrior
	cr_which_sheet = 512;
	cr_default_attitude = 4;
	cr_small_or_large_template = 0;
	
begindefinecreature 244;
	import = 35; // slith warrior
	cr_which_sheet = 514;
	cr_default_attitude = 4;
	cr_small_or_large_template = 0;
	
begindefinecreature 245;
	import = 35; // slith warrior
	cr_which_sheet = 515;
	cr_default_attitude = 4;
	cr_small_or_large_template = 0;
	
begindefinecreature 246;
	import = 35; // slith warrior
	cr_which_sheet = 510;
	cr_default_attitude = 4;
	cr_small_or_large_template = 0;
	
begindefinecreature 247;
	import = 36; // Slith priest
	cr_which_sheet = 513;
	cr_default_attitude = 4;
	cr_small_or_large_template = 0;
	
begindefinecreature 248;
	import = 37; // Slith mage
	cr_which_sheet = 511;
	cr_default_attitude = 4;
	cr_small_or_large_template = 0;
	
begindefinecreature 249;
	import = 38; // Slith chief
	cr_which_sheet = 516;
	cr_default_attitude = 4;
	cr_small_or_large_template = 0;
	cr_hp_bonus = 500;

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 = 133;

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;

// ******************************** ITEM TYPES ********************************
// Note: most base items have been modified from their base form. I could've
// treated them as default and modified them outside the base, but I wanted to
// save space.
// FIX OLD ITEMS
begindefineitem 445;
	import = 420;
begindefineitem 420;
	it_floor_which_sheet = 1038;
	it_floor_which_icon = 4;
	it_inventory_icon = 5;

// ADD NEW ITEMS

begindefineitem 445;
	import = 52;
	it_name = "Axe";
	it_full_name = "Axe";
	it_floor_which_sheet = 1005;
	it_floor_which_icon = 1;
	it_inventory_icon = 2;
	
begindefineitem 446;
	import = 82;
	it_name = "Cudgel";
	it_full_name = "Cudgel";
	it_floor_which_sheet = 1005;
	it_floor_which_icon = 1;
	it_inventory_icon = 2;
	it_damage_per_level = 5;
	it_bonus = 2;
	it_value = 240;
	it_weight = 50;

begindefineitem 447;
	import = 315;
	it_name = "Wand";
	it_full_name = "Crystal Wand";
	it_floor_which_sheet = 1006;
	it_floor_which_icon = 0;
	it_inventory_icon = 9;
	it_weapon_skill_used = 6;
	it_missile_anim_type = 5;
	it_damage_per_level = 10;
	it_bonus = 11;
	it_value = 12000;
	
begindefineitem 448;
	import = 282;
	it_name = "Wand";
	it_full_name = "Wand of Blows";
	it_floor_which_sheet = 1021;
	it_floor_which_icon = 1;
	it_inventory_icon = 2;
	it_ability_1 = 119;
	it_ability_str_1 = 20;
	it_value = 300;
	
begindefineitem 449;
	import = 154;
	it_floor_which_sheet = 1010;
	it_floor_which_icon = 3;
	it_inventory_icon = 3;
	
begindefineitem 450;
	import = 4;
	it_full_name = "Grapes";
	it_floor_which_sheet = 1023;
	it_floor_which_icon = 0;
	it_inventory_icon = 0;

begindefineitem 451;
	clear;
	it_name = "Egg";
	it_full_name = "Drake Egg";
	it_variety = 21;
	it_floor_which_sheet = 1023;
	it_floor_which_icon = 9;
	it_inventory_icon = 9;
	it_value = 30;
	it_weight = 15;
	
begindefineitem 452;
	clear;
	it_full_name = "Aranea Fangs";
	it_variety = 21;
	it_floor_which_sheet = 1024;
	it_floor_which_icon = 6;
	it_inventory_icon = 5;
	it_value = 10;
	it_weight = 5;
	it_identified = 1;
	
begindefineitem 453;
	clear;
	it_name = "Book";
	it_full_name = "Book";
	it_variety = 21;
	it_floor_which_sheet = 1026;
	it_floor_which_icon = 1;
	it_inventory_icon = 1;
	it_weight = 10;
	it_identified = 1;
	it_ability_1 = 207;

begindefineitem 454; 
	it_floor_which_icon = 2;
	it_inventory_icon = 2;

begindefineitem 455;
	it_floor_which_icon = 3;
	it_inventory_icon = 3;
	
begindefineitem 456;
	import = 38;
	it_name = "Armor";
	it_full_name = "Chitin Armor";
	it_floor_which_sheet = 1029;
	it_floor_which_icon = 0;
	it_inventory_icon = 1;
	it_magic = 0;
	
begindefineitem 457;
	clear;
	it_name = "Baton";
	it_full_name = "Broken Baton";
	it_floor_which_sheet = 1029;
	it_floor_which_icon = 2;
	it_inventory_icon = 3;
	it_variety = 21;
	it_value = 5;
	it_weight = 20;
	it_junk_item = 1;
	
begindefineitem 458;
	import = 220;
	it_name = "Flask";
	it_full_name = "Healing Flask";
	it_floor_which_sheet = 1029;
	it_floor_which_icon = 4;
	it_inventory_icon = 5;
	it_charges = 5;
	it_value = 250;
	it_weight = 20;
	
begindefineitem 459;
	import = 314;
	it_name = "Baton";
	it_full_name = "Spore Baton";
	it_floor_which_sheet = 1029;
	it_floor_which_icon = 6;
	it_inventory_icon = 7;
	it_damage_per_level = 5;
	it_value = 2000;
	it_bonus = 4;
	it_missile_anim_type = 6;
	
begindefineitem 460;
	import = 134;
	it_full_name = "Nagascale Shield";
	it_floor_which_sheet = 1030;
	it_floor_which_icon = 0;
	it_inventory_icon = 1;
	it_bonus = 15;
	it_protection = 10;
	it_value = 6000;
	it_encumbrance = 1;
	it_ability_1 = 84; // resist petrify
	it_ability_str_1 = 15;
	it_ability_2 = 59; // resist poison
	it_ability_str_2 = 6;
	it_ability_3 = 60; // resist acid
	it_ability_str_3 = 6;
	it_ability_4 = 29; // lethal blow
	it_ability_str_4 = 2;
	
begindefineitem 461;
	clear;
	it_name = "Stone";
	it_full_name = "Stone";
	it_variety = 21;
	it_floor_which_sheet = 1030;
	it_floor_which_icon = 2;
	it_inventory_icon = 3;
	it_value = 5;
	it_weight = 10;
	
begindefineitem 462;
	import = 435;
	it_name = "Bag of Herbs";
	it_full_name = "Bag of Curing Herbs";
	it_floor_which_sheet = 1030;
	it_floor_which_icon = 4;
	it_inventory_icon = 5;
	it_ability_1 = 205;
	it_ability_str_1 = 25;
	
begindefineitem 463;
	import = 453;
	it_floor_which_sheet = 1032;
	it_floor_which_icon = 0;
	it_inventory_icon = 1;
	
begindefineitem 464;
	import = 149;
	it_full_name = "Basket";
	it_floor_which_sheet = 1032;
	it_floor_which_icon = 2;
	it_inventory_icon = 3;
	
begindefineitem 465;
	clear;
	it_name = "Tools";
	it_full_name = "Lockpicking Tools";
	it_floor_which_sheet = 1032;
	it_floor_which_icon = 4;
	it_inventory_icon = 5;
	it_variety = 21;
	it_value = 400;
	it_weight = 100;
	it_ability_1 = 211;
	it_ability_str_1 = 15;
	
begindefineitem 466;
	it_name = "Tool";
	it_full_name = "Lockpicking Tool";
	it_floor_which_icon = 8;
	it_inventory_icon = 9;
	it_value = 200;
	it_weight = 50;
	it_ability_str_1 = 10;
	
begindefineitem 467;
	import = 149;
	it_full_name = "Lamp";
	it_floor_which_sheet = 1033;
	it_floor_which_icon = 1;
	it_inventory_icon = 0;
	
begindefineitem 468;
	import = 149;
	it_full_name = "Lab Equipment";
	it_floor_which_sheet = 1033;
	it_floor_which_icon = 2;
	it_inventory_icon = 2;
	it_value = 5;
	
begindefineitem 469;
	it_floor_which_icon = 3;
	it_inventory_icon = 3;
	
begindefineitem 470;
	import = 376;
	it_full_name = "Napkin";
	it_floor_which_icon = 8;
	it_inventory_icon = 8;
	
begindefineitem 471;
	import = 149;
	it_full_name = "Implement";
	it_floor_which_sheet = 1035;
	it_floor_which_icon = 6;
	it_inventory_icon = 7;
	
begindefineitem 472;
	import = 72;
	it_full_name = "Pike of Vengeance";
	it_floor_which_sheet = 1035;
	it_floor_which_icon = 8;
	it_inventory_icon = 9;
	it_ability_1 = 73;
	it_ability_str_1 = 20;
	it_value = 1500;
	it_magic = 1;
	
begindefineitem 473;
	import = 82;
	it_full_name = "Blessed Staff";
	it_floor_which_sheet = 1036;
	it_floor_which_icon = 0;
	it_inventory_icon = 1;
	it_bonus = 4;
	it_value = 400;
	it_weight = 50;
	it_identified = 0;
	it_magic = 1;

begindefineitem 474;
	import = 73;
	it_full_name = "Doomguard Pike";
	it_floor_which_sheet = 1036;
	it_floor_which_icon = 2;
	it_inventory_icon = 3;
	it_damage_per_level = 12;
	it_bonus = 12;
	it_value = 15000;
	it_ability_1 = 61; // bonus AP
	it_ability_str_1 = 1;
	it_ability_2 = 54; // resist all hostile
	it_ability_str_2 = 2;
	it_ability_3 = 22; // blademaster
	it_ability_str_3 = 2;
	it_ability_4 = 50; // melee to hit
	it_ability_str_4 = 4;

begindefineitem 475;
	import = 52;
	it_full_name = "Light Short Sword";
	it_floor_which_sheet = 1036;
	it_floor_which_icon = 4;
	it_inventory_icon = 5;
	it_ability_1 = 5;
	it_ability_str_1 = 3;
	it_value = 500;

begindefineitem 476;
	import = 52;
	it_name = "Knife";
	it_full_name = "Curved Knife";
	it_floor_which_sheet = 1036;
	it_floor_which_icon = 6;
	it_inventory_icon = 7;
	it_weight = 30;

begindefineitem 477;
	import = 58;
	it_name = "Sword";
	it_full_name = "Rapier";
	it_floor_which_sheet = 1036;
	it_floor_which_icon = 8;
	it_inventory_icon = 9;
	it_damage_per_level = 10;
	it_bonus = 10;
	it_value = 10000;
	it_ability_1 = 61; // bonus AP
	it_ability_str_1 = 1;
	it_ability_2 = 55; // resist fire
	it_ability_str_2 = 6;
	it_ability_3 = 56; // resist cold
	it_ability_str_3 = 6;
	it_ability_4 = 31; // sharpshooter
	it_ability_str_4 = 1;
	
begindefineitem 478;
	import = 63;
	it_name = "Sword";
	it_full_name = "Sword of War";
	it_floor_which_sheet = 1037;
	it_floor_which_icon = 0;
	it_inventory_icon = 1;
	it_damage_per_level = 12;
	it_bonus = 13;
	it_value = 17000;
	it_ability_1 = 61; // bonus AP
	it_ability_str_1 = 1;
	it_ability_2 = 64; // bonus all stats
	it_ability_str_2 = 2;
	it_ability_3 = 50; // melee to hit
	it_ability_str_3 = 4;
	it_ability_4 = 51; // melee damage
	it_ability_str_4 = 4;
	
begindefineitem 479;
	import = 344;
	it_name = "Sword";
	it_full_name = "Sword of Velthkhogroz";
	it_floor_which_sheet = 1037;
	it_floor_which_icon = 2;
	it_inventory_icon = 3;
	it_variety = 2;
	it_damage_per_level = 11;
	it_bonus = 11;
	it_value = 14000;
	it_weight = 200;
	it_ability_str_1 = 30; // fire damage
	it_ability_2 = 89; // cold damage
	it_ability_str_2 = 30;
	it_ability_3 = 21; // parry
	it_ability_str_3 = 3;
	it_ability_4 = 30; // riposte
	it_ability_str_4 = 3;
	
begindefineitem 480;
	import = 43;
	it_full_name = "Divine Armor";
	it_floor_which_sheet = 1037;
	it_floor_which_icon = 6;
	it_inventory_icon = 7;
	it_bonus = 50;
	it_protection = 20;
	it_value = 20000;
	it_ability_1 = 61; // bonus AP
	it_ability_str_1 = 1;
	it_ability_2 = 54; // resist all hostile
	it_ability_str_2 = 2;
	it_ability_3 = 88; // lifesaver
	it_ability_str_3 = 5;
	
begindefineitem 481;
	import = 28;
	it_name = "Armor";
	it_full_name = "Armor of Wisdom";
	it_floor_which_sheet = 1037;
	it_floor_which_icon = 8;
	it_inventory_icon = 9;
	it_protection = 45;
	it_bonus = 30;
	it_value = 12000;
	it_ability_1 = 61; // bonus AP
	it_ability_str_1 = 2;
	it_ability_2 = 57; // resist magic
	it_ability_str_2 = 6;
	it_ability_3 = 12; // mage spells
	it_ability_str_3 = 2;
	it_ability_4 = 13; // priest spells
	it_ability_str_4 = 2;
	
begindefineitem 482;
	import = 43;
	it_full_name = "Rough Plate Mail";
	it_floor_which_sheet = 1038;
	it_floor_which_icon = 0;
	it_inventory_icon = 1;
	it_bonus = 30;
	it_protection = 60;
	it_value = 10000;
	
begindefineitem 483;
	clear;
	it_name = "Orb";
	it_full_name = "Orb of Flight";
	it_floor_which_sheet = 1038;
	it_floor_which_icon = 6;
	it_inventory_icon = 7;
	it_variety = 21;
	it_value = 500;
	it_weight = 20;
	it_ability_1 = 207;
	it_ability_str_1 = 70;
	
begindefineitem 484;
	import = 147;
	it_full_name = "Faerie Gloves";
	it_floor_which_sheet = 1040;
	it_floor_which_icon = 1;
	it_inventory_icon = 0;
	it_bonus = 6;
	it_protection = 5;
	it_ability_1 = 64; // bonus all stats
	it_ability_str_1 = 3;
	it_ability_2 = 61; // bonus AP
	it_ability_str_2 = 1;
	it_ability_3 = 86; // regenerate
	it_ability_str_3 = 5;
	it_value = 5000;
	
begindefineitem 485;
	import = 138;
	it_name = "Hat";
	it_full_name = "Muckwalking Hat";
	it_floor_which_sheet = 1040;
	it_floor_which_icon = 3;
	it_inventory_icon = 2;
	it_magic = 1;
	it_weight = 30;
	it_bonus = 12;
	it_protection = 7;
	it_ability_1 = 88; // lifesaving
	it_ability_str_1 = 3;
	it_ability_2 = 59; // resist poison
	it_ability_str_2 = 4;
	it_ability_3 = 60; // resist acid
	it_ability_str_3 = 4;
	it_ability_4 = 26; // magery
	it_ability_str_4 = 2;
	it_value = 4000;
	
begindefineitem 486;
	import = 138;
	it_name = "Hat";
	it_full_name = "Hat of Stability";
	it_floor_which_sheet = 1040;
	it_floor_which_icon = 7;
	it_inventory_icon = 6;
	it_magic = 1;
	it_weight = 30;
	it_bonus = 15;
	it_protection = 9;
	it_ability_1 = 57; // resist magic
	it_ability_str_1 = 8;
	it_ability_2 = 58; // resist mental
	it_ability_str_2 = 8;
	it_ability_2 = 61; // bonus AP
	it_ability_str_2 = 1;
	it_value = 6000;
	
begindefineitem 487;
	import = 302;
	it_full_name = "Martyr's Charm";
	it_floor_which_sheet = 1041;
	it_floor_which_icon = 2;
	it_inventory_icon = 2;
	it_ability_1 = 87;
	it_ability_str_1 = 30;
	it_value = 1500;

begindefineitem 488;
	import = 302;
	it_full_name = "Charm of Regeneration";
	it_floor_which_sheet = 1041;
	it_floor_which_icon = 5;
	it_inventory_icon = 5;
	it_ability_1 = 86;
	it_ability_str_1 = 5;
	it_value = 1000;

begindefineitem 489;
	import = 302;
	it_full_name = "Necklace of Thakta";
	it_floor_which_sheet = 1041;
	it_floor_which_icon = 6;
	it_inventory_icon = 6;
	it_ability_1 = 88; // lifesaving
	it_ability_str_1 = 6;
	it_ability_2 = 50; // melee to hit
	it_ability_str_2 = 2;
	it_ability_3 = 51; // melee damage
	it_ability_str_3 = 3;
	it_ability_4 = 21; // parry
	it_ability_str_4 = 2;
	it_value = 5000;
	
begindefineitem 490;
	clear;
	it_name = "Gems";
	it_full_name = "Sapphires";
	it_floor_which_sheet = 1042;
	it_floor_which_icon = 5;
	it_inventory_icon = 2;
	it_variety = 21;
	it_value = 1000;
	it_weight = 20;
	
begindefineitem 491;
	it_full_name = "Rubies";
	it_floor_which_icon = 6;
	it_inventory_icon = 3;
	
begindefineitem 492;
	it_full_name = "Aquamarines";
	it_floor_which_icon = 7;
	it_inventory_icon = 4;
	
begindefineitem 493;
	import = 208;
	it_full_name = "Ring of Ksoren";
	it_floor_which_sheet = 1042;
	it_floor_which_icon = 8;
	it_inventory_icon = 8;
	it_value = 800;
	it_ability_1 = 57; // resist magic
	it_ability_str_1 = 6;
	it_ability_2 = 58; // resist mental
	it_ability_str_2 = 12;
	it_ability_3 = 19; // luck
	it_ability_str_3 = 1;
	it_ability_4 = 26; // magery
	it_ability_str_4 = 1;
	
begindefineitem 494;
	import = 208;
	it_full_name = "Ghost Ring";
	it_floor_which_sheet = 1042;
	it_floor_which_icon = 9;
	it_inventory_icon = 9;
	it_value = 600;
	it_ability_1 = 88; // lifesaving
	it_ability_str_1 = 6;
	it_ability_2 = 64; // bonus all stats
	it_ability_str_2 = 2;
	it_ability_3 = 54; // resist all
	it_ability_str_3 = 2;
	it_ability_4 = 87; // martyr's shield
	it_ability_str_4 = 20;
	
begindefineitem 495;
	import = 220;
	it_full_name = "Knowledge Elixir";
	it_floor_which_sheet = 1043;
	it_floor_which_icon = 7;
	it_inventory_icon = 6;
	it_ability_1 = 203;
	it_ability_str_1 = 5;
	it_value = 1500;
	
begindefineitem 496;
	import = 58;
	it_name = "Sword";
	it_full_name = "Gleaming Scimitar";
	it_floor_which_sheet = 1046;
	it_floor_which_icon = 7;
	it_inventory_icon = 6;
	it_damage_per_level = 9;
	it_bonus = 8;
	it_value = 8000;
	it_ability_1 = 61; // bonus ap
	it_ability_str_1 = 1;
	it_ability_2 = 72; // poison damage
	it_ability_str_2 = 20;
	it_ability_3 = 50; // melee to hit
	it_ability_str_3 = 2;
	it_ability_4 = 51; // melee damage
	it_ability_str_4 = 2;
	
// End base

// Alter default items
// These simply modify default items to be slightly different.
begindefineitem 262;
	import = 302; // chill charm
begindefineitem 302;
	it_full_name = "Ice Charm";
	it_ability_str_1 = 5;
	it_value = 2500;
	
begindefineitem 262;
	import = 365; // Micah's Gloves
begindefineitem 365;
	it_name = "Rkhthss's Gloves";
	
begindefineitem 262;
	import = 432; // Ring of Speed
begindefineitem 432;
	it_full_name = "Ring of Reflexes";
	it_ability_str_1 = 2;
	it_ability_2 = 20; // quick strike
	it_ability_str_2 = 1;
	it_ability_3 = 24; // gymnastics
	it_ability_str_3 = 3;
	it_ability_4 = 27; // resistance
	it_ability_str_4 = 1;
	it_value = 5000;

// Replace default items
// These changes are wholesale replacements -- the new items don't resemble the
// old ones.
begindefineitem 59;
	import = 326;
	it_name = "Spellshard";
	it_full_name = "Shard of Regeneration";
	it_charges = 0;
	it_once_per_day = 1;
	it_ability_1 = 204;
	it_ability_str_1 = 30;
	it_value = 5000;

begindefineitem 94;
	import = 370;
	it_full_name = "Divine Slith Spear";
	it_variety = 2;
	it_damage_per_level = 10;
	it_bonus = 15;
	it_value = 20000;
	it_ability_1 = 61; // bonus ap
	it_ability_str_1 = 1;
	it_ability_2 = 64; // bonus all stats
	it_ability_str_2 = 4;
	it_magic = 1;

begindefineitem 99;
	import = 68;
	it_full_name = "Keloran Spear";
	it_damage_per_level = 9;
	it_bonus = 11;
	it_value = 15000;
	it_ability_1 = 61; // bonus ap
	it_ability_str_1 = 2;
	it_ability_2 = 89; // cold damage
	it_ability_str_2 = 30;
	it_ability_3 = 75; // damage to demons
	it_ability_str_3 = 30;
	it_ability_4 = 22; // blademaster
	it_ability_str_4 = 3;

begindefineitem 104;
	import = 88;
	it_damage_per_level = 10;
	it_bonus = 10;
	it_value = 600;

begindefineitem 262;
	import = 17; // green cloak
	it_full_name = "Goblin Cloak";
	it_protection = 5;
	it_bonus = 5;
	it_value = 5000;
	it_ability_1 = 55; // resist fire
	it_ability_str_1 = 12;
	it_ability_2 = 56; // resist cold
	it_ability_str_2 = 10;
	it_ability_3 = 57; // resist magic
	it_ability_str_3 = 6;
	it_ability_4 = 63; // all magic stats
	it_ability_str_4 = 1;
	it_icon_adjust = 5;

begindefineitem 263;
	import = 385; // vahnatai cloak
	it_full_name = "Rakshasa Cloak";
	it_icon_adjust = 3;
	it_protection = 20;
	it_bonus = 15;
	it_value = 7000;
	it_encumbrance = 1;
	it_ability_1 = 55; // resist fire
	it_ability_str_1 = 12;
	it_ability_2 = 56; // resist cold
	it_ability_str_2 = 12;
	it_ability_3 = 57; // resist magic
	it_ability_str_3 = 8;
	it_ability_4 = 83; // lower chance to be hit
	it_ability_str_4 = 3;

begindefineitem 264;
	import = 134; // blessed large shield
	it_full_name = "Royal Shield";
	it_protection = 15;
	it_bonus = 20;
	it_value = 7500;
	it_encumbrance = 1;
	it_ability_1 = 54; // resist all hostile
	it_ability_str_1 = 6;
	it_ability_2 = 61; // ap
	it_ability_str_2 = 1;
	it_ability_3 = 83; // to be hit
	it_ability_str_3 = 6;
	it_ability_4 = 29; // lethal blow
	it_ability_str_4 = 3;
	it_icon_adjust = 1;

begindefineitem 265;
	import = 427; // martyr's shield
	it_full_name = "Shield of Testament";
	it_protection = 1;
	it_bonus = 0;
	it_value = 10000;
	it_encumbrance = 1;
	it_ability_str_1 = 75; // +75 martyr's shield
	it_ability_2 = 88; // lifesaver
	it_ability_str_2 = 6;

begindefineitem 266;
	import = 333; // pants of power
	it_full_name = "Demonskin Pants";
	it_protection = 3;
	it_value = 400;
	it_ability_1 = 61; // bonus AP
	it_ability_str_1 = 1;
	it_ability_2 = 59; // resist poison
	it_ability_str_2 = 6;
	it_ability_3 = 60; // resist acid
	it_ability_str_3 = 6;
	it_ability_4 = 11; // assassination
	it_ability_str_4 = 2;

begindefineitem 267;
	import = 299; // warrior's bracelet
	it_full_name = "Somnekh's Bracelet";
	it_value = 3000;
	it_icon_adjust = 128;
	it_ability_1 = 60; // resist acid
	it_ability_str_1 = 8;
	it_ability_2 = 59; // resist poison
	it_ability_str_2 = 8;
	it_ability_3 = 54; // resist all hostile
	it_ability_str_3 = 1;
	it_ability_4 = 20; // quick strike
	it_ability_str_4 = 2;

begindefineitem 268;
	import = 300; // lucky bracelet
	it_full_name = "Bracelet of Mobility";
	it_value = 4000;
	it_ability_1 = 61; // bonus AP
	it_ability_str_1 = 2;
	it_ability_2 = 20; // quick strike
	it_ability_str_2 = 2;
	it_ability_3 = 24; // gymnastics
	it_ability_str_3 = 2;

begindefineitem 269;
	import = 493;
	it_full_name = "Ring of Vylas";
	it_value = 5000;
	it_icon_adjust = 1;
	it_ability_1 = 84; // resist petrify
	it_ability_str_1 = 19;
	it_ability_str_2 = 19; // resist mental
	it_ability_3 = 12; // mage spells
	it_ability_str_3 = 2;
	it_ability_4 = 13; // priest spells
	it_ability_str_4 = 2;
	
begindefineitem 293;
	import = 384;
	it_full_name = "Steel Razordisk";
	it_bonus = 6;
	it_value = 100;
	
begindefineitem 301;
	import = 176; // Magic Lockpicks
	it_full_name = "Enchanted Lockpicks";
	it_ability_str_1 = 6;
	it_value = 200;
	it_special_class = 1;
	
begindefineitem 311;
	import = 444; // titanium boots
	it_full_name = "Boots of Leksandross";
	it_encumbrance = 0;
	it_bonus = 6;
	it_value = 5000;
	it_ability_1 = 61; // bonus AP
	it_ability_str_1 = 1;
	it_ability_2 = 60; // resist acid
	it_ability_str_2 = 4;
	it_ability_3 = 59; // resist poison
	it_ability_str_3 = 4;
	it_ability_4 = 20; // quick action
	it_ability_str_4 = 3;

begindefineitem 312;
	import = 444; // titanium boots
	it_full_name = "Demonskin Boots";
	it_encumbrance = 0;
	it_value = 2000;
	it_ability_1 = 61; // bonus AP
	it_ability_str_1 = 1;
	it_ability_2 = 55; // resist fire
	it_ability_str_2 = 6;
	it_ability_3 = 56; // resist cold
	it_ability_str_3 = 6;
	it_ability_4 = 24; // gymnastics
	it_ability_str_4 = 3;
	
begindefineitem 363;
	import = 483;
	it_full_name = "Orb of Communication";
	it_value = 50;
	it_ability_1 = 0;
	it_icon_adjust = 1;

// New items
	
begindefineitem 394;
	import = 335; // Robe of the Magi
	it_full_name = "Enchanted Mithril Robe";
	it_protection = 25;
	it_bonus = 15;
	it_ability_1 = 61; // bonus AP
	it_ability_str_1 = 2;
	it_ability_2 = 54; // resist all hostile
	it_ability_str_2 = 4;
	it_ability_3 = 64; // bonus all stats
	it_ability_str_3 = 3;
	it_value = 15000;
	it_icon_adjust = 1; // blue
	
begindefineitem 378;
	import = 362;
	it_full_name = "Zektoth's Gauntlets";
	it_protection = 5;
	it_bonus = 4;
	it_value = 4000;
	it_ability_1 = 51; // bonus melee damage
	it_ability_str_1 = 4;
	it_ability_2 = 53; // bonus missile damage
	it_ability_str_2 = 4;
	it_ability_3 = 61; // bonus AP
	it_ability_str_3 = 1;
	it_ability_4 = 16; // tool use
	it_ability_str_4 = 2;
	
begindefineitem 497;
	import = 454;
	it_full_name = "Hostile Spellbook";
	it_value = 0;
	it_ability_1 = 219;
	it_ability_str_1 = 13;
	
begindefineitem 498;
	import = 454;
	it_full_name = "Blessing Spellbook";
	it_value = 0;
	it_icon_adjust = 4;
	it_ability_1 = 207;
	it_ability_str_1 = 15;