//Cathedral objects

beginscendatascript;


//Terrain


begindefineterrain 368;
	import = 269;
	te_which_sheet = 1508;
	te_which_icon = 43;

//tree slopes
begindefineterrain 341; //replacing vahnatai stuff
	import = 433;
	te_which_sheet = 500;
	te_which_icon = 36; //up north slope
	te_special_property = 25;
	te_second_icon = 37;
	te_icon_adjust = 0;
	te_second_icon_offset_y = -11;
	te_second_icon_offset_x = -3;
	te_suppress_floor = 1;
	//te_full_move_block = 1;

begindefineterrain 342;
	te_second_icon = 35;

begindefineterrain 343;
	te_second_icon = 33;

begindefineterrain 344;
	te_which_icon = 30; //up west slope
	te_special_property = 19;
	te_second_icon = 37;
	te_icon_adjust = 0;
	te_second_icon_offset_y = -11;
	te_second_icon_offset_x = 3;

begindefineterrain 345;
	te_which_icon = 34; //up east slope
	te_special_property = 23;
	te_second_icon = 39;
	te_icon_adjust = 0;
	te_second_icon_offset_y = -11;
	te_second_icon_offset_x = -3;

begindefineterrain 346;
	import = 344;
	te_which_sheet = 500;
	te_second_icon = 38;

//frill hills
begindefineterrain 304;
	import = 74;
	te_which_sheet = 514;
	te_which_icon = 0;
	te_icon_adjust = 0;

begindefineterrain 305;
	import = 75;
	te_which_sheet = 514;
	te_which_icon = 1;
	te_icon_adjust = 0;

begindefineterrain 306;
	import = 76;
	te_which_sheet = 514;
	te_which_icon = 2;
	te_icon_adjust = 0;

begindefineterrain 307;
	import = 77;
	te_which_sheet = 514;
	te_which_icon = 3;
	te_icon_adjust = 0;

begindefineterrain 308;
	import = 78;
	te_which_sheet = 514;
	te_which_icon = 4;
	te_icon_adjust = 0;

begindefineterrain 309;
	import = 79;
	te_which_sheet = 514;
	te_which_icon = 5;
	te_icon_adjust = 0;

begindefineterrain 310;
	import = 80;
	te_which_sheet = 514;
	te_which_icon = 6;
	te_icon_adjust = 0;

begindefineterrain 311;
	import = 81;
	te_which_sheet = 514;
	te_which_icon = 7;
	te_icon_adjust = 0;

begindefineterrain 312;
	import = 82;
	te_which_sheet = 514;
	te_which_icon = 8;
	te_icon_adjust = 0;

begindefineterrain 313;
	import = 83;
	te_which_sheet = 514;
	te_which_icon = 9;
	te_icon_adjust = 0;

begindefineterrain 314;
	import = 84;
	te_which_sheet = 514;
	te_which_icon = 10;
	te_icon_adjust = 0;

begindefineterrain 315;
	import = 85;
	te_which_sheet = 514;
	te_which_icon = 11;
	te_icon_adjust = 0;


begindefineterrain 234;
	import = 178;
	te_name = "Bookshelf";
	te_which_sheet = 724;
	te_which_icon = 8;
	te_ed_which_sheet = 682;
	te_ed_which_icon = 48;
	te_icon_offset_y = -12;
	te_special_property = 40;
	te_move_block_n = 1;
	te_look_block_n = 0;
	te_blocks_view_n = 0;
begindefineterrain 235;
	te_which_icon = 9;
	te_ed_which_icon = 49;
	te_icon_offset_x = -18;
	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 376;
	clear;
	te_name = "Runed Platform";
	te_which_sheet = 767;
	te_which_icon = 9;
	te_ed_which_sheet = 686;
	te_ed_which_icon = 79;
	te_icon_adjust = 6;
	te_ed_icon_adjust = 6;

begindefineterrain 106; //fake cave walls
	import = 4;
	te_cutaway_which_icon = -1;
	te_cutaway_second_icon = -1;
	te_which_sheet = 509;
	te_which_icon = 0;

begindefineterrain 107;
	te_which_icon = 2;
	te_icon_offset_x = 18;
	te_icon_offset_y = -12;

begindefineterrain 108; 
	import = 3;
	te_cutaway_which_icon = -1;
	te_cutaway_second_icon = -1;
	te_which_sheet = 509;
	te_which_icon = 1;

begindefineterrain 109;
	te_which_icon = 3;
	te_icon_offset_x = -18;
	te_icon_offset_y = -12;

begindefineterrain 110; 
	import = 5;
	te_cutaway_which_icon = -1;
	te_cutaway_second_icon = -1;
	te_which_sheet = 509;
	te_which_icon = 1;

begindefineterrain 111;
	te_which_icon = 3;
	te_icon_offset_x = 0;
	te_icon_offset_y = 0;

begindefineterrain 112;
	import = 8;
	te_cutaway_which_icon = -1;
	te_cutaway_second_icon = -1;
	te_which_sheet = 509;
	te_which_icon = 4;

begindefineterrain 113;
	import = 2;
	te_cutaway_which_icon = -1;
	te_cutaway_second_icon = -1;
	te_which_sheet = 509;
	te_which_icon = 6;
	te_second_icon = 1;

begindefineterrain 114;
	import = 3;
	te_cutaway_which_icon = -1;
	te_cutaway_second_icon = -1;
	te_which_sheet = 509;
	te_which_icon = 7;
	te_second_icon = 0;

begindefineterrain 115;
	import = 2;
	te_cutaway_which_icon = -1;
	te_cutaway_second_icon = -1;
	te_which_sheet = 509;
	te_which_icon = 2;
	te_second_icon = 3;
	te_second_icon_offset_x = -20;
	te_second_icon_offset_y = -12;

begindefineterrain 116;
	import = 126;
	te_which_sheet = 509;
	te_which_icon = 8;

begindefineterrain 117;
	te_icon_offset_x = 18;
	te_icon_offset_y = 12;

begindefineterrain 118;
	te_icon_offset_x = 37;
	te_icon_offset_y = 0;

begindefineterrain 119;
	te_which_icon = 9;
	te_icon_offset_x = -18;
	te_icon_offset_y = -12;

begindefineterrain 120;
	import = 113;
	te_second_icon = 3;

begindefineterrain 121;
	import = 126;
	te_which_sheet = 764;
	te_which_icon = 0;
	te_anim_steps = 4;
	te_ed_which_icon = 686;
	te_ed_which_icon = 42;

begindefineterrain 105; //fake platoon
	import = 126;
	te_which_sheet = 509;
	te_which_icon = 10;
	te_icon_offset_y = -12;
	te_icon_offset_x = 12;

