beginscendatascript;

// Item Types

begindefineitem 478; // Thralni's ring
	import = 273;
	it_full_name = "Ring of Thralni";
	it_ability_1 = 88;
	it_ability_str_1 = 1;
	it_value = 8000;

begindefineitem 479; // four hydra heads
	clear;
	it_name = "Head";
	it_full_name = "Red hydra head";
	it_floor_which_sheet = 526;
	it_floor_which_icon = 0;
	it_inventory_icon = 1;
	it_variety = 21;
	it_value = 100;
	it_weight = 10;
 	it_identified = 1;
 
 begindefineitem 480;
	clear;
	it_name = "Head";
	it_full_name = "Blue hydra head";
	it_floor_which_sheet = 526;
	it_floor_which_icon = 2;
	it_inventory_icon = 3;
	it_variety = 21;
	it_value = 100;
	it_weight = 10;
 	it_identified = 1;
 
 begindefineitem 481;
	clear;
	it_name = "Head";
	it_full_name = "Green hydra head";
	it_floor_which_sheet = 526;
	it_floor_which_icon = 4;
	it_inventory_icon = 5;
	it_variety = 21;
	it_value = 100;
	it_weight = 10;
 	it_identified = 1;
 
 begindefineitem 482;
	clear;
	it_name = "Head";
	it_full_name = "Baby hydra head";
	it_floor_which_sheet = 526;
	it_floor_which_icon = 6;
	it_inventory_icon = 7;
	it_variety = 21;
	it_value = 100;
	it_weight = 10;
 	it_identified = 1;

begindefineitem 483; // note
	clear;
	it_name = "Piece of paper";
	it_full_name = "Note";
	it_floor_which_sheet = 1014;
	it_floor_which_icon = 3;
	it_inventory_icon = 4;
	it_variety = 21;
	it_value = 500;
	it_weight = 20;
	it_ability_1 = 207;
 	it_ability_str_1 = 12;
 	it_identified = 1;
 
begindefineitem 484; // potion
 	clear;
 	it_name = "Potion";
 	it_full_name = "Explosive potion";
 	it_floor_which_sheet = 1020;
 	it_floor_which_icon = 3;
 	it_inventory_icon = 4;
 	it_variety = 21;
 	it_value = 1000;
 	it_weight = 1;

begindefineitem 485; // Flanagan's book
	clear;
	it_name = "Book";
	it_full_name = "Old spell book";
	it_floor_which_sheet = 1026;
 	it_floor_which_icon = 2;
 	it_inventory_icon = 2;
 	it_variety = 8;
 	it_value = 1000;
 	it_weight = 5;

begindefineitem 486; // the two scepters
	clear;
	it_name = "Scepter";
	it_full_name = "The real scepter";
	it_floor_which_sheet = 1030;
 	it_floor_which_icon = 6;
 	it_inventory_icon = 7;
 	it_variety = 8;
 	it_value = 500;
 	it_weight = 4;

begindefineitem 487;
	clear;
	it_name = "Scepter";
	it_full_name = "The fake scepter";
	it_floor_which_sheet = 1030;
 	it_floor_which_icon = 7;
 	it_inventory_icon = 8;
 	it_variety = 8;
 	it_value = 5;
 	it_weight = 4;

begindefineitem 488; // scroll
 	clear;
 	it_name = "Scroll";
 	it_full_name = "Sort of instruction scroll";
 	it_floor_which_sheet = 1045;
 	it_floor_which_icon = 1;
 	it_inventory_icon = 2;
 	it_variety = 8;
 	it_value = 100;
 	it_weight = 1;

begindefineitem 489; // reward of Redrick
	clear;
	it_name = "Horn";
	it_full_name = "Horn of warriors";
	it_floor_which_sheet = 1012;
	it_floor_which_icon = 2;
	it_inventory_icon = 3;
	it_variety = 21;
	it_value = 1200;
	it_weight = 3;
	it_ability_1 = 207;
 	it_ability_str_1 = 14;
 	it_identified = 1;
 	
 begindefineitem 490; // small map
	clear;
	it_name = "Piece of paper";
	it_full_name = "Small map";
	it_floor_which_sheet = 1014;
	it_floor_which_icon = 3;
	it_inventory_icon = 4;
	it_variety = 21;
	it_value = 3;
	it_weight = 1;
	it_ability_1 = 207;
 	it_ability_str_1 = 15;
 	it_identified = 1;

