[sprite = up]
  bitmap = data\object\up.gif, 1, 1, 1


[object = up]
  visible_range = 0,3
  flip_left = 1
  offset_back = up, 0, -28,-1

  editor_icon = 23
  click_rect.0 = 1, 1, 99,126
  click_rect.1 = 1, 1, 99,126
  click_rect.2 = 1, 1, 99,126
  click_rect.3 = 1, 1, 99,126
  xbehavior = up






[sprite = chest1_f]
  bitmap = data\object\chest1_f.gif, 1, 1, 1
[sprite = chest1_b]
  bitmap = data\object\chest1_b.gif, 1, 1, 1
[sprite = chest1_r]
  bitmap = data\object\chest1_r.gif, 1, 1, 1




[object = chest1]
  visible_range = 0, 3
  offset_front = chest1_f, 0, 8, 230
  offset_back = chest1_b, 0, 8, 230
  offset_left = chest1_r, 0, 8, 230
  offset_right = chest1_r, 0, 8, 230
  editor_icon = 7
  click_rect.0 = 1,1,115,60
  click_rect.1 = 1,1,70,60
  click_rect.2 = 1,1,115,60
  click_rect.3 = 1,1,70,60
  behavior=chest_offer
  items.100,1=pagan_staff,pagan_staff,taint,scholar's_great_staff,staff_of_vigor,paralysing_staff,heavy_iron_staff,moon_staff,full_moon,monk_battle_staff,viper_staff,short_battle_staff,ram_staff,icicle
  items.100,1=frost_crown,fanged_crown,lightning_circlet,volcanic_tiara,protector's_hat,hood_of_damnation,blessed_diadem,snow_queen's_crown,horned_skull_case,scroll_of_lightning,scroll_of_heaven,scroll_of_fireball,tome_of_alchemy,tome_of_ressurection,tome_of_constructor,grimoir_of_necromancy,herbarium,holy_book,tome_of_exorcist,tome_of_demonology,tome_of_sourcery,rune_of_power
  items.100,1=small_ring_of_life,ring_of_life,fighter's_ring_of_action,ring_of_concentration,ring_of_muscles,light_necklace,ring_of_frost_giant,inquisitor's_chain,blessed_necklace,eye_of_warlock,exloding_ring,jet_ring,ring_of_apprentice,ring_of_hunger,glowing_chain,pure_blood,stone_of_blizzard,necklace_of_leech,marskman_of_vastelands


[object = chest2]
  parent=chest1
  items.100,1=great_tome_of_wisdom
  items.100,1=scroll_of_lightning,scroll_of_heaven,scroll_of_fireball,tome_of_alchemy,tome_of_ressurection,tome_of_constructor,grimoir_of_necromancy,herbarium,holy_book,tome_of_exorcist,tome_of_demonology,tome_of_sourcery


--------------------------------------------------------------------------------

[sprite = library_door]
  bitmap = data\object\bulkhead\tomb_entrance.gif, 1, 1, 1

[object = library_door]
  offset_front = library_door, 0, 1,-1
  map_frame = 5,10
  editor_icon = 4
  click_range=1,1
  click_rect=1,1,190,120
  behavior = library_door

--------------------------------------------------------------------------------
[sprite = cloister_door]
  bitmap = data\object\door\cloister_door.gif, 4, 4, 1

[object = cloister_door]
  offset_front = cloister_door, 0, -4,-1
  offset_back = cloister_door, 0, -4,-1
  editor_icon = 4
  click_range = 1,1
  click_rect = 1,1,190,120
  behavior = cloister_door
  map_frame = 101,4

--------------------------------------------------------------------------------
[sprite = plate1]
  bitmap = data\object\plate1.gif, 2, 1, 2
  sort_offset = -100