begindefineterrain 104; //fake platoon
	te_which_icon = 11;

begindefineterrain 103; //fake platoon
	te_which_icon = 12;

begindefineterrain 98; //empty light source
	import = 0;
	te_light_radius = 15;
	te_ed_which_sheet = 681;
	te_ed_which_icon = 85;

begindefineterrain 102; //empty, low range light source
	te_light_radius = 1;

begindefineterrain 384; //blue energy source
	import = 125;
	te_which_sheet = 790;
	te_ed_which_sheet = 689;
	te_name = "Energy Source";
	te_which_icon = 8;
	te_ed_which_icon = 8;	
	te_special_property = 38;
	te_beam_hit_type = 0;
	te_icon_adjust = 9;

begindefineterrain 388;
	te_name = "Power Source";
	te_which_icon = 30;
	te_ed_which_icon = 54;	
	te_special_property = 31;
	te_swap_terrain = 384;

begindefineterrain 177; //blue brazier
	import = 267;
	te_icon_adjust = 1;
	te_light_radius = 5;

begindefineterrain 94; //catacomb slope, up to east
	import = 289;
	te_name = "Walkway";
	te_which_sheet = 744;
	te_which_icon = 5;
	te_icon_adjust = 24;

begindefineterrain 95; //catacomb slope, up to east
	import = 290;
	te_name = "Walkway";
	te_which_sheet = 744;
	te_which_icon = 6;
	te_icon_adjust = 24;

begindefineterrain 96; //catacomb slope, up to east
	import = 291;
	te_name = "Walkway";
	te_which_sheet = 744;
	te_which_icon = 7;
	te_icon_adjust = 24;

begindefineterrain 97; //catacomb slope, up to east
	import = 292;
	te_name = "Walkway";
	te_which_sheet = 744;
	te_which_icon = 8;
	te_icon_adjust = 24;

begindefineterrain 262;
	import = 200;
	te_name = "Sarcophagus";
	te_which_sheet = 728;
	te_which_icon = 4;
	te_ed_which_sheet = 682;
	te_ed_which_icon = 84;	
	te_icon_adjust = 27;	
begindefineterrain 263;
	te_which_icon = 5;
	te_ed_which_icon = 85;

begindefineterrain 264; //Fixing this... it imports the above
	te_name = "Pile of Sacks";
	te_which_icon = 2;
	te_ed_which_icon = 82;
	te_icon_offset_y = 0;
	te_icon_offset_x = 0;
	te_icon_adjust = 0;

begindefineterrain 297; //rune, courtesy of Luz
	import = 270;
	te_which_sheet = 503;
	te_which_icon = 6;
	te_ed_which_sheet = 501;
	te_ed_which_icon = 26;
	te_icon_adjust = 64;

begindefineterrain 270;
	import = 141;
	te_name = "Rune";
	te_which_sheet = 757;
	te_which_icon = 6;
	te_ed_which_sheet = 684;
	te_ed_which_icon = 76;
	te_special_property = 42;
	te_icon_adjust = 92;

begindefineterrain 379; //jump-blocker
	clear;
	te_which_sheet = 703;
	te_which_icon = 9;
	te_ed_which_sheet = 684;
	te_ed_which_icon = 9;
	te_full_move_block = 1;

begindefineterrain 271; //jump-blocker
	import = 165;
	te_which_sheet = 704;
	te_which_icon = 3;
	te_full_move_block = 1;
	te_full_look_block = 1;

//wooden stairs
begindefineterrain 293; 
	import = 289;
	te_name = "Wooden Stairs";
	te_which_sheet = 506;
	te_which_icon = 16;
	te_ed_which_icon = 40;
	te_icon_adjust = 24;
begindefineterrain 294; 
	te_which_icon = 17;
	te_ed_which_icon = 41;
	te_special_property = 19;
begindefineterrain 295; 
	te_which_icon = 18;
	te_ed_which_icon = 42;
	te_special_property = 21;
begindefineterrain 296;
	te_which_icon = 19;
	te_ed_which_icon = 43;
	te_special_property = 23;

begindefineterrain 340;
	import = 330;
	te_name = "Cathedral";
	te_which_sheet = 500;
	te_which_icon = 1;
	te_ed_which_sheet = 501;
	te_ed_which_icon = 7;
	te_icon_adjust = 521;
	te_ed_icon_adjust = 521;

begindefineterrain 358; //slightly larger hut
	import = 325;
	te_which_sheet = 789;
	te_which_icon = 2;
	te_icon_offset_y = -2;
	te_ed_which_sheet = 688;
	te_ed_which_icon = 92;

begindefineterrain 359; //fountain border
	import = 355;
	te_name = "Stone";
	te_icon_adjust = 929;
	te_light_radius = 1;
	te_shimmers = 1;

begindefineterrain 377; //sacks
	import = 264;
	te_which_sheet = 504;
	te_which_icon = 4;
	te_full_move_block = 0;

begindefineterrain 378; //sacks
	te_which_icon = 5;

begindefineterrain 288; //reversed good altar
	import = 276;
	te_which_sheet = 500;
	te_which_icon = 29;

begindefineterrain 361; //fixing lamppost
	import = 141;
	te_name = "Lamppost"; 
	te_which_sheet = 767;
	te_which_icon = 1;
	te_ed_which_sheet = 686;
	te_ed_which_icon = 71;
	te_blocks_view_w = 1;
	te_blocks_view_s = 1;
	te_full_move_block = 1;
	te_light_radius = 8;
	te_icon_offset_y = -13;

begindefineterrain 360; //fixing lamppost
	te_which_sheet = 795;
	te_which_icon = 9;
	te_ed_which_sheet = 689;
	te_ed_which_icon = 59;

begindefineterrain 134; //stained glass window, W - credit: Dahak
	import = 182;
	te_name = "Stained Glass";
	te_which_sheet = 502;
	te_which_icon = 1;
	te_icon_offset_x = 1;
	te_icon_offset_y = 6;
	te_second_icon = 0;
	te_second_icon_offset_x = 1;
	te_second_icon_offset_y = -49;

begindefineterrain 135; //Stained glass window, center - credit: Dahak
	te_which_icon = 3;
	te_icon_offset_x = 0;
	te_icon_offset_y = -10;
	te_second_icon = 2;
	te_second_icon_offset_x = 0;
	te_second_icon_offset_y = -65;

begindefineterrain 136; //Stained glass window, E - credit: Dahak
	te_which_icon = 5;
	te_icon_offset_x = 22;
	te_icon_offset_y = -26;
	te_second_icon = 4;
	te_second_icon_offset_x = 22;
	te_second_icon_offset_y = -81;