// creatures

begindefinecreature 236;
	import = 127;
	cr_level = 20;

begindefinecreature 237;
	clear;
	cr_name = "Senarti";
	cr_level = 30;
	cr_hp_bonus = 10;
	cr_default_attitude = 4;
	cr_species = 2;
	cr_attack_1 = 3;
	cr_attack_1_type = 0;
	cr_default_strategy = 10;
	cr_which_sheet = 500;
	cr_small_or_large_template = 1;
	cr_start_item 0 = 30;
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 51;
	cr_start_item_chance 1 = 100;
	cr_start_item 2 = 114;
	cr_start_item_chance 2 = 100;
	
begindefinecreature 238;
	clear;
	cr_name = "Senarti chief";
	cr_level = 33;
	cr_hp_bonus = 15;
	cr_default_attitude = 4;
	cr_species = 2;
	cr_attack_1 = 4;
	cr_attack_1_type = 0;
	cr_default_strategy = 10;
	cr_which_sheet = 501;
	cr_small_or_large_template = 1;
	cr_start_item 0 = 31;
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 55;
	cr_start_item_chance 1 = 100;
	cr_start_item 2 = 121;
	cr_start_item_chance 2 = 75;

begindefinecreature 239;
	clear;
	cr_name = "Senarti priest";
	cr_level = 31;
	cr_hp_bonus = 20;
	cr_default_attitude = 4;
	cr_species = 2;
	cr_attack_1 = 2;
	cr_attack_1_type = 0;
	cr_default_strategy = 1;
	cr_which_sheet = 502;
	cr_small_or_large_template = 1;
	cr_start_item 0 = 111;
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 46;
	cr_start_item_chance 1 = 80;
	cr_start_item 2 = 228;
	cr_start_item_chance 2 = 50;
	cr_what_stat_adjust 2 = 12;
	cr_amount_stat_adjust 2 = 12;

begindefinecreature 240;
	clear;
	cr_name = "Senarti archer";
	cr_level = 29;
	cr_hp_bonus = 15;
	cr_default_attitude = 4;
	cr_species = 2;
	cr_attack_1 = 2;
	cr_attack_1_type = 0;
	cr_default_strategy = 11;
	cr_which_sheet = 503;
	cr_what_stat_adjust 0 = 6;
	cr_amount_stat_adjust 0 = 3;
	cr_what_stat_adjust 1 = 9;
	cr_amount_stat_adjust 1 = 7;
	cr_start_item 0 = 91;
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 92;
	cr_start_item_chance 1 = 100;
	cr_start_item 2 = 100;
	cr_start_item_chance 2 = 100;
	cr_start_item 3 = 101;
	cr_start_item_chance 3 = 100;
	cr_start_item 4 = 51;
	cr_start_item_chance 4 = 100;
	cr_start_item 5 = 2;
	cr_start_item_chance 5 = 60;
	cr_start_item 6 = 275;
	cr_start_item_chance 6 = 10;
	cr_start_item 7 = 233;
	cr_start_item_chance 7 = 30;
	
begindefinecreature 241;
	clear;
	cr_name = "Senarti mage";
	cr_level = 32;
	cr_hp_bonus = 20;
	cr_default_attitude = 4;
	cr_species = 2;
	cr_attack_1 = 2;
	cr_attack_1_type = 0;
	cr_default_strategy = 1;
	cr_which_sheet = 508;
	cr_small_or_large_template = 1;
	cr_start_item 0 = 111;
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 46;
	cr_start_item_chance 1 = 80;
	cr_start_item 2 = 228;
	cr_start_item_chance 2 = 50;	
	cr_what_stat_adjust 1 = 11;
	cr_amount_stat_adjust 1 = 12;

