// Amnesia Custom Object Types

beginscendatascript;

// --- custom floors/additional floors ---
// --- some additional floors via Kelandon's Custom Objects Script Base v1.0.1

begindefinefloor 104;
	import = 101;
	fl_light_radius = 2;

begindefinefloor 132;
	import = 81;
	fl_which_sheet = 705;
	fl_which_icon = 9;
	fl_ed_which_sheet = 680;
	fl_ed_which_icon = 59;
        
begindefinefloor 133;
	import = 117;
	fl_which_sheet = 707;
	fl_which_icon = 4;
	fl_ed_which_sheet = 680;
	fl_ed_which_icon = 74;
        
begindefinefloor 134;
	import = 117;
	fl_which_sheet = 709;
	fl_which_icon = 1;
	fl_ed_which_sheet = 680;
	fl_ed_which_icon = 91;

begindefinefloor 135;
	import = 122;
	fl_name = "Black Floor";
	fl_which_sheet = 704;
	fl_which_icon = 3;
	fl_ed_which_sheet = 680;
	fl_ed_which_icon = 43;

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;

// --- custom terrain ---

begindefineterrain 175;
	import = 125;
	te_name = "Metal Barrel";
	te_which_sheet = 508;
	te_which_icon = 0;
	te_ed_which_sheet = 507;
	te_ed_which_icon = 0;
begindefineterrain 176;
	te_which_icon = 1;
	te_ed_which_icon = 1;
begindefineterrain 177;
	te_which_icon = 2;
	te_ed_which_icon = 2;
begindefineterrain 271;
	te_which_sheet = 505;
	te_which_icon = 9;
	te_ed_which_sheet = 501;
	te_ed_which_icon = 19;

begindefineterrain 287;
	import = 280;
	te_name = "Cross";
	te_which_sheet = 720;
	te_which_icon = 4;
	te_ed_which_sheet = 682;
	te_ed_which_icon = 94;
        
begindefineterrain 288;
	import = 280;
	te_which_sheet = 720;
	te_which_icon = 5;
	te_ed_which_sheet = 682;
	te_ed_which_icon = 95;

begindefineterrain 297;
	import = 183;
	te_name = "Screen";
	te_default_script = "screen";
	te_which_sheet = 508;
	te_which_icon = 3;
	te_ed_which_sheet = 507;
	te_ed_which_icon = 3;
	te_light_radius = 2;

begindefineterrain 340;
	import = 141;
	te_name = "Pew";
	te_which_sheet = 508;
	te_which_icon = 6;
	te_ed_which_sheet = 507;
	te_ed_which_icon = 6;
	te_draw_on_automap = 1;

begindefineterrain 358;
	import = 125;
	te_name = "Wash Basin";
	te_which_sheet = 508;
	te_which_icon = 4;
	te_ed_which_sheet = 507;
	te_ed_which_icon = 4;
begindefineterrain 359;
	te_which_sheet = 508;
	te_which_icon = 5;
	te_ed_which_sheet = 507;
	te_ed_which_icon = 5;

begindefineterrain 377;
	import = 403;
	te_name = "Bottle Rack";
	te_which_sheet = 508;
	te_which_icon = 7;
	te_ed_which_sheet = 507;
	te_ed_which_icon = 7;

begindefineterrain 378;
	import = 204;
	te_which_sheet = 508;
	te_which_icon = 8;
	te_ed_which_sheet = 507;
	te_ed_which_icon = 8;
begindefineterrain 379;
	te_which_sheet = 508;
	te_which_icon = 9;
	te_ed_which_sheet = 507;
	te_ed_which_icon = 9;

begindefineterrain 390;
	import = 242;
	te_default_script = "statue";
	te_which_sheet = 502;
	te_which_icon = 3;
	te_ed_which_sheet = 501;
	te_ed_which_icon = 3;
begindefineterrain 391;
	te_which_icon = 4;
	te_ed_which_icon = 4;
begindefineterrain 392;
	te_which_icon = 5;
	te_ed_which_icon = 5;