begindefineterrain 326; //Fix the watchtower
	import = 304;
	te_name = "Building";
	te_which_sheet = 750;
	te_which_icon = 6;
	te_ed_which_sheet = 683;
	te_ed_which_icon = 6;
	te_icon_offset_y = -6;

begindefineterrain 421; //gardens
	import = 146;
	te_name = "Gardens";
	te_which_sheet = 500;
	te_which_icon = 10;
	te_ed_which_sheet = 501;
	te_ed_which_icon = 0;

begindefineterrain 422; //gardens
	te_which_icon = 11;
	te_ed_which_icon = 1;

begindefineterrain 423; //gardens
	te_which_icon = 12;
	te_ed_which_icon = 2;

begindefineterrain 424; //gardens
	te_which_icon = 13;
	te_ed_which_icon = 3;

begindefineterrain 425; //gardens
	te_which_icon = 14;
	te_ed_which_icon = 4;

begindefineterrain 426; //gardens
	te_which_icon = 15;
	te_ed_which_icon = 5;

begindefineterrain 427; //gardens
	te_which_icon = 16;
	te_ed_which_icon = 6;

begindefineterrain 428; //Tree
	import = 154;
	te_which_sheet = 500;
	te_which_icon = 17;
	te_icon_adjust = 4;
	te_icon_offset_y = -6;

begindefineterrain 429; //Tree
	te_which_icon = 8;
	te_icon_adjust = 16;

begindefineterrain 430; //tree
	te_which_icon = 19;
	te_icon_adjust = 16;

begindefineterrain 431; //tree
	te_which_icon = 18;
	te_icon_adjust = 16;

begindefineterrain 432; //tree
	te_which_icon = 9;
	te_icon_adjust = 16;

begindefineterrain 433; //outdoor trees
	te_name = "Trees";
	te_which_icon = 20;
	te_icon_offset_y = 0;

begindefineterrain 434; //outdoor trees
	te_which_icon = 21;

begindefineterrain 435; //outdoor trees
	te_which_icon = 22;

begindefineterrain 436; //outdoor trees
	te_which_icon = 23;

begindefineterrain 437; //outdoor trees
	te_which_icon = 24;

begindefineterrain 438; //hedge
	import = 146;
	te_name = "Hedge";
	te_full_move_block = 1;
	te_which_sheet = 500;
	te_which_icon = 2;
	te_ed_which_sheet = 501;
	te_ed_which_icon = 14;
	te_icon_offset_y = -4;

begindefineterrain 439; //hedge
	te_which_icon = 3;
	te_ed_which_icon = 9;

begindefineterrain 440; //hedge
	te_which_icon = 4;
	te_ed_which_icon = 13;

begindefineterrain 441; //double hedge
	te_ed_which_icon = 9;
	te_second_icon = 2;
	te_second_icon_offset_y = -13;

begindefineterrain 442; //Blue obelisk
	import = 215;
	te_icon_adjust = 17;

begindefineterrain 443; //green obelisk
	te_icon_adjust = 20;

begindefineterrain 444; //bluish statue
	import = 243;
	te_icon_adjust = 1;

begindefineterrain 445; //pews (north side of the square)
	import = 170;
	te_which_sheet = 500;
	te_which_icon = 27;
	te_ed_which_sheet = 501;
	te_ed_which_icon = 17;
	te_icon_offset_x = 11;
	te_icon_offset_y = -7;
begindefineterrain 446; //pews (west side of the square)
	import = 171;
	te_which_sheet = 500;
	te_which_icon = 28;
	te_ed_which_sheet = 501;
	te_ed_which_icon = 18;
	te_icon_offset_x = -11;
	te_icon_offset_y = -7;
begindefineterrain 447; //pews (south side of the square)
	import = 172;
	te_which_sheet = 500;
	te_which_icon = 26;
	te_ed_which_sheet = 501;
	te_ed_which_icon = 16;
	te_icon_offset_x = -11;
	te_icon_offset_y = 7;
begindefineterrain 448; //pews (east side of the square)
	import = 173;
	te_which_sheet = 500;
	te_which_icon = 25;
	te_ed_which_sheet = 501;
	te_ed_which_icon = 15;
	te_icon_offset_x = 9;
	te_icon_offset_y = 6;

begindefineterrain 449; // < fence
	import = 0;
	te_name = "Fence";
	te_which_sheet = 502;
	te_which_icon = 18;
	te_ed_which_sheet = 690;
	te_ed_which_icon = 5;
	te_move_block_w = 1;
	te_move_block_s = 1;
	te_move_block_n = 0;
	te_move_block_e = 0;

begindefineterrain 450; // > fence
	te_which_sheet = 502;
	te_which_icon = 19;
	te_ed_which_icon = 7;
	te_move_block_n = 1;
	te_move_block_e = 1;
	te_move_block_w = 0;
	te_move_block_s = 0;

begindefineterrain 451; // v fence
	te_which_sheet = 502;
	te_which_icon = 8;
	te_ed_which_icon = 6;
	te_move_block_w = 0;
	te_move_block_n = 0;
	te_move_block_s = 1;
	te_move_block_e = 1;

begindefineterrain 452; // ^ fence
	te_which_sheet = 502;
	te_which_icon = 9;
	te_ed_which_icon = 4;
	te_move_block_s = 0;
	te_move_block_e = 0;
	te_move_block_n = 1;
	te_move_block_w = 1;

begindefineterrain 453; //double pillar
	import = 231;
	te_which_sheet = 502;
	te_which_icon = 16;
	te_second_icon = 6;
	te_second_icon_offset_y = -55;

begindefineterrain 454; //fake stairway landing (stairs point N)
	import = 289;
	te_height_adj_pixels = 18;
	te_suppress_floor = 0;
	te_which_sheet = 502;
	te_which_icon = 20;
	te_second_icon = 7;
	te_second_icon_offset_y = -15;
	te_second_icon_offset_x = 21;
	te_cutaway_which_sheet = -1;

begindefineterrain 455; //fake stairway landing (stairs point S)
	import = 291;
	te_height_adj_pixels = 18;
	te_suppress_floor = 0;
	te_which_sheet = 502;
	te_which_icon = 22;
	te_second_icon = 17;
	te_second_icon_offset_y = 12;
	te_second_icon_offset_x = -21;

begindefineterrain 458; //grave 1
	import = 280;
	te_name = "Grave";
	te_which_sheet = 720;
	te_which_icon = 2;
	te_ed_which_sheet = 682;
	te_ed_which_icon = 92;