begindefinecreature 242;
	clear;
	cr_name = "Dakrach's spirit";
	cr_level = 35;
	cr_hp_bonus = 100;
	cr_sp_bonus = 50;
	cr_special_abil = 2;
	cr_default_attitude = 3;
	cr_species = 8;
	cr_attack_1 = 0;
	cr_attack_1_type = 8;
	cr_default_strategy = 1;
	cr_which_sheet = 509;
	cr_small_or_large_template = 1;
	cr_what_stat_adjust 1 = 11;
	cr_amount_stat_adjust 1 = 14;
	cr_what_stat_adjust 2 = 12;
	cr_amount_stat_adjust 2 = 14;

begindefinecreature 243;
	clear;
	cr_name = "Thralni's army";
	cr_level = 35;
	cr_hp_bonus = 30;
	cr_sp_bonus = 20;
	cr_default_attitude = 3;
	cr_species = 0;
	cr_attack_1 = 0;
	cr_attack_1_type = 8;
	cr_default_strategy = 1;
	cr_which_sheet = 511;
	cr_what_stat_adjust 1 = 11;
	cr_amount_stat_adjust 1 = 7;

begindefinecreature 244;
	clear;
	cr_name = "Empire army";
	cr_level = 35;
	cr_hp_bonus = 30;
	cr_sp_bonus = 20;
	cr_default_attitude = 3;
	cr_species = 0;
	cr_attack_1 = 0;
	cr_attack_1_type = 8;
	cr_default_strategy = 1;
	cr_which_sheet = 512;

begindefinecreature 245;
	clear;
	cr_name = "Goblin shaman";
	cr_level = 15;
	cr_hp_bonus = 30;
	cr_sp_bonus = 20;
	cr_default_attitude = 3;
	cr_species = 0;
	cr_attack_1 = 0;
	cr_attack_1_type = 8;
	cr_default_strategy = 1;
	cr_which_sheet = 521;
	cr_what_stat_adjust 1 = 11;
	cr_amount_stat_adjust 1 = 10;

begindefinecreature 246;
	import = 162;
	cr_start_item 1 = 479;
	cr_start_item_chance 1 = 100;

begindefinecreature 247;
	import = 163;
	cr_start_item 1 = 480;
	cr_start_item_chance 1 = 100;

begindefinecreature 248;
	import = 161;
	cr_start_item 1 = 481;
	cr_start_item_chance 1 = 100;

begindefinecreature 249;
	import = 164;
	cr_start_item 1 = 482;
	cr_start_item_chance 1 = 100;

begindefinecreature 250;
	import = 18;
	cr_name = "Emperor Thralni";
	cr_level = 42;
	cr_hp_bonus = 150;
	cr_start_item 0 = 132;
	cr_what_stat_adjust 1 = 11;
	cr_amount_stat_adjust 1 = 10;
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 40;
	cr_start_item_chance 1 = 100;
	cr_start_item 2 = 56;
	cr_start_item_chance 2 = 100;
	cr_start_item 3 = 3;
	cr_start_item_chance 3 = 75;

begindefinecreature 251;
	import = 123;
	cr_name = "Bandit warrior";
	cr_level = 25;
	cr_hp_bonus = 80;

begindefinecreature 252;
	import = 124;
	cr_name = "Bandit archer";
	cr_level = 26;
	cr_hp_bonus = 100;

begindefinecreature 253;
	import = 19;
	cr_name = "Assasin";
	cr_level = 27;
	cr_hp_bonus = 120;

begindefinecreature 254;
	import = 16;
	cr_name = "Wizard";
	cr_level = 29;
	cr_hp_bonus = 160;

begindefinecreature 255;
	import = 15;
	cr_name = "Bandit mage";
	cr_level = 25;
	cr_hp_bonus = 80;
	
begindefinecreature 234;
	import = 13;
	cr_name = "Bandit priest";
	cr_level = 25;
	cr_hp_bonus = 80;

begindefinecreature 235;
	import = 125;
	cr_name = "Rogue mage";
	cr_level = 26;
	cr_hp_bonus = 120;

