diff --git a/journey_venaedanotrr_labyrinth.lua b/journey_venaedanotrr_labyrinth.lua --- a/journey_venaedanotrr_labyrinth.lua +++ b/journey_venaedanotrr_labyrinth.lua @@ -718,10 +718,23 @@ ven_chest_look = room { pic = function(s) local p = "images/ven_chest.png"; for i = 1, #s.state do - p = p .. ";images/ven_chest_" .. tostring(s.state[i]) .. ".png@" .. tostring((i - 1) * 16) .. ",64"; + p = p .. ";images/ven_chest_" .. tostring(s.state[i]) .. ".png@" .. tostring(85 + (i - 1) * 38) .. ",150"; end; return p; end; + click = function(s, x, y) + if y > 150 and y <= 199 then + if x > 85 and x < 121 then + return ven_chest_ring1:act(); + elseif x >= 123 and x < 159 then + return ven_chest_ring2:act(); + elseif x >= 161 and x < 197 then + return ven_chest_ring3:act(); + elseif x >= 199 and x < 235 then + return ven_chest_ring4:act(); + end; + end; + end; dsc = function(s) return [[ На поверхности сундука вы видите обозначения из цветных полос - очевидно это какое-то сообщение. На крышке вы видите четыре вращающихся кольца, на которые нанесены метки шести цветов: фиолетовый, синий, зеленый, желтый, оранжевый, красный.