begindefineterrain 393;
	te_which_icon = 6;
	te_ed_which_icon = 6;
begindefineterrain 394;
	te_which_icon = 7;
	te_ed_which_icon = 7;

begindefineterrain 407;
	import = 348;
	te_name = "Wash Basket";
	te_which_sheet = 502;
	te_which_icon = 0;
	te_ed_which_sheet = 501;
	te_ed_which_icon = 0;

begindefineterrain 408;
	import = 407;
	te_which_sheet = 502;
	te_which_icon = 1;
	te_ed_which_sheet = 501;
	te_ed_which_icon = 1;

begindefineterrain 409;
	import = 208;
	te_name = "WaUp Bush";
	te_default_script = "waupbush";
	te_which_sheet = 502;
	te_which_icon = 2;
	te_ed_which_sheet = 501;
	te_ed_which_icon = 2;
	te_can_look_at = 1;

// statues continued
begindefineterrain 421;
	import = 394;
	te_which_icon = 8;
	te_ed_which_icon = 8;
begindefineterrain 422;
	te_which_icon = 9;
	te_ed_which_icon = 9;
begindefineterrain 423;
	te_which_sheet = 505;
	te_which_icon = 0;
	te_ed_which_icon = 10;
begindefineterrain 424;
	te_which_icon = 1;
	te_ed_which_icon = 11;
begindefineterrain 425;
	te_which_icon = 2;
	te_ed_which_icon = 12;
begindefineterrain 426;
	te_which_icon = 3;
	te_ed_which_icon = 13;
begindefineterrain 427;
	te_which_icon = 4;
	te_ed_which_icon = 14;
begindefineterrain 428;
	te_which_icon = 5;
	te_ed_which_icon = 15;
begindefineterrain 429;
	te_which_icon = 6;
	te_ed_which_icon = 16;
begindefineterrain 430;
	te_which_icon = 7;
	te_ed_which_icon = 17;
begindefineterrain 431;
	te_which_icon = 8;
	te_ed_which_icon = 18;

// --- custom walls ---

begindefineterrain 432; // n wall
	clear;
	te_name = "Old Stone Wall";
	te_which_sheet = 503;
	te_which_icon = 0;
	te_ed_which_sheet = 510;
	te_ed_which_icon = 0;
	te_cutaway_which_sheet = 503;
	te_cutaway_which_icon = 2;
	te_icon_offset_x = 18;
	te_icon_offset_y = -12;
	te_move_block_n = 1;
	te_look_block_n = 1;
	te_blocks_view_n = 1;
	te_draw_on_automap = 1;
begindefineterrain 433; // w wall
	te_which_icon = 1;
	te_ed_which_icon = 1;
	te_cutaway_which_icon = 3;
	te_icon_offset_x = -18;
	te_icon_offset_y = -12;
	te_move_block_n = 0;
	te_look_block_n = 0;
	te_blocks_view_n = 0;
	te_move_block_w = 1;
	te_look_block_w = 1;
	te_blocks_view_w = 1;
begindefineterrain 434; // s wall
	te_which_icon = 0;
	te_ed_which_icon = 2;
	te_cutaway_which_icon = 2;
	te_icon_offset_x = 0;
	te_icon_offset_y = 0;
	te_move_block_s = 1;
	te_look_block_s = 1;
	te_blocks_view_s = 1;
	te_move_block_w = 0;
	te_look_block_w = 0;
	te_blocks_view_w = 0;
begindefineterrain 435; // e wall
	te_which_icon = 1;
	te_ed_which_icon = 3;
	te_cutaway_which_icon = 3;
	te_move_block_s = 0;
	te_look_block_s = 0;
	te_blocks_view_s = 0;
	te_move_block_e = 1;
	te_look_block_e = 1;
	te_blocks_view_e = 1;
begindefineterrain 436; // nw wall
	te_which_icon = 5;
	te_ed_which_icon = 4;
	te_cutaway_which_sheet = -1;
	te_full_move_block = 0;
	te_full_look_block = 0;
	te_move_block_n = 1;
	te_look_block_n = 1;
	te_blocks_view_n = 1;
	te_move_block_w = 1;
	te_look_block_w = 1;
	te_blocks_view_w = 1;