begindefinecreature 107;
	clear;
	cr_name = "Senarti king";
	cr_level = 40;
	cr_hp_bonus = 20;
	cr_default_attitude = 4;
	cr_species = 2;
	cr_attack_1 = 2;
	cr_attack_1_type = 0;
	cr_default_strategy = 1;
	cr_which_sheet = 508;
	cr_small_or_large_template = 1;
	cr_start_item 0 = 111;
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 46;
	cr_start_item_chance 1 = 80;
	cr_start_item 2 = 228;
	cr_start_item_chance 2 = 50;	
	cr_what_stat_adjust 1 = 11;
	cr_amount_stat_adjust 1 = 13;


// terrain types;

begindefineterrain 444;
	clear;
	te_name = "evil altar";
	te_which_sheet = 505;
	te_which_icon = 0;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 0;
	te_move_block_n = 1;
	te_move_block_w = 1;
	te_move_block_s = 1;
	te_move_block_e = 1;
	te_height_adj_pixels = 14;
	
begindefineterrain 445;
	clear;
	te_name = "altar";
	te_which_sheet = 505;
	te_which_icon = 1;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 1;
	te_move_block_n = 1;
	te_move_block_w = 1;
	te_move_block_s = 1;
	te_move_block_e = 1;
	te_height_adj_pixels = 14;
	
begindefineterrain 446;
	clear;
	te_name = "nice chair";
	te_which_sheet = 505;
	te_which_icon = 2;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 2;
	te_move_block_n = 1;
	te_move_block_w = 1;
	te_move_block_s = 1;
	te_move_block_e = 1;
	
begindefineterrain 447;
	clear;
	te_name = "portal";
	te_which_sheet = 505;
	te_which_icon = 3;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 3;
	te_move_block_n = 1;
	te_move_block_w = 1;
	te_move_block_s = 1;
	te_move_block_e = 1;

// 4 chairs as in Avernum I + II + III
begindefineterrain 448;
	clear;
	te_name = "chair";
	te_which_sheet = 505;
	te_which_icon = 4;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 4;
	te_move_block_n = 1;
	te_move_block_w = 1;
	te_move_block_s = 1;
	te_move_block_e = 1;

begindefineterrain 449;
	clear;
	te_name = "chair";
	te_which_sheet = 505;
	te_which_icon = 5;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 5;
	te_move_block_n = 1;
	te_move_block_w = 1;
	te_move_block_s = 1;
	te_move_block_e = 1;

begindefineterrain 450;
	clear;
	te_name = "chair";
	te_which_sheet = 505;
	te_which_icon = 6;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 6;
	te_move_block_n = 1;
	te_move_block_w = 1;
	te_move_block_s = 1;
	te_move_block_e = 1;

begindefineterrain 451;
	clear;
	te_name = "chair";
	te_which_sheet = 505;
	te_which_icon = 7;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 7;
	te_move_block_n = 1;
	te_move_block_w = 1;
	te_move_block_s = 1;
	te_move_block_e = 1;

// some beds

begindefineterrain 452;
	clear;
	te_name = "Four Poster bed";
	te_which_sheet = 506;
	te_which_icon = 0;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 10;
	te_move_block_n = 1;
	te_move_block_w = 1;
	te_move_block_s = 1;
	te_move_block_e = 1;

begindefineterrain 453;
	clear;
	te_name = "Four Poster bed";
	te_which_sheet = 506;
	te_which_icon = 1;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 11;
	te_move_block_n = 1;
	te_move_block_w = 1;
	te_move_block_s = 1;
	te_move_block_e = 1;

begindefineterrain 454;
	clear;
	te_name = "Bunk bed";
	te_which_sheet = 506;
	te_which_icon = 2;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 12;
	te_move_block_n = 1;
	te_move_block_w = 1;
	te_move_block_s = 1;
	te_move_block_e = 1;

begindefineterrain 455;
	clear;
	te_name = "Bunk bed";
	te_which_sheet = 506;
	te_which_icon = 3;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 13;
	te_move_block_n = 1;
	te_move_block_w = 1;
	te_move_block_s = 1;
	te_move_block_e = 1;

// stairs

begindefineterrain 456;
	clear;
	te_name = "Royal stairs";
	te_which_sheet = 506;
	te_which_icon = 4;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 14;

begindefineterrain 457;
	clear;
	te_name = "Royal stairs";
	te_which_sheet = 506;
	te_which_icon = 5;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 15;

