diff --git a/game/engines/default/engine/generator/map/Static.lua b/game/engines/default/engine/generator/map/Static.lua index 6e5b414cb35ce8f52d6098af96fc1f1f8b646567..aed90026b36e89be1a49bc203e1ee414735c91e4 100644 --- a/game/engines/default/engine/generator/map/Static.lua +++ b/game/engines/default/engine/generator/map/Static.lua @@ -82,6 +82,10 @@ function _M:loadMap(file) addSpot = function(dst, type, subtype) self.spots[#self.spots+1] = {x=dst[1], y=dst[2], type=type or "static", subtype=subtype or "static"} end, + addZone = function(dst, type, subtype) + self.level.custom_zones = self.level.custom_zones or {} + self.level.custom_zones[#self.level.custom_zones+1] = {x1=dst[1], y1=dst[2], x2=dst[3], y2=dst[4], type=type or "static", subtype=subtype or "static"} + end, } setfenv(f, setmetatable(g, {__index=_G})) local ret, err = f() diff --git a/game/modules/tome/class/Game.lua b/game/modules/tome/class/Game.lua index 65029c3e57659efe6b0f9c286bf113a64496ed43..7eeacb8b6d4107838ef8a1d6327d5dc137bdd9e1 100644 --- a/game/modules/tome/class/Game.lua +++ b/game/modules/tome/class/Game.lua @@ -453,6 +453,27 @@ function _M:getPlayer() return self.player end +--- Update the zone name, if needed +function _M:updateZoneName() + local name + if self.zone.display_name then + name = self.zone.display_name() + else + local lev = self.level.level + if self.level.data.reverse_level_display then lev = 1 + self.level.data.max_level - lev end + name = ("%s (%d)"):format(self.zone.name, lev) + end + if self.zone_name_s and self.old_zone_name == name then return end + + self.player_display.font:setStyle("bold") + local s = core.display.drawStringBlendedNewSurface(self.player_display.font, name, unpack(colors.simple(colors.GOLD))) + self.player_display.font:setStyle("normal") + self.zone_name_w, self.zone_name_h = s:getSize() + self.zone_name_s, self.zone_name_tw, self.zone_name_th = s:glTexture() + self.old_zone_name = name + print("Updating zone name", name) +end + function _M:tick() if self.level then self:targetOnTick() @@ -521,15 +542,7 @@ function _M:display() if self.level.data.foreground then self.level.data.foreground(self.level, self.level.map.display_x, self.level.map.display_y) end end - if not self.zone_name_s then - self.player_display.font:setStyle("bold") - local lev = self.level.level - if self.level.data.reverse_level_display then lev = 1 + self.level.data.max_level - lev end - local s = core.display.drawStringBlendedNewSurface(self.player_display.font, ("%s (%d)"):format(self.zone.name, lev), unpack(colors.simple(colors.GOLD))) - self.player_display.font:setStyle("normal") - self.zone_name_w, self.zone_name_h = s:getSize() - self.zone_name_s, self.zone_name_tw, self.zone_name_th = s:glTexture() - end + if not self.zone_name_s then self:updateZoneName() end self.zone_name_s:toScreenFull( self.level.map.display_x + self.level.map.viewport.width - self.zone_name_w, self.level.map.display_y + self.level.map.viewport.height - self.zone_name_h, diff --git a/game/modules/tome/class/Player.lua b/game/modules/tome/class/Player.lua index 581d716bf6e490919aea43d65e2fb3dfe65f1be9..378ee724d9ad90840ebb9ef651d7e3396af8f286 100644 --- a/game/modules/tome/class/Player.lua +++ b/game/modules/tome/class/Player.lua @@ -184,6 +184,9 @@ function _M:move(x, y, force) game.state:worldDirectorAI() end + -- Update zone name + if game.zone.variable_zone_name then game:updateZoneName() end + return moved end diff --git a/game/modules/tome/data/maps/wilderness/maj-eyal.lua b/game/modules/tome/data/maps/wilderness/maj-eyal.lua index a8bac7fa8e42a73cf3aae48d8f0b28af40542c22..845da38f16bec91c8cfb3aa9f8991f2fc3bc9257 100644 --- a/game/modules/tome/data/maps/wilderness/maj-eyal.lua +++ b/game/modules/tome/data/maps/wilderness/maj-eyal.lua @@ -50,28 +50,27 @@ quickEntity('h', {always_remember = true, show_tooltip=true, name='low hills', d quickEntity('&', {always_remember = true, show_tooltip=true, name='cultivated fields', display=';', color=colors.GREEN, back_color=colors.DARK_GREEN, image="terrain/cultivation.png", can_encounter=true, equilibrium_level=-10}) -quickEntity('A', {always_remember = true, show_tooltip=true, name="Ruins of Kor'Pul", display='>', color={r=0, g=255, b=255}, notice = true, change_level=1, change_zone="ruins-kor-pul"}) -quickEntity('B', {always_remember = true, show_tooltip=true, name="Passageway into the Trollshaws", display='>', color={r=0, g=255, b=0}, notice = true, change_level=1, change_zone="trollshaws"}) -quickEntity('C', {always_remember = true, show_tooltip=true, name="A gate into a maze", display='>', color={r=0, g=255, b=255}, notice = true, change_level=1, change_zone="maze"}) -quickEntity('D', {always_remember = true, show_tooltip=true, name="A path into the Old Forest", display='>', color={r=0, g=255, b=155}, notice = true, change_level=1, change_zone="old-forest"}) -quickEntity('E', {always_remember = true, show_tooltip=true, name="A mysterious hole in the beach", display='>', color={r=200, g=255, b=55}, notice = true, change_level=1, change_zone="sandworm-lair"}) -quickEntity('F', {always_remember = true, show_tooltip=true, name="The entry to the old tower of Tol Falas",display='>', color={r=0, g=255, b=255}, notice = true, change_level=1, change_zone="tol-falas"}) -quickEntity('G', {always_remember = true, show_tooltip=true, name="Passageway into Daikara",display='>', color=colors.UMBER, notice = true, change_level=1, change_zone="daikara"}) -quickEntity('H', {always_remember = true, show_tooltip=true, name='Charred Scar Volcano', display='>', color=colors.RED, back_color=colors.LIGHT_DARK, image="terrain/volcano1.png", notice = true, change_level=1, change_zone="charred-scar"}) -quickEntity('I', {always_remember = true, show_tooltip=true, name="Sunwall Outpost (Town)", display='*', color=colors.GOLD, notice = true, change_level=1, change_zone="town-sunwall-outpost"}) -quickEntity('J', {always_remember = true, show_tooltip=true, name="High Peak", display='>', color=colors.VIOLET, notice = true, change_level=1, change_zone="high-peak"}) - -quickEntity('1', {always_remember = true, show_tooltip=true, name="Derth (Town)", desc="A quiet town at the crossroads of the north", display='*', color={r=255, g=255, b=255}, back_color=colors.DARK_GREEN, image="terrain/town1.png", notice = true, change_level=1, change_zone="town-derth"}) -quickEntity('2', {always_remember = true, show_tooltip=true, name="Last Hope (Town)", desc="Capital city of the Allied Kingdoms ruled by King Tolak", display='*', color={r=255, g=255, b=255}, back_color=colors.DARK_GREEN, image="terrain/town1.png", notice = true, change_level=1, change_zone="town-last-hope"}) -quickEntity('4', {always_remember = true, show_tooltip=true, name="Shatur (Town)", desc="Capital city of Thaloren lands, ruled by Nessilla Tantaelen", display='*', color={r=255, g=255, b=255}, back_color=colors.DARK_GREEN, image="terrain/town1.png", notice = true}) -quickEntity('5', {always_remember = true, show_tooltip=true, name="Elvala (Town)", desc="Capital city of Shaloren lands, ruled by Aranion Gayaeil", display='*', color={r=255, g=255, b=255}, back_color=colors.DARK_GREEN, image="terrain/town1.png", notice = true}) +quickEntity('kor-pul', {always_remember = true, show_tooltip=true, name="Ruins of Kor'Pul", display='>', color={r=0, g=255, b=255}, notice = true, change_level=1, change_zone="ruins-kor-pul"}) +quickEntity('trollshaws', {always_remember = true, show_tooltip=true, name="Passageway into the Trollshaws", display='>', color={r=0, g=255, b=0}, notice = true, change_level=1, change_zone="trollshaws"}) +quickEntity('maze', {always_remember = true, show_tooltip=true, name="A gate into a maze", display='>', color={r=0, g=255, b=255}, notice = true, change_level=1, change_zone="maze"}) +quickEntity('old-forest', {always_remember = true, show_tooltip=true, name="A path into the Old Forest", display='>', color={r=0, g=255, b=155}, notice = true, change_level=1, change_zone="old-forest"}) +quickEntity('sandworm', {always_remember = true, show_tooltip=true, name="A mysterious hole in the beach", display='>', color={r=200, g=255, b=55}, notice = true, change_level=1, change_zone="sandworm-lair"}) +quickEntity('tol-falas', {always_remember = true, show_tooltip=true, name="The entry to the old tower of Tol Falas",display='>', color={r=0, g=255, b=255}, notice = true, change_level=1, change_zone="tol-falas"}) +quickEntity('daikara', {always_remember = true, show_tooltip=true, name="Passageway into Daikara",display='>', color=colors.UMBER, notice = true, change_level=1, change_zone="daikara"}) +quickEntity('charred-scar', {always_remember = true, show_tooltip=true, name='Charred Scar Volcano', display='>', color=colors.RED, back_color=colors.LIGHT_DARK, image="terrain/volcano1.png", notice = true, change_level=1, change_zone="charred-scar"}) +quickEntity('high-peak', {always_remember = true, show_tooltip=true, name="High Peak", display='>', color=colors.VIOLET, notice = true, change_level=1, change_zone="high-peak"}) + +quickEntity('derth', {always_remember = true, show_tooltip=true, name="Derth (Town)", desc="A quiet town at the crossroads of the north", display='*', color={r=255, g=255, b=255}, back_color=colors.DARK_GREEN, image="terrain/town1.png", notice = true, change_level=1, change_zone="town-derth"}) +quickEntity('last-hope', {always_remember = true, show_tooltip=true, name="Last Hope (Town)", desc="Capital city of the Allied Kingdoms ruled by King Tolak", display='*', color={r=255, g=255, b=255}, back_color=colors.DARK_GREEN, image="terrain/town1.png", notice = true, change_level=1, change_zone="town-last-hope"}) +quickEntity('shatur', {always_remember = true, show_tooltip=true, name="Shatur (Town)", desc="Capital city of Thaloren lands, ruled by Nessilla Tantaelen", display='*', color={r=255, g=255, b=255}, back_color=colors.DARK_GREEN, image="terrain/town1.png", notice = true}) +quickEntity('elvala', {always_remember = true, show_tooltip=true, name="Elvala (Town)", desc="Capital city of Shaloren lands, ruled by Aranion Gayaeil", display='*', color={r=255, g=255, b=255}, back_color=colors.DARK_GREEN, image="terrain/town1.png", notice = true}) quickEntity('gates-of-morning', {always_remember = true, show_tooltip=true, name="Gates of Morning (Town)", desc="A massive hole in the Sunwall.", display='*', color=colors.GOLD, back_color=colors.CRIMSON, image="terrain/gate-morning.png", tint=colors.GOLD, notice = true, change_level=1, change_zone="town-gates-of-morning"}) -- Angolwen is only know from the start to mages if game.player:knowTalent(game.player.T_TELEPORT_ANGOLWEN) then - quickEntity('3', {always_remember = true, show_tooltip=true, name="Angolwen, the hidden city of magic", desc="Secret place of magic, set apart from the world to protect it.\nLead by the Supreme Archmage Linaniil.", display='*', color=colors.WHITE, back_color=colors.UMBER, image="terrain/town1.png", notice = true, change_level=1, change_zone="town-angolwen"}) + quickEntity('angolwen', {always_remember = true, show_tooltip=true, name="Angolwen, the hidden city of magic", desc="Secret place of magic, set apart from the world to protect it.\nLead by the Supreme Archmage Linaniil.", display='*', color=colors.WHITE, back_color=colors.UMBER, image="terrain/town1.png", notice = true, change_level=1, change_zone="town-angolwen"}) else - quickEntity('3', '^') + quickEntity('angolwen', '^') end -- The shield protecting the sorcerer hideout @@ -123,6 +122,16 @@ addSpot({9, 26}, "hostile", "random") addSpot({35, 29}) addSpot({54, 14}) +-- addZone section +addZone({0, 0, 73, 40}, "zonename", "Maj'Eyal") +addZone({6, 41, 17, 43}, "zonename", "Maj'Eyal") +addZone({25, 39, 31, 47}, "zonename", "Maj'Eyal") +addZone({50, 42, 59, 47}, "zonename", "Charred Scar") +addZone({120, 2, 169, 64}, "zonename", "Far East") +addZone({5, 48, 73, 70}, "zonename", "Tar'Eyal") +addZone({9, 45, 19, 48}, "zonename", "Tar'Eyal") +addZone({62, 46, 64, 47}, "zonename", "Tar'Eyal") + -- ASCII map section return { {"=","=","=","=","=","=","=","=","=","=","t","t","t","\"","\"","\"","\"","\"","\"","\"","\"","t","t","t","t","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","m","#","#","#","#","#","#","#","#","#","#","#","#","#","#","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",}, @@ -130,20 +139,20 @@ return { {"=","=","=","=","=","=","=","\"","\"","t","t","t","t","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","t","t","t","t","t","\"","\"","\"","\"","\"","\"","\"","m","m","m","m","m","m","m","m","m","m","\"","\"","#","#","#","#","#","#","#","#","#","#","#","#","#","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".","~","~","~","~","~","~","~",}, {"=","=","=","=","=","=","=","\"","\"","t","t","t","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","t","t","t","t","t","t","t","t","t","t","t","t","t","m","m","\"","m","m","m","m","m","m","m","m","m","m","m","m","\"","\"","\"","#","#","#","#","#","#","#","#","#","#","#","#","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".",".",".",".",".",".",".","~","~","~",".",".",".",".",".",".",".",".","~","~","~","~","~","~",}, {"=","=","=","=","=","=","=","\"","\"","\"","\"","\"","\"","\"",".",".",".",".","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","\"","t","t","t","t","t","t","t","t","t","t","t","t","t","t","t","m","m","m","m","m","m","T","T","T","T","!","m","m","m","m","\"","\"","\"","\"","#","#","#","#","#","#","#","#","#","#","#","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".","~","~","~","~",}, -{"=","=","=","=","=","=","=","\"","\"","\"","\"","\"",".",".",".",".",".",".","\"","\"","\"","\"","\"",".",".",".","\"","\"","t","t","t","t","t","t","t","t","t","t","t","t","t","t","t","t","t","m","m","m","m","T","T","T","T","T","!","!","G","m","\"","\"","\"","\"","\"","\"","#","#","#","#","#","#","#","#","#","#","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".",".",".","~","~","~","~","~","~","~",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".","~",}, +{"=","=","=","=","=","=","=","\"","\"","\"","\"","\"",".",".",".",".",".",".","\"","\"","\"","\"","\"",".",".",".","\"","\"","t","t","t","t","t","t","t","t","t","t","t","t","t","t","t","t","t","m","m","m","m","T","T","T","T","T","!","!","daikara","m","\"","\"","\"","\"","\"","\"","#","#","#","#","#","#","#","#","#","#","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".",".",".","~","~","~","~","~","~","~",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".","~",}, {"=","=","=","=","=","=","=","=","\"","\"",".",".",".",".",".",".",".",".",".","\"","\"","\"",".",".",".",".",".","t","t","t","t","t","t","t","t","t","T","T","T","T","T","t","t","t","t","t","m","m","T","T","T","T","T","!","!","!","!","!","!",".",".","\"","\"","\"","#","#","#","#","#","#","#","#","#","#","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".",".",".",".",".",".","~","~","~","~","~","~",".",".",".",".",".",".",".",".",".",".",".",".",".",".","!","!",".",".",".",".","-","-","-","-","-","-",".","~",}, -{"=","=","=","=","=","=","=",".",".",".",".",".",".",".",".","!","!","!",".",".",".",".",".",".",".",".","B","T","t","t","t","t","t","t","t","T","T","!","4","!","T","T","T","T","T","T","T","T","T","T","T","T","T","T","!","!","!","!","!",".",".",".","\"","\"","\"","#","#","#","#","#","#","#","#","#","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".",".",".",".",".",".","~","~","~","~","~","~",".",".",".",".",".",".",".",".",".",".",".",".","!","!","!","!",".","-","-","-","-",".",".",".",".","-","-","~",}, -{"=","=","=","~","~","~",".",".",".",".",".",".",".",".",".","!","!","!",".",".",".",".","A",".",".",".",".","T","T","T","t","t","t","T","T","T","T","!","!","!","T","T","T","T","T","T","T","T","T","T","T","T","T","!","!","!","!","!","!",".",".",".",".",".",".","#","#","#","#","#","#","#","#","#","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".",".",".",".",".",".",".",".",".",".","~","~","~","~","~",".",".",".",".",".",".",".","^","^","^","!","!","!",".","-","-",".",".",".",".",".",".",".",".",".","~",}, +{"=","=","=","=","=","=","=",".",".",".",".",".",".",".",".","!","!","!",".",".",".",".",".",".",".",".","trollshaws","T","t","t","t","t","t","t","t","T","T","!","shatur","!","T","T","T","T","T","T","T","T","T","T","T","T","T","T","!","!","!","!","!",".",".",".","\"","\"","\"","#","#","#","#","#","#","#","#","#","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".",".",".",".",".",".","~","~","~","~","~","~",".",".",".",".",".",".",".",".",".",".",".",".","!","!","!","!",".","-","-","-","-",".",".",".",".","-","-","~",}, +{"=","=","=","~","~","~",".",".",".",".",".",".",".",".",".","!","!","!",".",".",".",".","kor-pul",".",".",".",".","T","T","T","t","t","t","T","T","T","T","!","!","!","T","T","T","T","T","T","T","T","T","T","T","T","T","!","!","!","!","!","!",".",".",".",".",".",".","#","#","#","#","#","#","#","#","#","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".",".",".",".",".",".",".",".",".",".","~","~","~","~","~",".",".",".",".",".",".",".","^","^","^","!","!","!",".","-","-",".",".",".",".",".",".",".",".",".","~",}, {"~","~","~","~","~","|","|",".",".",".",".",".",".",".","!","!","!","!","&","&",".",".",".",".",".",".",".",".","T","T","T","T","T","T","T","T","T","T","!","T","T","T","T","T","T","T","T","T","T","T","T","T","!","!","!","!","!","!",".",".",".",".",".",".",".","#","#","#","#","#","#","#","#","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".",".",".",".",".",".",".",".",".",".","~","~",".",".",".",".",".",".","T","T","^","^","^","^","!","!","^","-","-",".",".",".",".",".",".",".",".",".",".","~",}, {"~","~","~","~","|","|","|",".",".",".",".",".",".",".","!","!","!","&","&","&","&",".",".",".","T",".",".",".",".",".",".",".",".","T","T","T","T","T","T","T","T","T","T","T","T","T","T","T","T","T",".",".",".",".","!","!","!",".",".",".",".",".","T",".",".","#","#","#","#","#","#","#","#","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".","^","^",".",".",".",".",".",".",".",".",".",".",".",".","T","T","T","^","^","^","^","^","^","^","T",".",".",".",".",".",".",".",".",".",".",".","~",}, -{"~","~","~","|","|","|",".",".",".",".",".",".",".",".","!","!","!","&","&","&","&",".",".","1","T","T",".",".",".",".",".",".",".",".","T","T","T","T","T","T","T","T","T","T","T","T","-","!","!",".",".",".",".",".",".",".",".",".",".",".",".",".","T",".",".","#","#","#","#","#","#","#","#","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".","^","^","T","T",".",".",".",".",".",".",".",".",".",".",".","T","T","T","^","^","^","^","^","^","T","T",".",".",".",".",".",".",".",".",".",".",".","~",}, +{"~","~","~","|","|","|",".",".",".",".",".",".",".",".","!","!","!","&","&","&","&",".",".","derth","T","T",".",".",".",".",".",".",".",".","T","T","T","T","T","T","T","T","T","T","T","T","-","!","!",".",".",".",".",".",".",".",".",".",".",".",".",".","T",".",".","#","#","#","#","#","#","#","#","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".","^","^","T","T",".",".",".",".",".",".",".",".",".",".",".","T","T","T","^","^","^","^","^","^","T","T",".",".",".",".",".",".",".",".",".",".",".","~",}, {"~","~","|","|","|","|",".",".",".","T","T",".",".",".","!","!","!","&","&","&",".",".",".","T","T","T",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".","-","-","!","!",".",".",".",".",".",".",".",".",".",".",".",".","T","T",".",".",".","-","#","#","#","#","#","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".","!","!","^","T","T","T","T","T","T",".",".",".",".",".",".",".",".","T","T","T","^","^","^","^","^","T","T","T","T",".",".",".",".",".",".",".",".",".","~","~",}, {"~","~","|","|","|","|",".",".","T","T","T","T","T",".","!","!","!","&","&","&",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".","-","!","!","!",".",".",".",".",".",".",".",".",".",".",".",".","T","T","T",".",".","-","#","#","#","#","#","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".","!","!","!","^","T","T","T","T","T",".",".",".",".",".",".",".",".","T","T","T","T","^","^","^","^","^","T","T","T","T",".",".",".",".",".",".",".",".",".","~","~",}, {"~","~","|","|","|","|",".","T","T","T","^","^","T",".",".","!","!",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".","-","!","!",".",".",".",".",".",".",".",".",".",".","T",".","T","T","T","T",".",".","-","#","#","#","#","#","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".",".","!","!","!","T","T","T","T","T",".",".",".",".",".",".",".",".",".","T","T","T","^","^","^","^","^","^","T","T","T","T",".",".",".",".",".",".",".",".","~","~","~",}, {"~","~","|","|","|","|","T","T","T","^","^","^","T",".",".",".",".",".",".",".",".",".",".",".",".",".","v","v",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".","-","-","!","!",".",".",".",".",".",".",".",".",".",".","T","T","T","T","T","T",".","-","-","#","#","#","#","#","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".",".","!","!","!",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".","T","T","T","^","^","^","^","^","^","T","T","T","T",".",".",".",".",".",".",".",".","~","~","~",}, -{"~","~","|","|","|",".","T","T","^","^","^","^","C",".",".",".",".",".",".",".",".",".",".",".",".",".",".","v","v",".",".",".","!","!","!",".",".",".",".",".",".",".",".",".","-","!","!",".",".",".",".",".",".",".",".",".",".",".","T","T","T","T","T","T",".","-",".","#","#","#","#","#","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".",".","!","!","!",".",".",".",".",".",".",".",".",".",".",".",".",".",".","T","T","^","^","^","^","^","^","^","^","T","T","T","T",".",".",".",".",".",".",".",".","~","~","~",}, -{"~","~","|","|","|",".","T","T","^","^","^","^",".",".",".",".",".",".",".",".",".",".",".",".",".","D","v","v","v","v",".","!","!","!","!","!",".",".",".",".",".",".",".",")",")",")",")",".",".",".",".",".",".",".",".",".",".",".",".",".","T","T","T",".",".","-",".",".","#","#","#","#","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".",".",".","!","!",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".","T","^","^","^","^","^","^","^","^","^","T","T","T","T","T",".",".",".",".",".",".","~","~","~","~",}, -{"~","~","E","|","|",".","T","T","^","^","3","^",".",".",".",".",".",".",".",".",".",".",".",".","v","v","v","v","v","v","v","v","v","!","!","!",".",".",".",".",".",".",")",")",")",")",")",")",")",".",".",".",".",".",".",".",".",".",".",".",".","T","T",".",".","-",".",".",".","#","#","#","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".","-","-","^","^","^","^","^","^","^","^","^",".","T","T","T","T","T",".",".",".",".",".",".","~","~","~","~",}, +{"~","~","|","|","|",".","T","T","^","^","^","^","maze",".",".",".",".",".",".",".",".",".",".",".",".",".",".","v","v",".",".",".","!","!","!",".",".",".",".",".",".",".",".",".","-","!","!",".",".",".",".",".",".",".",".",".",".",".","T","T","T","T","T","T",".","-",".","#","#","#","#","#","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".",".","!","!","!",".",".",".",".",".",".",".",".",".",".",".",".",".",".","T","T","^","^","^","^","^","^","^","^","T","T","T","T",".",".",".",".",".",".",".",".","~","~","~",}, +{"~","~","|","|","|",".","T","T","^","^","^","^",".",".",".",".",".",".",".",".",".",".",".",".",".","old-forest","v","v","v","v",".","!","!","!","!","!",".",".",".",".",".",".",".",")",")",")",")",".",".",".",".",".",".",".",".",".",".",".",".",".","T","T","T",".",".","-",".",".","#","#","#","#","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".",".",".","!","!",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".","T","^","^","^","^","^","^","^","^","^","T","T","T","T","T",".",".",".",".",".",".","~","~","~","~",}, +{"~","~","sandworm","|","|",".","T","T","^","^","angolwen","^",".",".",".",".",".",".",".",".",".",".",".",".","v","v","v","v","v","v","v","v","v","!","!","!",".",".",".",".",".",".",")",")",")",")",")",")",")",".",".",".",".",".",".",".",".",".",".",".",".","T","T",".",".","-",".",".",".","#","#","#","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".","-","-","^","^","^","^","^","^","^","^","^",".","T","T","T","T","T",".",".",".",".",".",".","~","~","~","~",}, {"~","~","|","|","|",".",".","T","^","^","^","^",".",".",".",".",".",".",".",".",".",".",".",".","v","v","v","*","*","v","v","v","v","v","!","!",".",".",".",".",".",".",")",")",")",")",")",")",")",")",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".","-",".",".",".","#","#","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".","-","-","-","-","-","-",".",".","^","^",".","(",".","^","T","T","T","T",".","T","T",".",".",".",".",".",".",".","~","~","~","~",}, {"~","~","|","|","|",".",".","T","T","^","^","^",".",".",".",".",".",".",".",".",".",".",".",".",".","v","v","*","*","v","v","v","v","v","!","!",".",".",".",".",".",".",")",")",")",")",")",")",")",")",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".","-","-",".",".",".",".","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".",".",".",".",".",".",".",".",".",".",".","-","-","-",".",".",".",".",".",".",".",".",".",".","(",".",".","T","T","T",".",".","T","T",".",".",".",".",".",".",".",".","~","~","~",}, {"~","~","|","|","|",".","T","T",".","^","^","-",".",".",".",".",".",".",".",".",".",".",".",".",".",".","v","v","v","v","v","!","!","!","!","!",".",".",".",".",".",".",")",")",")",")","T",")",")",")",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".","-",".",".",".",".",".","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".",".",".",".",".",".",".",".",".",".","-","-",".",".",".",".",".",".",".",".",".",".",".",".","(","(",".","T",".",".",".",".",".","T",".",".",".",".",".",".",".",".","~","~","~",}, @@ -158,18 +167,18 @@ return { {"~","~","~","~","~","~","~","~","~",".",".","-","-","T","T","T","-",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".","T","T","T","T",".",".",".",".",".",".",".","-","-",".",".",".",".",".",".",".","&","-","-",".",".",".",".",".","&","&",".","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".",".",".","-","-",".",".",".",".",".",".",".",".",".","~","~","~",".",".",".","!","!","-",".",".",".",".",".",".",".",".",".",".",".",".","w","w","w",".",".","~","~",}, {"~","~","~","~","~","~","~","~","~","~","-","-",".",".",".",".","-",".",".",".","~","~",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".","T","T","T","T",".",".",".",".",".",".",".",".",".","-",".",".",".",".",".",".",".","-","-",".",".",".",".",".","!","!","!","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".",".",".",".","-",".",".",".",".",".",".",".",".",".","~","~","~",".",".",".",".","!","-",".",".",".",".",".",".",".",".",".",".",".",".","gates-of-morning","w","w",".",".","~","~",}, {"~","~","~","~","~","~","~","~","~","~","-","T","T","T",".",".","-","-","~","~","~","~",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".","T","T","T","T","T",".",".",".",".",".",".",".",".",".","~",".",".",".",".",".",".","-","-",".",".",".",".","!","!","!","!","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".",".",".",".","-",".",".",".",".",".",".",".",".",".","~","~","~",".",".",".",".","-","-",".",".",".",".",".",".",".",".",".",".",".",".","w","w","w",".",".","~","~",}, -{"~","~","~","~","~","~","~","~","~","~","T","T","T","T","T",".",".",".","~","~","~",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".","T","_","_","_","_","T",".",".",".",".",".",".",".",".","~","~","~",".",".",".",".","2","-",".",".",".",".","!","!","!","!","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".",".",".","-",".",".",".",".",".",".",".",".",".","~","~","~",".",".",".","-","-",".",".",".",".",".",".",".",".",".",".",".",".","w","w","w","w","w",".","~","~",}, +{"~","~","~","~","~","~","~","~","~","~","T","T","T","T","T",".",".",".","~","~","~",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".","T","_","_","_","_","T",".",".",".",".",".",".",".",".","~","~","~",".",".",".",".","last-hope","-",".",".",".",".","!","!","!","!","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".",".",".","-",".",".",".",".",".",".",".",".",".","~","~","~",".",".",".","-","-",".",".",".",".",".",".",".",".",".",".",".",".","w","w","w","w","w",".","~","~",}, {"~","~","~","~","~","~","~","~","~",".",".","T","T","T","T","T","T","T","~","~","~",".",".",".",".",".",".",".",".",".",".",".",".",".",".","~",".","T","_","{","{","_","_",".",".",".",".",".",".",".",".","~","~","~",".",".","-","-","-","-",".",".",".",".","!","!","!","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".","~","-",".",".",".",".",".",".",".",".","~","~","~","~","-","-","-","-",".",".",".",".",".",".",".",".",".",".",".",".",".","w","w","w","w","w",".","~","~",}, {"~","~","~","~","~","~","~","~",".",".",".","&","&","T","T","T","T","T","~","~","~","~",".",".",".",".",".","~","~","~",".",".","~","~","~","~","~","T","_","{","{","{","_",".",".",".",".",".",".",".",".","~","~","~","~","~","~",".","-",".",".",".",".","!","!","!","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".","~","~",".",".",".",".",".",".",".",".",".","~","~","~","~",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".","w","w","w",".","~","~","~",}, {"~","~","~","~","~","~","~","~",".",".",".","&","&","-",".",".","T","T","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","_","_","{","{","{",".",".",".",".",".",".",".","~","~","~","~","~","~","~",".","-",".",".",".",".","!","!","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".",".",".",".",".",".","~","~","~",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".","~","~","~",}, {"~","~","~","~","~","T","~","~",".",".","&","&","-","-","!",".",".",".","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","_","_","_","{","{",".",".",".",".",".","~","~","~","~","~","~","~","~","-","-","-",".",".","!","!","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".",".",".",".",".","~","~","~","~",".",".",".",".",".","^","^","^",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".","~","~",}, -{"~","~","~","~","~","T","T","T","T",".","&","&","-","5","!","!",".",".","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","T","_","{","{","{","{","~","~","F","~","~","~","~","~","~","~","~","-",".","-",".",".","!","!","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".",".",".",".","~","~","~","~",".",".",".",".",".",".","^","^","^",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".","~","~",}, +{"~","~","~","~","~","T","T","T","T",".","&","&","-","elvala","!","!",".",".","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","T","_","{","{","{","{","~","~","tol-falas","~","~","~","~","~","~","~","~","-",".","-",".",".","!","!","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".",".",".",".","~","~","~","~",".",".",".",".",".",".","^","^","^",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".","~","~",}, {"~","~","~","~","~","T","T","T","T",".","&","&","-","!","!",".",".",".","~","~","~","~","~","~","~","~","~","~",".",".","~","~","~","~","~","~","~","~","~","~","~","~",".",".","{","{","~","~","~","~","~","~","~","~","~","~","~","~",".","-",".",".",".","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".",".",".","~","~","~","~","|","|",".",".",".",".","^","^",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".","^",".",".",".","~",}, {"~","~","~","~","~","T","T","T",".",".",".","-","-","-","-",".",".",".","~","~","~","~","~","~","~","~","~",".",".",".",".","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".","~","~","~","~","|","|",".",".",".",".",".",".",".",".",".",".",".",".",".",".","|","|","|","|",".",".",".",".","^","^",".",".","~",}, {"~","~","~","~","~","~","T","T",".",".",".","-",".",".","-","-","-","-","~","~","~","~","~","~","~","~",".","T","^","^",".",".","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","T","!",".",".","~","~","~","~","~","~","~",".",".","~","~","~","~","|","|","|",".",".",".",".",".",".",".",".",".",".",".",".",".",".","|","|","|","|","|",".",".",".","^","^",".","^","~",}, {"~","~","~","~","~","~","~","~",".",".",".","-",".",".",".","!","!","~","~","~","~","~","~","~","~",".",".","^","^","^","^",".","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","{","{","{","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".","T","!","!",".",".","~","~","~","~","~","~",".",".","~","~","~","|","|","|","|",".",".",".",".",".",".",".",".",".",".",".",".",".","|","|","|","|","|","|",".",".",".","^","^","^","^","~",}, {"~","~","~","~","~","~","~","~","~","~","-","-",".","!","!","!","!","~","~","~","~","~","~","~","~",".","^","^","^","^","^",".","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","{","{","{","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","T","T","!","!","!",".","~","~","~","~","~",".","~","~","~","~","|","|","|","p","|","|",".",".",".",".",".",".",".",".",".",".",".","|","|","|","p","|","|","|",".",".","^","^","^","^","^","~",}, -{"~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".","^","^","^","^","^",".","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","{","{","{","H","~","~","~","{","{","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","#","#","T",".","!","!",".","~","~","~","~","~","~","~","~","~","~","|","|","|","|","p","|","|","|","|","|","|",".",".",".",".","|","|","|","|","|","|","|","|","|",".",".","^","^","^","^","^","~",}, +{"~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~",".","^","^","^","^","^",".","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","{","{","{","charred-scar","~","~","~","{","{","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","#","#","T",".","!","!",".","~","~","~","~","~","~","~","~","~","~","|","|","|","|","p","|","|","|","|","|","|",".",".",".",".","|","|","|","|","|","|","|","|","|",".",".","^","^","^","^","^","~",}, {"~","~","~","~","~","~","~","~","~","~","~","~",".",".",".",".","~","~","~","~","~","~","~","~","~",".","T","^","^","^","T",".","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","{","{","{","{","{","{","{","{","{","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","#","T","T",".","!",".","~","~","~","~","~","~","~","~","~","~","|","|","|","|","p","|","p","|","|","|","|","|","|","|","|","|","|","|","|","|","|","|","|","|",".",".",".",".","^","^","~","~",}, {"~","~","~","~","~","~","~","~","~",".",".",".",".",".",".",".",".",".","~","~","~","~","~","~","~","~",".","T","T","T",".",".","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","{","{","{","{","{","{","{","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","#","#","#",".","!",".","~","~","~","~","~","~","~","~","~","~","|","|","|","p","|","|","|","|","|","|","|","|","|","|","|","|","|","|","|","|","|","|","|","|",".",".",".",".","~","~","~","~",}, {"~","~","~","~","~","~","~","~","~",".",".",".",".",".",".",".",".",".",".","~","~","~","~","~","~","~","~","T",".",".","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","{","{","~","~","~","~","~","~","~","|","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","~","#","#","~","~","~","~","~","~","~","~","~","~","~","~","~","|","|","p","|","|","|","|","|","|","p","|","|","|","|","|","|","|","|","|","|","|","|","|",".",".",".",".","~","~","~","~",}, diff --git a/game/modules/tome/data/zones/wilderness/zone.lua b/game/modules/tome/data/zones/wilderness/zone.lua index 04534a49dae88221568b921b6d7067463747c9de..f298204e96d7a9d02db619a34755f3af09f8d39c 100644 --- a/game/modules/tome/data/zones/wilderness/zone.lua +++ b/game/modules/tome/data/zones/wilderness/zone.lua @@ -18,7 +18,9 @@ -- darkgod@te4.org return { - name = "Eyal", + name = "World of Eyal", + display_name = function() return game.level.map.attrs(game.player.x, game.player.y, "zonename") or "Eyal" end, + variable_zone_name = true, level_range = {1, 1}, max_level = 1, width = 170, height = 70, @@ -33,5 +35,14 @@ return { class = "engine.generator.map.Static", map = "wilderness/maj-eyal", }, - } + }, + post_process = function(level) + for _, z in ipairs(level.custom_zones) do + if z.type == "zonename" then + for x = z.x1, z.x2 do for y = z.y1, z.y2 do + game.level.map.attrs(x, y, "zonename", z.subtype) + end end + end + end + end, }