begindefineterrain 437; // ws wall
	te_which_icon = 0;
	te_ed_which_icon = 5;
	te_cutaway_which_sheet = -1;
	te_full_move_block = 0;
	te_full_look_block = 0;
	te_blocks_view_n = 0;
	te_move_block_s = 1;
	te_look_block_s = 1;
	te_blocks_view_s = 1;
	te_move_block_w = 1;
	te_look_block_w = 1;
	te_blocks_view_w = 1;
begindefineterrain 438; // se wall
	te_which_icon = 4;
	te_ed_which_icon = 6;
	te_full_move_block = 0;
	te_full_look_block = 0;
	te_blocks_view_w = 0;
	te_move_block_s = 1;
	te_look_block_s = 1;
	te_blocks_view_s = 1;
	te_move_block_e = 1;
	te_look_block_e = 1;
	te_blocks_view_e = 1;
begindefineterrain 439; // en wall
	te_which_icon = 0;
	te_icon_offset_x = 18;
	te_icon_offset_y = -12;
	te_ed_which_icon = 7;
	te_full_move_block = 0;
	te_full_look_block = 0;
	te_blocks_view_s = 0;
	te_move_block_n = 1;
	te_look_block_n = 1;
	te_blocks_view_n = 1;
	te_move_block_e = 1;
	te_look_block_e = 1;
	te_blocks_view_e = 1;
// doors, then open doors
begindefineterrain 440;
	import = 432;
	te_name = "Door";
	te_default_script = "door";
	te_which_icon = 10;
	te_ed_which_icon = 10;
	te_cutaway_which_icon = 14;
	te_swap_terrain = 444;
	te_can_look_at = 1;
begindefineterrain 441;
	import = 433;
	te_name = "Door";
	te_default_script = "door";
	te_which_icon = 11;
	te_ed_which_icon = 11;
	te_cutaway_which_icon = 15;
	te_swap_terrain = 445;
	te_can_look_at = 1;
begindefineterrain 442;
	import = 434;
	te_name = "Door";
	te_default_script = "door";
	te_which_icon = 10;
	te_ed_which_icon = 12;
	te_cutaway_which_icon = 14;
	te_swap_terrain = 446;
	te_can_look_at = 1;
begindefineterrain 443;
	import = 435;
	te_name = "Door";
	te_default_script = "door";
	te_which_icon = 11;
	te_ed_which_icon = 13;
	te_cutaway_which_icon = 15;
	te_swap_terrain = 447;
	te_can_look_at = 1;
begindefineterrain 444;
	import = 440;
	te_which_icon = 12;
	te_ed_which_icon = 14;
	te_cutaway_which_icon = 16;
	te_full_move_block = 0;
	te_full_look_block = 0;
	te_swap_terrain = 440;
	te_can_look_at = 1;
begindefineterrain 445;
	import = 441;
	te_which_icon = 13;
	te_ed_which_icon = 15;
	te_cutaway_which_icon = 17;
	te_full_move_block = 0;
	te_full_look_block = 0;
	te_swap_terrain = 441;
	te_can_look_at = 1;
begindefineterrain 446;
	import = 442;
	te_which_icon = 12;
	te_ed_which_icon = 16;
	te_cutaway_which_icon = 16;
	te_full_move_block = 0;
	te_full_look_block = 0;
	te_swap_terrain = 442;
	te_can_look_at = 1;
begindefineterrain 447;
	import = 443;
	te_which_icon = 13;
	te_ed_which_icon = 17;
	te_cutaway_which_icon = 17;
	te_full_move_block = 0;
	te_full_look_block = 0;
	te_swap_terrain = 443;
	te_can_look_at = 1;
// secret doors.
begindefineterrain 448;
	import = 432;
	te_ed_which_icon = 20;
	te_move_block_n = 0;