begindefineterrain 458;
	clear;
	te_name = "Royal stairs";
	te_which_sheet = 506;
	te_which_icon = 6;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 16;

begindefineterrain 459;
	clear;
	te_name = "Royal stairs";
	te_which_sheet = 506;
	te_which_icon = 7;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 17;
	
begindefineterrain 460;
	clear;
	te_name = "Royal stairs";
	te_which_sheet = 507;
	te_which_icon = 0;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 20;

begindefineterrain 461;
	clear;
	te_name = "Royal stairs";
	te_which_sheet = 507;
	te_which_icon = 1;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 21;

begindefineterrain 462;
	clear;
	te_name = "Royal stairs";
	te_which_sheet = 507;
	te_which_icon = 2;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 22;

begindefineterrain 463;
	clear;
	te_name = "Royal stairs";
	te_which_sheet = 507;
	te_which_icon = 3;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 23;

// Tomb

begindefineterrain 463;
	clear;
	te_name = "Royal tomb";
	te_which_sheet = 510;
	te_which_icon = 0;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 24;
	te_move_block_n = 1;
	te_move_block_w = 1;
	te_move_block_s = 1;
	te_move_block_e = 1;
	te_height_adj_pixels = 14;
	
// Creation vat
	
begindefineterrain 464;
	clear;
	te_name = "Creation vat";
	te_which_sheet = 510;
	te_which_icon = 1;
	te_second_icon = 2;
	te_second_icon_offset_y = -55;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 25;
	te_move_block_n = 1;
	te_move_block_w = 1;
	te_move_block_s = 1;
	te_move_block_e = 1;
	te_light_radius = 2;

// Broken pipe

begindefineterrain 465;
	clear;
	te_name = "Broken pipe";
	te_which_sheet = 510;
	te_which_icon = 4;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 26;
	te_move_block_n = 1;
	te_move_block_w = 1;
	te_move_block_s = 1;
	te_move_block_e = 1;

// Machinery

begindefineterrain 466;
	import = 200;
	te_name = "Locker";
	te_which_sheet = 513;
	te_which_icon = 5;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 25;
begindefineterrain 467;
	te_which_icon = 6;
	te_ed_which_icon = 36;

begindefineterrain 468;
	import = 125;
	te_name = "Machinery";
	te_which_sheet = 513;
	te_which_icon = 0;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 30;
begindefineterrain 469;
	te_which_icon = 1;
	te_ed_which_icon = 31;
begindefineterrain 470;
	te_which_icon = 2;
	te_ed_which_icon = 32;
begindefineterrain 471;
	te_which_icon = 3;
	te_ed_which_icon = 33;
begindefineterrain 472;
	te_which_icon = 7;
	te_ed_which_icon = 37;
begindefineterrain 473;
	te_name = "Cage";
	te_which_icon = 4;
	te_ed_which_icon = 34;

// Crystal pillar

begindefineterrain 474;
	clear;
	te_name = "Crystal pillar";
	te_which_sheet = 510;
	te_which_icon = 3;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 50;
	te_move_block_n = 1;
	te_move_block_w = 1;
	te_move_block_s = 1;
	te_move_block_e = 1;

// Metal barrels

begindefineterrain 475; 
	import = 125;
	te_name = "Metal Barrel";
	te_which_sheet = 516;
	te_which_icon = 0;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 10;
begindefineterrain 476; 
	te_which_icon = 1;
	te_ed_which_icon = 11;

// First, 8 glowing portcullises, closed then open

begindefineterrain 477; // n
	import = 2;
	te_name = "Glowing Gate";
	te_which_sheet = 522;
	te_which_icon = 2;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 60;
	te_cutaway_which_sheet = -1;
	te_cutaway_which_icon = -1;
	te_swap_terrain = 434;
	te_full_look_block = 0;
	te_special_property = 42;
begindefineterrain 478; // w
	import = 3;
	te_name = "Glowing Gate";
	te_which_sheet = 522;
	te_which_icon = 3;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 61;
	te_cutaway_which_sheet = -1;
	te_cutaway_which_icon = -1;
	te_swap_terrain = 435;
	te_full_look_block = 0;
	te_special_property = 42;