begindefineterrain 459; //grave 2
	te_which_icon = 3;
	te_ed_which_icon = 93;
	te_full_move_block = 0;

begindefineterrain 460; //grave 3
	te_which_icon = 4;
	te_name = "Tombstone";
	te_ed_which_icon = 94;
	te_full_move_block = 1;

begindefineterrain 461; //grave 4
	te_which_icon = 5;
	te_ed_which_icon = 95;

begindefineterrain 462; //outdoor graves
	te_which_sheet = 503;
	te_which_icon = 7;
	te_name = "Graves";
	te_full_move_block = 0;

begindefineterrain 287; //double ladder
	import = 281;
	te_second_icon = 8;
	te_second_icon_offset_y = -30;

begindefineterrain 463; //cabinets from ASR/geneforge
	import = 238;
	te_name = "Cabinet";
	te_which_sheet = 503;
	te_which_icon = 0;
	te_icon_offset_x = 5;
	te_icon_offset_y = -11;

begindefineterrain 464; //cabinet facing other way
	import = 239;
	te_name = "Cabinet";
	te_which_sheet = 503;
	te_which_icon = 1;
	te_icon_offset_x = -5;
	te_icon_offset_y = -11;

begindefineterrain 465; //cloak rack
	import = 178;
	te_name = "Cloak Rack";
	te_which_sheet = 504;
	te_which_icon = 2;
	te_icon_offset_y = -18;
	te_icon_offset_x = 13;
	te_special_property = 40;

begindefineterrain 466; //cloak rack
	import = 179;
	te_name = "Cloak Rack";
	te_which_sheet = 504;
	te_which_icon = 3;
	te_icon_offset_y = -18;
	te_icon_offset_x = -13;
	te_special_property = 40;

begindefineterrain 467; //fake door, N
	import = 167;
	te_name = "Door";
	te_which_sheet = 503;
	te_which_icon = 4;
	te_icon_offset_x = 22;
	te_icon_offset_y = -16;

begindefineterrain 407; //fake door, N, fake window 3 up
	te_second_icon = 2;
	te_second_icon_offset_y = -75;

begindefineterrain 468; //fake door W
	import = 171;
	te_which_sheet = 503;
	te_which_icon = 5;
	te_name = "Door";
	te_icon_offset_x = -24;
	te_icon_offset_y = -16;

begindefineterrain 408; //fake door, W, fake window 3 up
	te_second_icon = 3;
	te_second_icon_offset_y = -75;

begindefineterrain 469; //fake window, N
	import = 170;
	te_which_sheet = 503;
	te_which_icon = 2;
	te_name = "Window";
	te_icon_offset_x = 0;
	te_icon_offset_y = -8;

begindefineterrain 393; //fake window, N, 3 up
	te_icon_offset_y = -75;

begindefineterrain 392; //fake window, N, 6 up
	te_icon_offset_y = -150;

begindefineterrain 391; //fake window, N, 9 up
	te_icon_offset_y = -220;

begindefineterrain 470; //fake window, W
	import = 171;
	te_which_sheet = 503;
	te_which_icon = 3;
	te_name = "Window";
	te_icon_offset_x = 0;
	te_icon_offset_y = -8;

begindefineterrain 394; //fake window, W, 3 up
	te_icon_offset_y = -75;

begindefineterrain 390; //fake window, W, 9 up
	te_icon_offset_y = -220;

begindefineterrain 365; //fake door, W (from wall sheet 603)
	import = 468;
	te_which_icon = 19;

begindefineterrain 366; //fake window, W (from wall sheet 603)
	import = 470;
	te_which_icon = 11;
	te_icon_offset_x = -3;
	te_icon_offset_y = -10;

begindefineterrain 367; //fake window, N (from wall sheet 603)
	import = 469;
	te_which_icon = 10;
	te_icon_offset_x = 5;
	te_icon_offset_y = -10;


//Terrains embedded in walls!
begindefineterrain 471; //N wall bookshelf
	import = 2;
	te_name = "Wall, Bookshelf";
	te_which_sheet = 504;
	te_which_icon = 10;
	te_cutaway_which_sheet = 504;
	te_cutaway_which_icon = 12;
	te_second_icon = 18;
	te_second_icon_offset_y = -9;
	te_second_icon_offset_x = 13;
	te_cutaway_second_icon = -1;
	te_special_property = 40;
	te_can_look_at = 1;

begindefineterrain 472; //W Wall bookshelf
	te_which_icon = 11;
	te_cutaway_which_icon = 13;
	te_ed_which_icon = 1;
	te_icon_offset_x = -18;
	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;
	te_second_icon = 19;
	te_second_icon_offset_x = -13;
	te_cutaway_second_icon = -1;

begindefineterrain 473; //N Wall sign
	import = 471;
	te_name = "Wall, Sign";
	te_second_icon = 14;
	te_cutaway_second_icon = -1;
	te_special_property = 39;
	te_second_icon_offset_x = 0;
	te_second_icon_offset_y = 0;

begindefineterrain 474; //W Wall sign
	import = 472;
	te_name = "Wall, Sign";
	te_second_icon = 15;
	te_cutaway_second_icon = -1;
	te_special_property = 39;
	te_second_icon_offset_y = 0;
	te_second_icon_offset_x = 0;

begindefineterrain 475; //N Wall cloak rack
	import = 473;
	te_name = "Wall, Cloak Rack";
	te_second_icon = 2;
	te_second_icon_offset_y = -15;
	te_second_icon_offset_x = 6;
	te_special_property = 40;

begindefineterrain 476; //W Wall cloak rack
	import = 474;
	te_name = "Wall, Cloak Rack";
	te_second_icon = 3;
	te_second_icon_offset_y = -15;
	te_second_icon_offset_x = -6;
	te_special_property = 40;

begindefineterrain 477; //N Wall bed
	import = 471;
	te_name = "Wall, Bed";
	te_cutaway_second_icon = 17;
	te_second_icon = 17;
	te_second_icon_offset_x = -4;
	te_second_icon_offset_y = 2;
	te_special_property = 41;

begindefineterrain 478; //W Wall bed
	import = 472;
	te_name = "Wall, Bed";
	te_cutaway_second_icon = 16;
	te_second_icon = 16;
	te_second_icon_offset_x = 4;
	te_second_icon_offset_y = 2;
	te_special_property = 41;

begindefineterrain 479; //N Wall Trapdoor
	import = 475;
	te_name = "Wall, Trapdoor";
	te_second_icon = 29;
	te_cutaway_second_icon = -1;
	te_second_icon_offset_y = 2;
	te_second_icon_offset_x = -3;
	te_special_property = 0;