begindefineterrain 449;
	import = 433;
	te_ed_which_icon = 21;
	te_move_block_w = 0;
begindefineterrain 450;
	import = 434;
	te_ed_which_icon = 22;
	te_move_block_s = 0;
begindefineterrain 451;
	import = 435;
	te_ed_which_icon = 23;
	te_move_block_e = 0;
// windows
begindefineterrain 452;
	import = 432;
	te_name = "Window";
	te_which_icon = 30;
	te_cutaway_which_icon = 34;
	te_ed_which_icon = 24;
	te_full_look_block = 0;
	te_beam_hit_type = 1;
begindefineterrain 453;
	import = 433;
	te_name = "Window";
	te_which_icon = 31;
	te_cutaway_which_icon = 35;
	te_ed_which_icon = 25;
	te_full_look_block = 0;
	te_beam_hit_type = 1;
begindefineterrain 454;
	import = 434;
	te_name = "Window";
	te_which_icon = 30;
	te_cutaway_which_icon = 34;
	te_ed_which_icon = 26;
	te_full_look_block = 0;
	te_beam_hit_type = 1;
begindefineterrain 455;
	import = 435;
	te_name = "Window";
	te_which_icon = 31;
	te_cutaway_which_icon = 35;
	te_ed_which_icon = 27;
	te_full_look_block = 0;
	te_beam_hit_type = 1;
// closed gate
begindefineterrain 456;
	import = 432;
	te_name = "Gate";
	te_which_icon = 22;
	te_cutaway_which_icon = 26;
	te_ed_which_icon = 30;
	te_full_look_block = 0;
	te_swap_terrain = 460;
	te_beam_hit_type = 1;
begindefineterrain 457;
	import = 433;
	te_name = "Gate";
	te_which_icon = 23;
	te_cutaway_which_icon = 27;
	te_ed_which_icon = 31;
	te_full_look_block = 0;
	te_swap_terrain = 461;
	te_beam_hit_type = 1;
begindefineterrain 458;
	import = 434;
	te_name = "Gate";
	te_which_icon = 22;
	te_cutaway_which_icon = 26;
	te_ed_which_icon = 32;
	te_full_look_block = 0;
	te_swap_terrain = 462;
	te_beam_hit_type = 1;
begindefineterrain 459;
	import = 435;
	te_name = "Gate";
	te_which_icon = 23;
	te_cutaway_which_icon = 27;
	te_ed_which_icon = 33;
	te_full_look_block = 0;
	te_swap_terrain = 463;
	te_beam_hit_type = 1;
// open gate
begindefineterrain 460;
	import = 432;
	te_name = "Gate";
	te_which_icon = 20;
	te_cutaway_which_icon = 24;
	te_ed_which_icon = 34;
	te_full_look_block = 0;
	te_full_move_block = 0;
	te_swap_terrain = 456;
begindefineterrain 461;
	import = 433;
	te_name = "Gate";
	te_which_icon = 21;
	te_cutaway_which_icon = 25;
	te_ed_which_icon = 35;
	te_full_look_block = 0;
	te_full_move_block = 0;
	te_swap_terrain = 457;
begindefineterrain 462;
	import = 434;
	te_name = "Gate";
	te_which_icon = 20;
	te_cutaway_which_icon = 24;
	te_ed_which_icon = 36;
	te_full_look_block = 0;
	te_full_move_block = 0;
	te_swap_terrain = 458;
begindefineterrain 463;
	import = 435;
	te_name = "Gate";
	te_which_icon = 21;
	te_cutaway_which_icon = 25;
	te_ed_which_icon = 37;
	te_full_look_block = 0;
	te_full_move_block = 0;
	te_swap_terrain = 459;
// crumbly walls
begindefineterrain 464;
	import = 432;
	te_which_icon = 32;
	te_ed_which_icon = 40;
	te_crumble_type = 1;
	te_terrain_to_crumble_to = 137;
begindefineterrain 465;
	import = 433;
	te_which_icon = 33;
	te_ed_which_icon = 41;
	te_crumble_type = 1;
	te_terrain_to_crumble_to = 137;