begindefineterrain 479; // s
	import = 4;
	te_name = "Glowing Gate";
	te_which_sheet = 522;
	te_which_icon = 2;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 62;
	te_cutaway_which_sheet = -1;
	te_cutaway_which_icon = -1;
	te_swap_terrain = 436;
	te_full_look_block = 0;
	te_special_property = 42;
begindefineterrain 480; // e
	import = 5;
	te_name = "Glowing Gate";
	te_which_sheet = 522;
	te_which_icon = 3;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 63;
	te_cutaway_which_sheet = -1;
	te_cutaway_which_icon = -1;
	te_swap_terrain = 437;
	te_full_look_block = 0;
	te_special_property = 42;

begindefineterrain 481; 
	import = 2;
	te_name = "Open Glowing Gate";
	te_which_sheet = 522;
	te_which_icon = 0;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 64;
	te_cutaway_which_sheet = -1;
	te_cutaway_which_icon = -1;
	te_swap_terrain = 430;
	te_full_look_block = 0;
	te_full_move_block = 0;
begindefineterrain 482; 
	import = 3;
	te_name = "Open Glowing Gate";
	te_which_sheet = 522;
	te_which_icon = 1;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 65;
	te_cutaway_which_sheet = -1;
	te_cutaway_which_icon = -1;
	te_swap_terrain = 431;
	te_full_look_block = 0;
	te_full_move_block = 0;
begindefineterrain 483; 
	import = 4;
	te_name = "Open Glowing Gate";
	te_which_sheet = 522;
	te_which_icon = 0;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 66;
	te_cutaway_which_sheet = -1;
	te_cutaway_which_icon = -1;
	te_swap_terrain = 432;
	te_full_look_block = 0;
	te_full_move_block = 0;
begindefineterrain 484; 
	import = 5;
	te_name = "Open Glowing Gate";
	te_which_sheet = 522;
	te_which_icon = 1;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 67;
	te_cutaway_which_sheet = -1;
	te_cutaway_which_icon = -1;
	te_swap_terrain = 433;
	te_full_look_block = 0;
	te_full_move_block = 0;

begindefineterrain 485;
	clear;
	te_name = "Statue";
	te_which_sheet = 523;
	te_which_icon = 2;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 51;
	te_move_block_n = 1;
	te_move_block_w = 1;
	te_move_block_s = 1;
	te_move_block_e = 1;

begindefineterrain 486;
	clear;
	te_name = "Old wall";
	te_which_sheet = 524;
	te_which_icon = 0;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 81;
	te_move_block_n = 1;
	te_move_block_w = 1;
	te_move_block_s = 1;
	te_move_block_e = 1;

begindefineterrain 487;
	clear;
	te_name = "Old wall";
	te_which_sheet = 524;
	te_which_icon = 1;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 82;
	te_move_block_n = 1;
	te_move_block_w = 1;
	te_move_block_s = 1;
	te_move_block_e = 1;

begindefineterrain 488;
	clear;
	te_name = "Old wall";
	te_which_sheet = 524;
	te_which_icon = 2;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 83;
	te_move_block_n = 1;
	te_move_block_w = 1;
	te_move_block_s = 1;
	te_move_block_e = 1;

begindefineterrain 489;
	clear;
	te_name = "Old wall";
	te_which_sheet = 524;
	te_which_icon = 3;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 84;
	te_move_block_n = 1;
	te_move_block_w = 1;
	te_move_block_s = 1;
	te_move_block_e = 1;

begindefineterrain 490;
	clear;
	te_name = "Old wall gate";
	te_which_sheet = 524;
	te_which_icon = 4;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 85;

begindefineterrain 491;
	clear;
	te_name = "Old wall";
	te_which_sheet = 524;
	te_which_icon = 5;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 86;
	te_move_block_n = 1;
	te_move_block_w = 1;
	te_move_block_s = 1;
	te_move_block_e = 1;

begindefineterrain 492;
	clear;
	te_name = "Old wall gate";
	te_which_sheet = 524;
	te_which_icon = 6;
	te_ed_which_sheet = 504;

begindefineterrain 493;
	clear;
	te_name = "Old wall gate";
	te_which_sheet = 524;
	te_which_icon = 7;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 88;