[object = plate1]
  map_frame = 1,13

  front = plate1,    1,0,    -80,200,    120,120
  front = plate1,    1,1,    -20,150,    100,100
  front = plate1,    1,2,    25,120,    68,68
  front = plate1,    1,3,    60,99,     47,47
  front = plate1,    1,4,    95,82,     30,30
  front = plate1,    2,0,    160,200,    140,120
  front = plate1,    2,1,    160,150,    100,100
  front = plate1,    2,2,    160,120,    68,68
  front = plate1,    2,3,    160,99,     47,47
  front = plate1,    2,4,    160,82,     30,30
  front = plate1,    3,0,    400,200,    120,120
  front = plate1,    3,1,    340,150,    100,100
  front = plate1,    3,2,    295,120,    68,68
  front = plate1,    3,3,    260,99,     47,47
  front = plate1,    3,4,    225,82,     30,30

  left = plate1,    1,0,    -80,200,    120,120
  left = plate1,    1,1,    -20,150,    100,100
  left = plate1,    1,2,    25,120,    68,68
  left = plate1,    1,3,    60,99,     47,47
  left = plate1,    1,4,    95,82,     30,30
  left = plate1,    2,0,    160,200,    140,120
  left = plate1,    2,1,    160,150,    100,100
  left = plate1,    2,2,    160,120,    68,68
  left = plate1,    2,3,    160,99,     47,47
  left = plate1,    2,4,    160,82,     30,30
  left = plate1,    3,0,    400,200,    120,120
  left = plate1,    3,1,    340,150,    100,100
  left = plate1,    3,2,    295,120,    68,68
  left = plate1,    3,3,    260,99,     47,47
  left = plate1,    3,4,    225,82,     30,30

  right = plate1,    1,0,    -80,200,    120,120
  right = plate1,    1,1,    -20,150,    100,100
  right = plate1,    1,2,    25,120,    68,68
  right = plate1,    1,3,    60,99,     47,47
  right = plate1,    1,4,    95,82,     30,30
  right = plate1,    2,0,    160,200,    140,120
  right = plate1,    2,1,    160,150,    100,100
  right = plate1,    2,2,    160,120,    68,68
  right = plate1,    2,3,    160,99,     47,47
  right = plate1,    2,4,    160,82,     30,30
  right = plate1,    3,0,    400,200,    120,120
  right = plate1,    3,1,    340,150,    100,100
  right = plate1,    3,2,    295,120,    68,68
  right = plate1,    3,3,    260,99,     47,47
  right = plate1,    3,4,    225,82,     30,30

  back = plate1,    1,0,    -80,200,    120,120
  back = plate1,    1,1,    -20,150,    100,100
  back = plate1,    1,2,    25,120,    68,68
  back = plate1,    1,3,    60,99,     47,47
  back = plate1,    1,4,    95,82,     30,30
  back = plate1,    2,0,    160,200,    140,120
  back = plate1,    2,1,    160,150,    100,100
  back = plate1,    2,2,    160,120,    68,68
  back = plate1,    2,3,    160,99,     47,47
  back = plate1,    2,4,    160,82,     30,30
  back = plate1,    3,0,    400,180,    120,120
  back = plate1,    3,1,    340,150,    100,100
  back = plate1,    3,2,    295,120,    68,68
  back = plate1,    3,3,    260,99,     47,47
  back = plate1,    3,4,    225,82,     30,30


  editor_icon = 5
  flip_left = 1
  behavior = plate1

--------------------------------------------------------------------------------
[sprite = lever_f]
  bitmap = data\object\lever\lever1a.gif, 2, 2, 1
[sprite = lever_s]
  bitmap = data\object\lever\lever1b.gif, 2, 2, 1


[object = lever]
  visible_range = 0, 4
  offset_back = lever_f, 0, -60, 230
  offset_right = lever_s, 130, -60, 230
  offset_left = lever_s, -130, -60, 230
  all_sides = -1, 4,4
  all_sides = -1, 0 ,4
  editor_icon = 3
  flip_left = 1
  click_rect.2 = 1, 1, 31,93
  click_rect.1 = 1, 1, 44,83
  click_rect.3 = 1, 1, 44,83
  behavior = lever

[object = lever2]
  # kvuli jinak otocene stene s knihama
  parent=lever
  behavior = lever2

--------------------------------------------------------------------------------

[sprite = button_f]
  bitmap = data\object\lever\button1a.gif, 2, 2, 1
[sprite = button_s]
  bitmap = data\object\lever\button1b.gif, 2, 2, 1


[object = button]
  visible_range = 0, 4
  offset_back = button_f, 0, -93, 230
  offset_right = button_s, 135, -90, 230
  offset_left = button_s, -135, -90, 230
  all_sides = -1, 4,4
  all_sides = -1, 0 ,4
  editor_icon = 3
  flip_left = 1
  click_rect.2 = -10, -10, 35,35
  click_rect.1 = -10, -10, 28,30
  click_rect.3 = -10, -10, 28,30
  behavior = button

[object = button_NS]
  parent=button
  behavior = button_NS

-------------------------------------------------------------------------------

[sprite = red_book]
  bitmap = data\object\red_book.gif, 1, 1, 1
[sprite = blue_book]
  bitmap = data\object\blue_book.gif, 1, 1, 1
[sprite = green_book]
  bitmap = data\object\green_book.gif, 1, 1, 1


[object = red_book]
  front=red_book,2,0,   65,102,    100,100
  all_sides = -1, 0 ,4
  editor_icon = 3
  flip_left = 1
  click_rect = -10, -10, 35,35
  behavior = red_book