begindefineterrain 466;
	import = 434;
	te_which_icon = 32;
	te_ed_which_icon = 42;
	te_crumble_type = 1;
	te_terrain_to_crumble_to = 137;
begindefineterrain 467;
	import = 435;
	te_which_icon = 33;
	te_ed_which_icon = 43;
	te_crumble_type = 1;
	te_terrain_to_crumble_to = 137;

begindefineterrain 468; // n wall
	clear;
	te_name = "Mud Wall";
	te_which_sheet = 504;
	te_which_icon = 0;
	te_ed_which_sheet = 510;
	te_ed_which_icon = 50;
	te_cutaway_which_sheet = 504;
	te_cutaway_which_icon = 2;
	te_icon_offset_x = 18;
	te_icon_offset_y = -12;
	te_move_block_n = 1;
	te_look_block_n = 1;
	te_blocks_view_n = 1;
	te_can_look_at = 0;
	te_draw_on_automap = 1;
begindefineterrain 469; // w wall
	te_which_icon = 1;
	te_ed_which_icon = 51;
	te_cutaway_which_icon = 3;
	te_icon_offset_x = -18;
	te_icon_offset_y = -12;
	te_move_block_n = 0;
	te_look_block_n = 0;
	te_blocks_view_n = 0;
	te_move_block_w = 1;
	te_look_block_w = 1;
	te_blocks_view_w = 1;
begindefineterrain 470; // s wall
	te_which_icon = 0;
	te_ed_which_icon = 52;
	te_cutaway_which_icon = 2;
	te_icon_offset_x = 0;
	te_icon_offset_y = 0;
	te_move_block_s = 1;
	te_look_block_s = 1;
	te_blocks_view_s = 1;
	te_move_block_w = 0;
	te_look_block_w = 0;
	te_blocks_view_w = 0;
begindefineterrain 471; // e wall
	te_which_icon = 1;
	te_ed_which_icon = 53;
	te_cutaway_which_icon = 3;
	te_move_block_s = 0;
	te_look_block_s = 0;
	te_blocks_view_s = 0;
	te_move_block_e = 1;
	te_look_block_e = 1;
	te_blocks_view_e = 1;
begindefineterrain 472; // nw wall
	te_which_icon = 5;
	te_ed_which_icon = 54;
	te_cutaway_which_sheet = -1;
	te_full_move_block = 0;
	te_full_look_block = 0;
	te_move_block_n = 1;
	te_look_block_n = 1;
	te_blocks_view_n = 1;
	te_move_block_w = 1;
	te_look_block_w = 1;
	te_blocks_view_w = 1;
begindefineterrain 473; // ws wall
	te_which_icon = 0;
	te_ed_which_icon = 55;
	te_cutaway_which_sheet = -1;
	te_full_move_block = 0;
	te_full_look_block = 0;
	te_blocks_view_n = 0;
	te_move_block_s = 1;
	te_look_block_s = 1;
	te_blocks_view_s = 1;
	te_move_block_w = 1;
	te_look_block_w = 1;
	te_blocks_view_w = 1;
begindefineterrain 474; // se wall
	te_which_icon = 4;
	te_ed_which_icon = 56;
	te_full_move_block = 0;
	te_full_look_block = 0;
	te_blocks_view_w = 0;
	te_move_block_s = 1;
	te_look_block_s = 1;
	te_blocks_view_s = 1;
	te_move_block_e = 1;
	te_look_block_e = 1;
	te_blocks_view_e = 1;
begindefineterrain 475; // en wall
	te_which_icon = 0;
	te_icon_offset_x = 18;
	te_icon_offset_y = -12;
	te_ed_which_icon = 57;
	te_full_move_block = 0;
	te_full_look_block = 0;
	te_blocks_view_s = 0;
	te_move_block_n = 1;
	te_look_block_n = 1;
	te_blocks_view_n = 1;
	te_move_block_e = 1;
	te_look_block_e = 1;
	te_blocks_view_e = 1;