begindefineterrain 494;
	clear;
	te_name = "Old wall";
	te_which_sheet = 524;
	te_which_icon = 8;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 89;
	te_move_block_n = 1;
	te_move_block_w = 1;
	te_move_block_s = 1;
	te_move_block_e = 1;

// Two buildings (church and castle)

begindefineterrain 495;
	clear;
	te_name = "Church";
	te_which_sheet = 510;
	te_which_icon = 5;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 53;
	te_move_block_n = 1;
	te_move_block_w = 1;
	te_move_block_s = 1;
	te_move_block_e = 1;

begindefineterrain 496;
	clear;
	te_name = "Castle";
	te_which_sheet = 510;
	te_which_icon = 6;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 52;
	te_move_block_n = 1;
	te_move_block_w = 1;
	te_move_block_s = 1;
	te_move_block_e = 1;

// Pews (churchbenches)

begindefineterrain 497;
	clear;
	te_name = "Pew";
	te_which_sheet = 507;
	te_which_icon = 4;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 8;
	te_move_block_w = 1;
	te_move_block_e = 1;
	
begindefineterrain 498;
	clear;
	te_name = "Pew";
	te_which_sheet = 507;
	te_which_icon = 5;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 9;
	te_move_block_n = 1;
	te_move_block_s = 1;

begindefineterrain 499;
	clear;
	te_name = "Pew";
	te_which_sheet = 507;
	te_which_icon = 6;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 18;
	te_move_block_n = 1;
	te_move_block_s = 1;

begindefineterrain 500;
	clear;
	te_name = "Pew";
	te_which_sheet = 507;
	te_which_icon = 7;
	te_ed_which_sheet = 504;
	te_ed_which_icon = 19;
	te_move_block_w = 1;
	te_move_block_e = 1;
	
// Black floor

begindefineterrain 501;
	clear;
	te_name = "Black floor";
	te_which_sheet = 527;
	te_which_icon = 0;
	te_ed_which_sheet = 528;
	te_ed_which_icon = 0;

// pools

begindefineterrain 502;
	import = 285;
	te_name = "Yellow pool";
	te_icon_adjust = 1;
// yellow
begindefineterrain 503;
	import = 285;
	te_name = "Blue pool";
	te_icon_adjust = 512;
// sky blue
begindefineterrain 504;
	import = 285;
	te_name = "Gray pool";
	te_icon_adjust = 513;
// gray

// Bookshelves

begindefineterrain 505;
	import = 234;
	te_move_block_n = 1;

begindefineterrain 506;
	import = 235;
	te_move_block_w = 1;

begindefineterrain 507;
	import = 403;
	te_move_block_n = 1;


// FLOOR TYPES

begindefinefloor 135;
	import = 95;
	fl_name = "Cracked Floor";
	fl_which_sheet = 516;
	fl_which_icon = 3;
	fl_ed_which_sheet = 504;
	fl_ed_which_icon = 45;
	fl_is_floor = 1;
begindefinefloor 136;
	fl_name = "Slimy Floor";
	fl_which_icon = 2;
	fl_ed_which_icon = 44;
	fl_step_sound = 55;
	fl_blocked = 1;
begindefinefloor 137;
	fl_name = "Slimy Cave Floor";
	fl_which_sheet = 516;
	fl_which_icon = 5;
	fl_ed_which_sheet = 504;
	fl_ed_which_icon = 46;
	fl_out_fight_town_used = 1006;
	fl_step_sound = 55;
	fl_blocked = 0;
	fl_special_property = 5;
	fl_special_strength = 18;

begindefinefloor 138;
	clear;
	fl_name = "green tiled";
	fl_which_sheet = 515;
	fl_which_icon = 1;
	fl_ed_which_sheet = 504;
	fl_ed_which_icon = 43;
	fl_is_floor = 1;

begindefinefloor 139;
	clear;
	fl_name = "White paved";
	fl_which_sheet = 515;
	fl_which_icon = 0;
	fl_ed_which_sheet = 504;
	fl_ed_which_icon = 47;
	fl_is_floor = 1;

