mirror of
https://gitlab.com/Oreolek/duel.git
synced 2024-07-05 16:24:29 +03:00
спрятал lastroom в char
This commit is contained in:
parent
65a09971da
commit
8c703bc8cc
|
@ -4,7 +4,6 @@ require "format"
|
||||||
require "dlg"
|
require "dlg"
|
||||||
require 'dbg' -- ПОЧЕМУ-ТО НЕ РАБОТАЕТ
|
require 'dbg' -- ПОЧЕМУ-ТО НЕ РАБОТАЕТ
|
||||||
require 'tools'
|
require 'tools'
|
||||||
declare "lastroom" ("")
|
|
||||||
declare "char" ({})
|
declare "char" ({})
|
||||||
-- require 'hideinv'
|
-- require 'hideinv'
|
||||||
format.dash = true
|
format.dash = true
|
||||||
|
@ -29,12 +28,12 @@ room {
|
||||||
disp = "Карта",
|
disp = "Карта",
|
||||||
hideinv = true,
|
hideinv = true,
|
||||||
enter = function (here, from)
|
enter = function (here, from)
|
||||||
lastroom = from.nam
|
char.lastroom = from.nam
|
||||||
end,
|
end,
|
||||||
pic = function()
|
pic = function()
|
||||||
local map = 'images/satellite.jpg'
|
local map = 'images/satellite.jpg'
|
||||||
if markers[lastroom] then
|
if markers[char.lastroom] then
|
||||||
map = map .. ';images/marker.png@' .. markers[lastroom]
|
map = map .. ';images/marker.png@' .. markers[char.lastroom]
|
||||||
end
|
end
|
||||||
return map
|
return map
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Reference in a new issue