// doors, then open doors
begindefineterrain 476;
	import = 468;
	te_name = "Door";
	te_default_script = "door";
	te_which_icon = 10;
	te_ed_which_icon = 60;
	te_cutaway_which_icon = 14;
	te_swap_terrain = 480;
	te_can_look_at = 1;
begindefineterrain 477;
	import = 469;
	te_name = "Door";
	te_default_script = "door";
	te_which_icon = 11;
	te_ed_which_icon = 61;
	te_cutaway_which_icon = 15;
	te_swap_terrain = 481;
	te_can_look_at = 1;
begindefineterrain 478;
	import = 470;
	te_name = "Door";
	te_default_script = "door";
	te_which_icon = 10;
	te_ed_which_icon = 62;
	te_cutaway_which_icon = 14;
	te_swap_terrain = 482;
	te_can_look_at = 1;
begindefineterrain 479;
	import = 471;
	te_name = "Door";
	te_default_script = "door";
	te_which_icon = 11;
	te_ed_which_icon = 63;
	te_cutaway_which_icon = 15;
	te_swap_terrain = 483;
	te_can_look_at = 1;
begindefineterrain 480;
	import = 476;
	te_which_icon = 12;
	te_ed_which_icon = 64;
	te_cutaway_which_icon = 16;
	te_full_move_block = 0;
	te_full_look_block = 0;
	te_swap_terrain = 476;
	te_can_look_at = 1;
begindefineterrain 481;
	import = 477;
	te_which_icon = 13;
	te_ed_which_icon = 65;
	te_cutaway_which_icon = 17;
	te_full_move_block = 0;
	te_full_look_block = 0;
	te_swap_terrain = 477;
	te_can_look_at = 1;
begindefineterrain 482;
	import = 478;
	te_which_icon = 12;
	te_ed_which_icon = 66;
	te_cutaway_which_icon = 16;
	te_full_move_block = 0;
	te_full_look_block = 0;
	te_swap_terrain = 478;
	te_can_look_at = 1;
begindefineterrain 483;
	import = 479;
	te_which_icon = 13;
	te_ed_which_icon = 67;
	te_cutaway_which_icon = 17;
	te_full_move_block = 0;
	te_full_look_block = 0;
	te_swap_terrain = 479;
	te_can_look_at = 1;
// secret doors.
begindefineterrain 484;
	import = 468;
	te_ed_which_icon = 70;
	te_move_block_n = 0;
begindefineterrain 485;
	import = 469;
	te_ed_which_icon = 71;
	te_move_block_w = 0;
begindefineterrain 486;
	import = 470;
	te_ed_which_icon = 72;
	te_move_block_s = 0;
begindefineterrain 487;
	import = 471;
	te_ed_which_icon = 73;
	te_move_block_e = 0;
// windows
begindefineterrain 488;
	import = 468;
	te_name = "Window";
	te_which_icon = 30;
	te_cutaway_which_icon = 34;
	te_ed_which_icon = 74;
	te_full_look_block = 0;
	te_beam_hit_type = 1;
begindefineterrain 489;
	import = 469;
	te_name = "Window";
	te_which_icon = 31;
	te_cutaway_which_icon = 35;
	te_ed_which_icon = 75;
	te_full_look_block = 0;
	te_beam_hit_type = 1;
begindefineterrain 490;
	import = 470;
	te_name = "Window";
	te_which_icon = 30;
	te_cutaway_which_icon = 34;
	te_ed_which_icon = 76;
	te_full_look_block = 0;
	te_beam_hit_type = 1;
begindefineterrain 491;
	import = 471;
	te_name = "Window";
	te_which_icon = 31;
	te_cutaway_which_icon = 35;
	te_ed_which_icon = 77;
	te_full_look_block = 0;
	te_beam_hit_type = 1;
// closed gate
begindefineterrain 492;
	import = 468;
	te_name = "Gate";
	te_which_icon = 22;
	te_cutaway_which_icon = 26;
	te_ed_which_icon = 80;
	te_full_look_block = 0;
	te_swap_terrain = 496;
	te_beam_hit_type = 1;