begindefineterrain 480; //E Wall, box
	import = 5;
	te_name = "Wall, Box";
	te_which_sheet = 504;
	te_which_icon = 28;
	te_ed_which_sheet = 690;
	te_ed_which_icon = 3;
	te_cutaway_which_sheet = 504;
	te_cutaway_which_icon = 23;
	te_second_icon = 11;
	te_icon_offset_x = -5;
	te_icon_offset_y = -4;
	te_cutaway_second_icon = 13;
	te_special_property = 40;
	te_full_move_block = 1;

begindefineterrain 481; //S Wall, bed
	import = 4;
	te_name = "Wall, Bed";
	te_which_sheet = 504;
	te_which_icon = 28;
	te_ed_which_sheet = 690;
	te_ed_which_icon = 2;
	te_cutaway_which_sheet = 504;
	te_cutaway_which_icon = 17;
	te_second_icon = 10;
	te_icon_offset_x = 5;
	te_icon_offset_y = -4;
	te_cutaway_second_icon = 12;
	te_special_property = 41;

begindefineterrain 482; //S Wall, box
	te_name = "Wall, Box";
	te_cutaway_which_icon = 22;
	te_special_property = 40;
	te_full_move_block = 1;

begindefineterrain 483; //W Wall, trapdoor
	import = 476;
	te_name = "Wall, Trapdoor";
	te_second_icon = 29;
	te_cutaway_second_icon = -1;
	te_second_icon_offset_y = 2;
	te_second_icon_offset_x = 3;
	te_special_property = 0;

begindefineterrain 484; //E Wall, trapdoor
	import = 5;
	te_name = "Wall, Trapdoor";
	te_which_sheet = 504;
	te_which_icon = 28;
	te_ed_which_sheet = 690;
	te_ed_which_icon = 3;
	te_cutaway_which_sheet = 504;
	te_cutaway_which_icon = 29;
	te_second_icon = 11;
	te_icon_offset_x = -3;
	te_icon_offset_y = -2;
	te_cutaway_second_icon = 13;

begindefineterrain 485; //W Wall, desk
	import = 476;
	te_name = "Wall, Desk";
	te_second_icon = 24;
	te_second_icon_offset_y = -1;
	te_second_icon_offset_x = 11;


//Roofs! (credit to Luz)

begindefineterrain 489;
	clear;
	te_name = "Roof";
	te_which_sheet = 505;
	te_which_icon = 0;
	te_ed_which_sheet = 501;
	te_ed_which_icon = 40;
	te_special_property = 19;
	te_height_adj_pixels = 12;
	te_suppress_floor = 1;
	te_draw_on_automap = 1;

begindefineterrain 490;
	te_which_icon = 1;
	te_ed_which_icon = 41;
	te_special_property = 20;

begindefineterrain 491;
	te_which_icon = 2;
	te_ed_which_icon = 42;
	te_special_property = 21;

begindefineterrain 492;
	te_which_icon = 3;
	te_ed_which_icon = 43;
	te_special_property = 22;

begindefineterrain 493;
	te_which_icon = 4;
	te_ed_which_icon = 44;
	te_special_property = 23;

begindefineterrain 494;
	te_which_icon = 5;
	te_ed_which_icon = 45;
	te_special_property = 24;

begindefineterrain 495;
	te_which_icon = 6;
	te_ed_which_icon = 46;
	te_special_property = 25;

begindefineterrain 496;
	te_which_icon = 7;
	te_ed_which_icon = 47;
	te_special_property = 26;

begindefineterrain 497;
	te_which_icon = 8;
	te_ed_which_icon = 48;
	te_special_property = 27;

begindefineterrain 498;
	te_which_icon = 9;
	te_ed_which_icon = 49;
	te_special_property = 28;

begindefineterrain 499;
	te_which_icon = 10;
	te_ed_which_icon = 50;
	te_special_property = 29;

begindefineterrain 500;
	te_which_icon = 11;
	te_ed_which_icon = 51;
	te_special_property = 30;

begindefineterrain 501;
	te_which_icon = 16;
	te_ed_which_icon = 56;
	te_special_property = 19;

begindefineterrain 502;
	te_which_icon = 17;
	te_ed_which_icon = 57;
	te_special_property = 21;

begindefineterrain 503;
	te_which_icon = 18;
	te_ed_which_icon = 58;
	te_special_property = 23;

begindefineterrain 504;
	te_which_icon = 19;
	te_ed_which_icon = 59;
	te_special_property = 25;

begindefineterrain 505;
	te_which_icon = 20;
	te_ed_which_icon = 60;
	te_special_property = 0;

begindefineterrain 506;
	te_which_icon = 21;
	te_ed_which_icon = 61;

begindefineterrain 507;
	te_which_icon = 22;
	te_ed_which_icon = 62;

begindefineterrain 508;
	te_which_icon = 23;
	te_ed_which_icon = 63;

begindefineterrain 509;
	te_which_icon = 24;
	te_ed_which_icon = 64;

begindefineterrain 510;
	te_which_icon = 25;
	te_ed_which_icon = 65;

begindefineterrain 511;
	te_which_icon = 26;
	te_ed_which_icon = 66;

begindefineterrain 122; //fake roof, so walls don't screw up
	import = 491;
	te_special_property = 0;

begindefineterrain 123; //another fake
	import = 490;
	te_special_property = 0;

begindefineterrain 124; //another fake
	import = 492;
	te_special_property = 0;

begindefineterrain 457; //another fake, with a window on top
	import = 493;
	te_second_icon = 28;
	te_second_icon_offset_y = -95;

begindefineterrain 456; //another fake, same
	import = 495;
	te_second_icon = 27;
	te_second_icon_offset_y = -80;

begindefineterrain 175; //another fake
	te_second_icon_offset_y = -58;

begindefineterrain 176; //another fake
	import = 489;
	te_second_icon = 28;
	te_second_icon_offset_y = -80;

begindefineterrain 90; //doorway, N
	import = 170;
	te_name = "Doorway";
	te_which_sheet = 727;
	te_which_icon = 2;
	te_ed_which_sheet = 690;
	te_ed_which_icon = 74;
	te_icon_offset_x = 18;
	te_icon_offset_y = -12;
	te_move_block_n = 0;
	te_cutaway_which_sheet = -1;

begindefineterrain 91; //doorway, W
	import = 171;
	te_name = "Doorway";
	te_which_sheet = 727;
	te_which_icon = 8;
	te_ed_which_sheet = 690;
	te_ed_which_icon = 75;
	te_icon_offset_x = -18;
	te_icon_offset_y = -12;
	te_move_block_w = 0;
	te_cutaway_which_sheet = -1;