[object = book_red]
  front=red_book,2,0,   65,102,    100,100
  all_sides = -1, 0 ,4
  editor_icon = 3
  flip_left = 1
  click_rect = -10, -10, 35,35
  behavior = book_red
[object = book_green]
  front=green_book,2,0,   65,102,    100,100
  all_sides = -1, 0 ,4
  editor_icon = 3
  flip_left = 1
  click_rect = -10, -10, 35,35
  behavior = book_green
[object = book_blue]
  front=blue_book,2,0,   65,102,    100,100
  all_sides = -1, 0 ,4
  editor_icon = 3
  flip_left = 1
  click_rect = -10, -10, 35,35
  behavior = book_blue


--------------------------------------------------------------------------------
[object=closer_NS]
  editor_icon=1
  behavior=closer_NS
[object=closer_WE]
  editor_icon=1
  behavior=closer_WE

--------------------------------------------------------------------------------
[sprite = teleport]
  bitmap = data\object\global\holy_ground.gif, 6,1,6
  sort_offset = 10

[object = teleport]
  visible_range = 0,3
  offset_front = teleport, 0, 20, 240
  offset_back = teleport, 0, 20, 240
  offset_left = teleport, 0, 20, 240
  offset_right = teleport, 0, 20, 240
  editor_icon = 6
  behavior = teleport
  map_frame = 5 ,16


-------------------------------------------------------------------------------
[sprite = wall_sign]
  bitmap = data\object\bulkhead\wall_sign.gif, 1, 1, 1
[object = wall_sign]
  offset_front = wall_sign, 0, -4,-1
  offset_back = wall_sign, 0, -4,-1
  editor_icon = 15
  map_frame = 0, 0
  block = 1
  click_range = 1, 1
  click_rect = 1, 1, 190,120
  behavior = wall_sign

-------------------------------------------------------------------------------
[sprite = fire_]
  bitmap = data\fx\fire.gif, 6, 6, 1
  sort_offset=200
[object = fire_]
  offset_back = fire_, 0, -40,-1
  fog_level=0,0,0,0,0
  editor_icon = 1
  behavior=fire_

[sprite = sewer_hole]
  bitmap = data\object\bulkhead\sewer_hole.jpg, 1, 1, 1
[object = lib_hole]
  offset_front = sewer_hole, 0, -4,-1
  offset_back = sewer_hole, 0, -4,-1
  editor_icon = 15
  map_frame = 104,105
  block = 1
  click_range = 1, 1
  click_rect = 1, 1, 190,120
  behavior = lib_hole

--------------------------------------------------------------------------------
[sprite = skull_f]
  bitmap = data\object\lever\skull1a.gif, 3, 3, 1
[sprite = skull_s]
  bitmap = data\object\lever\skull1b.gif, 3, 3, 1


[object = skull]
  visible_range = 0, 4
  offset_back = skull_f, 0, -85, 230
  offset_right = skull_s, 130, -75, 230
  offset_left = skull_s, -130, -75, 230
  all_sides = -1, 4,4
  all_sides = -1, 0 ,4
  editor_icon = 28
  flip_left = 1
  click_rect.2 = 1, 1, 35,48
  click_rect.1 = 1, 1, 30,48
  click_rect.3 = 1, 1, 30,48
  behavior = skull

--------------------------------------------------------------------------------
[sprite = sarcophagus_s]
  bitmap = data\object\sarcophagus_s.gif, 1, 1, 1
[object = piedestal]
  offset_front = sarcophagus_s, 0, 12, 200
  offset_back = sarcophagus_s, 0, 12, 200
  offset_left = sarcophagus_s, 0, 12, 200
  offset_right = sarcophagus_s, 0, 12, 200
  editor_icon = 11
  block = 1
  map_frame = 3,3

[sprite = book]
  bitmap = data\object\book.gif, 1, 1, 1
  sort_offset=100
[object = book_crypt]
  offset_front = book, 0, -58, 200
  offset_back = book, 0,  -58, 200
  offset_left = book, 0,  -58, 200
  offset_right = book, 0, -58, 200
  flip_left=1
  editor_icon = 28
  click_range=1,1
  click_rect = -10,-10,56,32
  behavior = book_crypt

[object = book_port]
  visible_range=0,3
  offset_front = book, 0, 0, 200
  offset_back = book, 0,  0, 200
  offset_left = book, 0,  0, 200
  offset_right = book, 0, 0, 200
  flip_left=1
  editor_icon = 28
  click_rect = 1,1,46,22
  behavior = book_port

--------------------------------------------------------------------------------
[object=create_teleport]
  editor_icon=1
  behavior=create_teleport