begindefineterrain 493;
	import = 469;
	te_name = "Gate";
	te_which_icon = 23;
	te_cutaway_which_icon = 27;
	te_ed_which_icon = 81;
	te_full_look_block = 0;
	te_swap_terrain = 497;
	te_beam_hit_type = 1;
begindefineterrain 494;
	import = 470;
	te_name = "Gate";
	te_which_icon = 22;
	te_cutaway_which_icon = 26;
	te_ed_which_icon = 82;
	te_full_look_block = 0;
	te_swap_terrain = 498;
	te_beam_hit_type = 1;
begindefineterrain 495;
	import = 471;
	te_name = "Gate";
	te_which_icon = 23;
	te_cutaway_which_icon = 27;
	te_ed_which_icon = 83;
	te_full_look_block = 0;
	te_swap_terrain = 499;
	te_beam_hit_type = 1;
// open gate
begindefineterrain 496;
	import = 468;
	te_name = "Gate";
	te_which_icon = 20;
	te_cutaway_which_icon = 24;
	te_ed_which_icon = 84;
	te_full_look_block = 0;
	te_full_move_block = 0;
	te_swap_terrain = 492;
begindefineterrain 497;
	import = 469;
	te_name = "Gate";
	te_which_icon = 21;
	te_cutaway_which_icon = 25;
	te_ed_which_icon = 85;
	te_full_look_block = 0;
	te_full_move_block = 0;
	te_swap_terrain = 493;
begindefineterrain 498;
	import = 470;
	te_name = "Gate";
	te_which_icon = 20;
	te_cutaway_which_icon = 24;
	te_ed_which_icon = 86;
	te_full_look_block = 0;
	te_full_move_block = 0;
	te_swap_terrain = 494;
begindefineterrain 499;
	import = 471;
	te_name = "Gate";
	te_which_icon = 21;
	te_cutaway_which_icon = 25;
	te_ed_which_icon = 87;
	te_full_look_block = 0;
	te_full_move_block = 0;
	te_swap_terrain = 495;
// crumbly walls
begindefineterrain 500;
	import = 468;
	te_which_icon = 32;
	te_ed_which_icon = 90;
	te_crumble_type = 1;
	te_terrain_to_crumble_to = 137;
begindefineterrain 501;
	import = 469;
	te_which_icon = 33;
	te_ed_which_icon = 91;
	te_crumble_type = 1;
	te_terrain_to_crumble_to = 137;
begindefineterrain 502;
	import = 470;
	te_which_icon = 32;
	te_ed_which_icon = 92;
	te_crumble_type = 1;
	te_terrain_to_crumble_to = 137;
begindefineterrain 503;
	import = 471;
	te_which_icon = 33;
	te_ed_which_icon = 93;
	te_crumble_type = 1;
	te_terrain_to_crumble_to = 137;

begindefineterrain 504;
	import = 236;
	te_name = "Sewing Machine";
	te_which_sheet = 509;
	te_which_icon = 0;
	te_ed_which_sheet = 507;
	te_ed_which_icon = 10;
begindefineterrain 505;
	te_name = "Spinning Wheel";
	te_which_sheet = 509;
	te_which_icon = 1;
	te_ed_which_sheet = 507;
	te_ed_which_icon = 11;

begindefineterrain 506;
	import = 183;
	te_name = "Blackboard";
	te_which_sheet = 509;
	te_which_icon = 2;
	te_ed_which_sheet = 507;
	te_ed_which_icon = 12;
begindefineterrain 507;
	te_name = "Target";
	te_which_sheet = 509;
	te_which_icon = 3;
	te_ed_which_sheet = 507;
	te_ed_which_icon = 13;

begindefineterrain 508;
	import = 219;
	te_name = "Gaming Table";
	te_which_sheet = 509;
	te_which_icon = 4;
	te_ed_which_sheet = 507;
	te_ed_which_icon = 14;