begindefineterrain 92; //doorway, S
	import = 172;
	te_name = "Doorway";
	te_which_sheet = 727;
	te_which_icon = 2;
	te_ed_which_sheet = 690;
	te_ed_which_icon = 76;
	te_icon_offset_x = 0;
	te_icon_offset_y = 0;
	te_move_block_s = 0;
	te_cutaway_which_sheet = -1;

begindefineterrain 93; //doorway, E
	import = 173;
	te_name = "Doorway";
	te_which_sheet = 727;
	te_which_icon = 8;
	te_ed_which_sheet = 690;
	te_ed_which_icon = 77;
	te_icon_offset_x = 0;
	te_icon_offset_y = 0;
	te_move_block_e = 0;
	te_cutaway_which_sheet = -1;

begindefineterrain 409; //double-barrier
	import = 300;
	te_name = "Barrier";
	te_which_sheet = 743;
	te_which_icon = 3;
	te_second_icon = 3;
	te_second_icon_offset_y = -25;
	te_anim_steps = 4;
	te_icon_adjust = 1;


begindefineterrain 99; //fake guard
	import = 125;
	te_name = "Guard";
	te_which_sheet = 509;
	te_which_icon = 13;

begindefineterrain 100;
	te_which_icon = 14;

begindefineterrain 101;
	te_which_icon = 15;

// Floors

begindefinefloor 118;
	clear;
	fl_which_sheet = 707;
	fl_which_icon = 3;
	fl_ed_which_sheet = 680;
	fl_is_floor = 1;
	fl_out_fight_town_used = 1024;
	fl_name = "Blue Carpet";
	fl_ed_which_icon = 74;
	fl_icon_adjust = 548;
	fl_ed_icon_adjust = 548;

begindefinefloor 130;
	import = 97;
	fl_name = "Walkway";
	fl_icon_adjust = 912;

begindefinefloor 131;
	fl_icon_adjust = 32;

begindefinefloor 132;
	import = 98;
	fl_which_sheet = 502;
	fl_which_icon = 29;

begindefinefloor 133;
	fl_special_property = 6;
	fl_special_strength = 1;

begindefinefloor 134; //
	import = 98;
	fl_ed_icon_adjust = 601;
	fl_icon_adjust = 601;

begindefinefloor 151; //tiled floor (Luz)
	import = 98;
	fl_which_sheet = 503;
	fl_which_icon = 13;
	fl_ed_which_sheet = 501;
	fl_ed_which_icon = 33;

begindefinefloor 135; //stone floor (Luz)
	import = 123;
	fl_name = "Stone";
	fl_which_sheet = 506;
	fl_which_icon = 0;
	fl_ed_which_sheet = 501;
	fl_ed_which_icon = 70;
	fl_icon_adjust = 24;

begindefinefloor 136; //stone floor (Luz)
	fl_which_icon = 1;
	fl_ed_which_icon = 71;

begindefinefloor 137; //stone floor (Luz)
	fl_which_icon = 2;
	fl_ed_which_icon = 72;

begindefinefloor 138; //stone floor (Luz)
	fl_which_icon = 3;
	fl_ed_which_icon = 73;

begindefinefloor 139; //stone floor (Luz)
	fl_which_icon = 4;
	fl_ed_which_icon = 74;

begindefinefloor 140; //stone floor (Luz)
	fl_which_icon = 5;
	fl_ed_which_icon = 75;

begindefinefloor 141; //stone floor (Luz)
	fl_which_icon = 6;
	fl_ed_which_icon = 76;

begindefinefloor 142; //stone floor (Luz)
	fl_which_icon = 7;
	fl_ed_which_icon = 77;

begindefinefloor 143; //stone floor (Luz)
	fl_which_icon = 8;
	fl_ed_which_icon = 78;

begindefinefloor 144; //stone floor (Luz)
	fl_which_icon = 9;
	fl_ed_which_icon = 79;

begindefinefloor 145; //stone floor (Luz)
	fl_which_icon = 10;
	fl_ed_which_icon = 80;

begindefinefloor 146; //stone floor (Luz)
	fl_which_icon = 11;
	fl_ed_which_icon = 81;

begindefinefloor 147; //stone floor (Luz)
	fl_which_icon = 12;
	fl_ed_which_icon = 81;



begindefinefloor 150; //dark dirt
	import = 72;
	fl_icon_adjust = 16;

begindefinefloor 155; //summoning circle bits
	import = 132;
	fl_which_sheet = 513;
	fl_which_icon = 0;

begindefinefloor 156; //summoning circle
	fl_which_icon = 1;

begindefinefloor 157; //summoning circle
	fl_which_icon = 2;

begindefinefloor 158; //summoning circle
	fl_which_icon = 3;

begindefinefloor 159; //summoning circle
	fl_which_icon = 4;

begindefinefloor 160; //summoning circle
	fl_which_icon = 5;

begindefinefloor 161; //summoning circle
	fl_which_icon = 6;

begindefinefloor 162; //summoning circle
	fl_which_icon = 7;

begindefinefloor 163; //summoning circle
	fl_which_icon = 8;

begindefinefloor 164; //summoning circle
	fl_which_icon = 9;

begindefinefloor 165; //summoning circle
	fl_which_icon = 10;

begindefinefloor 166; //summoning circle
	fl_which_icon = 11;

begindefinefloor 167; //summoning circle
	fl_which_icon = 12;

begindefinefloor 168; //summoning circle
	fl_which_icon = 13;

begindefinefloor 169; //summoning circle
	fl_which_icon = 14;

begindefinefloor 170; //summoning circle
	fl_which_icon = 15;

begindefinefloor 171; //summoning circle
	fl_which_icon = 16;

begindefinefloor 172; //summoning circle
	fl_which_icon = 17;

begindefinefloor 173; //summoning circle
	fl_which_icon = 18;

begindefinefloor 174; //summoning circle
	fl_which_icon = 19;

begindefinefloor 175; //summoning circle
	fl_which_icon = 20;

begindefinefloor 176; //summoning circle
	fl_which_icon = 21;

begindefinefloor 177; //summoning circle
	fl_which_icon = 22;

// Creatures

begindefinecreature 234; //skeletal warrior (graphic: Brett Bixler)
	import = 42; //skeleton
	//cr_which_sheet = 504;
	cr_summon_class = -1;