begindefinefloor 140;
	clear;
	fl_name = "Dirt road";
	fl_which_sheet = 523;
	fl_which_icon = 0;
	fl_ed_which_sheet = 504;
	fl_ed_which_icon = 70;
	fl_is_floor = 1;

begindefinefloor 141;
	clear;
	fl_name = "Dirt road";
	fl_which_sheet = 523;
	fl_which_icon = 1;
	fl_ed_which_sheet = 504;
	fl_ed_which_icon = 71;
	fl_is_floor = 1;
	
begindefinefloor 142;
	clear;
	fl_name = "Dirt road";
	fl_which_sheet = 525;
	fl_which_icon = 0;
	fl_ed_which_sheet = 504;
	fl_ed_which_icon = 72;
	fl_is_floor = 1;

begindefinefloor 143;
	clear;
	fl_name = "Dirt road";
	fl_which_sheet = 525;
	fl_which_icon = 1;
	fl_ed_which_sheet = 504;
	fl_ed_which_icon = 73;
	fl_is_floor = 1;

begindefinefloor 144;
	clear;
	fl_name = "Dirt road";
	fl_which_sheet = 525;
	fl_which_icon = 2;
	fl_ed_which_sheet = 504;
	fl_ed_which_icon = 74;
	fl_is_floor = 1;

begindefinefloor 145;
	clear;
	fl_name = "Dirt road";
	fl_which_sheet = 525;
	fl_which_icon = 3;
	fl_ed_which_sheet = 504;
	fl_ed_which_icon = 75;
	fl_is_floor = 1;

begindefinefloor 146;
	clear;
	fl_name = "Dirt road";
	fl_which_sheet = 525;
	fl_which_icon = 4;
	fl_ed_which_sheet = 504;
	fl_ed_which_icon = 76;
	fl_is_floor = 1;

begindefinefloor 147;
	clear;
	fl_name = "Dirt road";
	fl_which_sheet = 525;
	fl_which_icon = 5;
	fl_ed_which_sheet = 504;
	fl_ed_which_icon = 77;
	fl_is_floor = 1;

begindefinefloor 148;
	clear;
	fl_name = "Dirt road";
	fl_which_sheet = 525;
	fl_which_icon = 6;
	fl_ed_which_sheet = 504;
	fl_ed_which_icon = 78;
	fl_is_floor = 1;

begindefinefloor 149;
	clear;
	fl_name = "Dirt road";
	fl_which_sheet = 525;
	fl_which_icon = 7;
	fl_ed_which_sheet = 504;
	fl_ed_which_icon = 79;
	fl_is_floor = 1;

begindefinefloor 150;
	clear;
	fl_name = "Dirt road";
	fl_which_sheet = 525;
	fl_which_icon = 8;
	fl_ed_which_sheet = 504;
	fl_ed_which_icon = 80;
	fl_is_floor = 1;

begindefinefloor 151;
	import = 0;
	fl_name = "Rock";
	fl_is_floor = 1;

// Gardens

begindefinefloor 152;
	clear;
	fl_name = "Garden";
	fl_which_sheet = 514;
	fl_which_icon = 0;
	fl_ed_which_sheet = 504;
	fl_ed_which_icon = 54;
	fl_is_floor = 1;

begindefinefloor 153;
	clear;
	fl_name = "Garden";
	fl_which_sheet = 514;
	fl_which_icon = 1;
	fl_ed_which_sheet = 504;
	fl_ed_which_icon = 55;
	fl_is_floor = 1;

begindefinefloor 154;
	clear;
	fl_name = "Garden";
	fl_which_sheet = 514;
	fl_which_icon = 2;
	fl_ed_which_sheet = 504;
	fl_ed_which_icon = 56;
	fl_is_floor = 1;

begindefinefloor 155;
	clear;
	fl_name = "Garden";
	fl_which_sheet = 514;
	fl_which_icon = 3;
	fl_ed_which_sheet = 504;
	fl_ed_which_icon = 57;
	fl_is_floor = 1;

begindefinefloor 156;
	clear;
	fl_name = "Garden";
	fl_which_sheet = 514;
	fl_which_icon = 4;
	fl_ed_which_sheet = 504;
	fl_ed_which_icon = 58;
	fl_is_floor = 1;