begindefineterrain 509;
	import = 180;
	te_name = "Duke Poster";
	te_which_sheet = 509;
	te_which_icon = 5;
	te_ed_which_sheet = 507;
	te_ed_which_icon = 16;

begindefineterrain 510;
	import = 181;
	te_name = "Duke Poster";
	te_which_sheet = 509;
	te_which_icon = 6;
	te_ed_which_sheet = 507;
	te_ed_which_icon = 15;

// --- custom items ---

begindefineitem 450;
	clear;
	it_name = "Cloth Mask";
	it_full_name = "Cloth Mask";
	it_variety = 14;
	it_floor_which_sheet = 506;
	it_floor_which_icon = 1;
	it_inventory_icon = 0;
	it_identified = 1;
	it_value = 10;
	it_magic = 1;

begindefineitem 451;
	import = 415;
	it_name = "Most Excellent Wine";
	it_full_name = "Most Excellent Wine";
	it_ability_1 = 178;
	it_ability_str_1 = 20;
	it_value = 0;
	it_magic = 1;

begindefineitem 452;
	clear;
	it_name = "Book";
	it_full_name = "Goddesses Vol. 1";
	it_variety = 21;
	it_floor_which_sheet = 1026;
	it_floor_which_icon = 0;
	it_inventory_icon = 0;
	it_ability_1 = 207;
	it_ability_str_1 = 11;
	it_value = 0;
	it_weight = 10;
	it_identified = 1;
	it_magic = 1;
begindefineitem 453;
	it_full_name = "Goddesses Vol. 2";
	it_floor_which_sheet = 1032;
	it_floor_which_icon = 0;
	it_inventory_icon = 1;
	it_ability_str_1 = 12;
begindefineitem 454;
	it_full_name = "The Good Book";
	it_floor_which_sheet = 1026;
	it_floor_which_icon = 1;
	it_inventory_icon = 1;
	it_ability_str_1 = 13;
	it_value = 2;
	it_magic = 0;
begindefineitem 455;
	it_full_name = "Reapers in the Corn";
	it_floor_which_icon = 2;
	it_inventory_icon = 2;
	it_ability_str_1 = 14;
	it_value = 1;
begindefineitem 456;
	it_full_name = "Losing It All";
	it_floor_which_icon = 3;
	it_inventory_icon = 3;
	it_ability_str_1 = 15;

begindefineitem 457;
	clear;
	it_name = "Note";
	it_full_name = "Note";
	it_variety = 21;
	it_floor_which_sheet = 1014;
	it_floor_which_icon = 5;
	it_inventory_icon = 6;
	it_ability_1 = 207;
	it_ability_str_1 = 16;
	it_value = 0;
	it_identified = 1;
	it_magic = 1;

begindefineitem 458;
	clear;
	it_name = "Card Deck";
	it_full_name = "Card Deck";
	it_variety = 21;
	it_floor_which_sheet = 511;
	it_floor_which_icon = 1;
	it_inventory_icon = 0;
	it_identified = 1;
	it_value = 10;
	it_magic = 1;

// custom creatures

begindefinecreature 240;
	import = 105;
	cr_name = "Card Dealer";
	cr_default_script = "dealer";
	cr_level = 99;
	cr_hp_bonus = 200;
	cr_which_sheet = 515;
	cr_small_or_large_template = 1;

begindefinecreature 241;
	import = 105;
	cr_name = "Stickman";
	cr_default_script = "stickman";
	cr_level = 99;
	cr_hp_bonus = 200;
	cr_which_sheet = 515;
	cr_small_or_large_template = 1;

begindefinecreature 242;
	import = 105;
	cr_name = "Townswoman";
	cr_level = 99;
	cr_which_sheet = 516;
	cr_small_or_large_template = 1;

begindefinecreature 243;
	import = 105;
	cr_name = "Townsman";
	cr_level = 99;
	cr_which_sheet = 517;
	cr_small_or_large_template = 1;

begindefinecreature 244;
	import = 105;
	cr_name = "Merchant";
	cr_level = 99;
	cr_which_sheet = 518;
	cr_small_or_large_template = 1;