begindefinecreature 235; //guard's ghost
	import = 4;
	cr_species = 8;
	cr_level = 20;
	cr_icon_adjust = 72;
	cr_summon_class = -1;
	cr_natural_armor = 40;
	cr_immunities 5 = 40;
	cr_immunities 3 = 90;
	cr_immunities 1 = 100;
	cr_start_item 0 = 450;
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 455;
	cr_start_item_chance 1 = 100;
	cr_start_item 2 = 452;
	cr_start_item_chance 2 = 50;
	cr_start_item 3 = 458;
	cr_start_item_chance 3 = 40;
	cr_start_item 4 = 459;
	cr_start_item_chance 4 = 25;
	cr_start_item 5 = 0;
	cr_start_item_chance 5 = 0;
	cr_start_item 6 = 453;
	cr_start_item_chance 6 = 10;
	cr_start_item 7 = 0;
	cr_start_item_chance 7 = 0;

begindefinecreature 236; //archer's ghost
	import = 8;
	cr_species = 8;
	cr_level = 18;
	cr_icon_adjust = 72;
	cr_summon_class = -1;
	cr_natural_armor = 40;
	cr_immunities 5 = 40;
	cr_immunities 3 = 90;
	cr_immunities 1 = 100;
	cr_start_item 0 = 450;
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 455;
	cr_start_item_chance 1 = 100;
	cr_start_item 2 = 452;
	cr_start_item_chance 2 = 25;
	cr_start_item 3 = 459;
	cr_start_item_chance 3 = 75;
	cr_start_item 4 = 456;
	cr_start_item_chance 4 = 50;
	cr_start_item 5 = 461;
	cr_start_item_chance 5 = 50;
	cr_start_item 6 = 453;
	cr_start_item_chance 6 = 10;
	cr_start_item 7 = 457;
	cr_start_item_chance 7 = 50;

begindefinecreature 237; //captain's ghost
	import = 5;
	cr_species = 8;
	cr_level = 25;
	cr_icon_adjust = 72;
	cr_special_abil = 35;
	cr_summon_class = -1;
	cr_natural_armor = 50;
	cr_immunities 5 = 40;
	cr_immunities 3 = 90;
	cr_immunities 1 = 100;
	cr_start_item 0 = 460;
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 455;
	cr_start_item_chance 1 = 100;
	cr_start_item 2 = 452;
	cr_start_item_chance 2 = 100;
	cr_start_item 3 = 458;
	cr_start_item_chance 3 = 50;
	cr_start_item 4 = 459;
	cr_start_item_chance 4 = 50;
	cr_start_item 5 = 0;
	cr_start_item_chance 5 = 0;
	cr_start_item 6 = 453;
	cr_start_item_chance 6 = 20;
	cr_start_item 7 = 454;
	cr_start_item_chance 7 = 10;

begindefinecreature 238; //bladesman's ghost
	import = 20;
	cr_species = 8;
	cr_level = 22;
	cr_icon_adjust = 72;
	cr_summon_class = -1;
	cr_natural_armor = 50;
	cr_immunities 5 = 40;
	cr_immunities 3 = 90;
	cr_immunities 1 = 100;
	cr_start_item 0 = 451;
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 458;
	cr_start_item_chance 1 = 60;
	cr_start_item 2 = 455;
	cr_start_item_chance 2 = 100;
	cr_start_item 3 = 0;
	cr_start_item_chance 3 = 0;
	cr_start_item 4 = 459;
	cr_start_item_chance 4 = 80;
	cr_start_item 5 = 0;
	cr_start_item_chance 5 = 0;
	cr_start_item 6 = 453;
	cr_start_item_chance 6 = 10;
	cr_start_item 7 = 454;
	cr_start_item_chance 7 = 5;

begindefinecreature 239; //mage's ghost
	import = 15;
	cr_species = 8;
	cr_level = 25;
	cr_icon_adjust = 70;
	cr_hp_bonus = 100;
	cr_summon_class = -1;
	cr_natural_armor = 30;
	cr_immunities 5 = 40;
	cr_immunities 3 = 90;
	cr_immunities 1 = 100;
	cr_start_item 0 = 450;
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 458;
	cr_start_item_chance 1 = 20;
	cr_start_item 2 = 0;
	cr_start_item_chance 2 = 0;
	cr_start_item 3 = 455;
	cr_start_item_chance 3 = 100;
	cr_start_item 4 = 456;
	cr_start_item_chance 4 = 100;
	cr_start_item 5 = 0;
	cr_start_item_chance 5 = 0;
	cr_start_item 6 = 453;
	cr_start_item_chance 6 = 10;
	cr_start_item 7 = 454;
	cr_start_item_chance 7 = 5;

begindefinecreature 240; //priest's ghost
	import = 11;
	cr_species = 8;
	cr_level = 30;
	cr_hp_bonus = 100;
	cr_icon_adjust = 80;
	cr_summon_class = -1;
	cr_natural_armor = 30;
	cr_immunities 5 = 40;
	cr_immunities 3 = 90;
	cr_immunities 1 = 100;
	cr_start_item 0 = 450;
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 458;
	cr_start_item_chance 1 = 20;
	cr_start_item 2 = 0;
	cr_start_item_chance 2 = 0;
	cr_start_item 3 = 455;
	cr_start_item_chance 3 = 100;
	cr_start_item 4 = 456;
	cr_start_item_chance 4 = 100;
	cr_start_item 5 = 0;
	cr_start_item_chance 5 = 0;
	cr_start_item 6 = 453;
	cr_start_item_chance 6 = 10;
	cr_start_item 7 = 454;
	cr_start_item_chance 7 = 5;

begindefinecreature 241; //misc ghost
	import = 120;
	cr_name = "Ghost";
	cr_level = 8;
	cr_species = 8;
	cr_icon_adjust = 3;
	cr_start_item 0 = 0;
	cr_start_item_chance 0 = 0;
	cr_start_item 1 = 0;
	cr_start_item_chance 1 = 0;
	cr_start_item 2 = 0;
	cr_start_item_chance 2 = 0;
	cr_start_item 3 = 0;
	cr_start_item_chance 3 = 0;
	cr_start_item 4 = 0;
	cr_start_item_chance 4 = 0;
	cr_start_item 5 = 0;
	cr_start_item_chance 5 = 0;
	cr_start_item 6 = 0;
	cr_start_item_chance 6 = 0;
	cr_start_item 7 = 0;
	cr_start_item_chance 7 = 0;

begindefinecreature 242; //fading demon
	import = 60;
	cr_level = 30;
	cr_which_sheet = 1570;
	cr_name = "Fading Demon";
	cr_icon_adjust = 97;
	cr_hp_bonus = 200;
	cr_attack_1 = 12;
	cr_attack_2 = 8;
	cr_attack_3 = 5;
	cr_sp_bonus = 50;
	cr_natural_armor = 40;
	cr_default_aggression = 100;
	cr_default_courage = 100;
	cr_default_script = "fading";
	cr_what_stat_adjust 0 = 8;
	cr_amount_stat_adjust 0 = 5;
	cr_what_stat_adjust 1 = 11;
	cr_amount_stat_adjust 1 = 16;
	cr_what_stat_adjust 2 = 25;
	cr_amount_stat_adjust 2 = 12;
	cr_what_stat_adjust 3 = 9;
	cr_amount_stat_adjust 3 = 6;
	cr_what_stat_adjust 4 = 27;
	cr_amount_stat_adjust 4 = 4;
	cr_immunities 3 = 100;

begindefinecreature 243; //guardian ghost
	import = 241;
	cr_level = 85;
	cr_name = "Sentinel Spirit";

begindefinecreature 244; //beefed black shade
	import = 91;
	cr_level = 70;
	cr_name = "Sentinel";


// Items

begindefineitem 445; //smoky crystal - quest item given by Felix
	import = 204; //emerald
	it_name = "Crystal";
	it_full_name = "Smoky Crystal";
	it_magic = 1;
	it_identified = 1;
	it_value = 0;
	it_special_class = 1;
	it_floor_which_sheet = 512;
	it_floor_which_icon = 1;
	it_inventory_icon = 0;
	it_icon_adjust = 3;

begindefineitem 446; //control crystal - from storage attic
	it_full_name = "Control Crystal";
	it_icon_adjust = 2;
	it_special_class = 2;

begindefineitem 447; //corrupted crystal
	it_full_name = "Corrupted Crystal";
	it_floor_which_icon = 3;
	it_inventory_icon = 2;
	it_icon_adjust = 0;
	it_special_class = 3;

begindefineitem 448; //body
	import = 413;
	it_name = "Body";
	it_full_name = "Body";
	it_identified = 1;
	it_value = 0;
	it_floor_which_sheet = 512;
	it_floor_which_icon = 4;
	it_inventory_icon = 4;
	it_weight = 2150;
	it_junk_item = 0;

begindefineitem 450; //ghostly blade
	import = 57; //steel longsword
	it_full_name = "Ghostly Blade";
	it_identified = 1;
	it_weight = 0;
	it_magic = 1;
	it_icon_adjust = 80;
	it_ability_1 = 89;
	it_ability_str_1 = 10;

begindefineitem 451; //jagged spirit blade
	import = 381; //fine waveblade
	it_full_name = "Ghostly Greatsword";
	it_identified = 1;
	it_weight = 0;
	it_magic = 1;
	it_variety = 2;
	it_bonus = 6;
	it_icon_adjust = 80;
	it_ability_1 = 77;
	it_ability_str_1 = 15;
	it_ability_2 = 89;
	it_ability_str_2 = 20;
	it_ability_3 = 50;
	it_ability_str_3 = 3;

begindefineitem 452; //ghost shield
	import = 128; //steel small shield
	it_full_name = "Ghostly Shield";
	it_identified = 1;
	it_weight = 0;
	it_magic = 1;
	it_icon_adjust = 81;
	it_protection = 1;
	it_bonus = 2;
	it_ability_1 = 82;
	it_ability_str_1 = 5;
	it_ability_2 = 81;
	it_ability_str_2 = 2;

begindefineitem 453; //ghost ring
	import = 271; //ring of health
	it_full_name = "Ghostly Ring";
	it_identified = 1;
	it_weight = 0;
	it_magic = 1;
	it_icon_adjust = 80;
	it_ability_1 = 57;
	it_ability_str_1 = 1;
	it_ability_2 = 81;
	it_ability_str_2 = 1;

begindefineitem 454; //ghost charm
	import = 304; //health charm
	it_full_name = "Ghostly Charm";
	it_identified = 1;
	it_weight = 0;
	it_magic = 1;
	it_icon_adjust = 80;
	it_ability_1 = 54;
	it_ability_str_1 = 1;

begindefineitem 455; //ghost armor
	import = 27; //fine leather armor
	it_full_name = "Ghostly Armor";
	it_identified = 1;
	it_weight = 0;
	it_magic = 1;
	it_icon_adjust = 80;
	it_ability_1 = 85;
	it_ability_str_1 = 10;
	it_ability_2 = 88;
	it_ability_str_2 = 1;
	it_encumbrance = 0;

begindefineitem 456; //ghost cloak
	import = 16; //cloak
	it_full_name = "Ghostly Cloak";
	it_identified = 1;
	it_weight = 0;
	it_magic = 1;
	it_icon_adjust = 80;
	it_ability_1 = 63;
	it_ability_str_1 = 1;
	it_ability_2 = 58;
	it_ability_str_2 = 3;

begindefineitem 457; //ghost bow
	import = 92; //yew bow
	it_full_name = "Ghostly Bow";
	it_identified = 1;
	it_weight = 0;
	it_magic = 1;
	it_icon_adjust = 80;
	it_damage_per_level = 3;
	it_bonus = 5;
	it_ability_1 = 89;
	it_ability_str_1 = 40;
	it_ability_2 = 31; //sharpshooter
	it_ability_str_2 = 1;

begindefineitem 458; //ghost boots
	import = 114; //boots
	it_full_name = "Ghostly Boots";
	it_identified = 1;
	it_weight = 0;
	it_bonus = 3;
	it_magic = 1;
	it_icon_adjust = 80;
	it_protection = 1;
	it_ability_1 = 83;
	it_ability_str_1 = 2;

begindefineitem 459; //ghost helm
	import = 143; //steel helm
	it_full_name = "Ghostly Helm";
	it_identified = 1;
	it_weight = 0;
	it_magic = 1;
	it_icon_adjust = 555;
	it_bonus = 4;
	it_protection = 1;
	it_encumbrance = 0;
	it_ability_1 = 58;
	it_ability_str_1 = 2;

begindefineitem 460; //ghost halberd
	import = 77; //steel halberd
	it_full_name = "Ghostly Halberd";
	it_identified = 1;
	it_weight = 0;
	it_magic = 1;
	it_bonus = 6;
	it_icon_adjust = 64;
	it_ability_1 = 62; //melee boost
	it_ability_str_1 = 2;
	it_ability_2 = 61; //AP
	it_ability_str_2 = 1;
	it_ability_3 = 27; //Resistance
	it_ability_str_3 = 1;

begindefineitem 461; //cold arrows
	import = 103;
	it_weight = 0;
	it_name = "Arrows";
	it_identified = 0;
	it_full_name = "Ghostly Arrows";
	it_icon_adjust = 265;
	it_ability_1 = 89;
	it_ability_str_1 = 40;
	it_value = 5;