Commit 5aec46c6dce27135df856134e7fe626204d85ceb

Authored by dg
1 parent 395734d4

New lore about the Fearscape


git-svn-id: http://svn.net-core.org/repos/t-engine4@3382 51575b47-30f0-44d4-a5cc-537603b46e54
@@ -79,7 +79,7 @@ function _M:setScroll(i) @@ -79,7 +79,7 @@ function _M:setScroll(i)
79 local tstr = self.lines[z] 79 local tstr = self.lines[z]
80 if not tstr then break end 80 if not tstr then break end
81 local gen = self.font:draw(tstr, self.iw - 10, 255, 255, 255) 81 local gen = self.font:draw(tstr, self.iw - 10, 255, 255, 255)
82 - for i = #gen, 1, -1 do 82 + for i = 1, #gen do
83 self.dlist[#self.dlist+1] = gen[i] 83 self.dlist[#self.dlist+1] = gen[i]
84 nb = nb + 1 84 nb = nb + 1
85 if nb >= self.max_display then stop = true break end 85 if nb >= self.max_display then stop = true break end
  1 +-- ToME - Tales of Maj'Eyal
  2 +-- Copyright (C) 2009, 2010, 2011 Nicolas Casalini
  3 +--
  4 +-- This program is free software: you can redistribute it and/or modify
  5 +-- it under the terms of the GNU General Public License as published by
  6 +-- the Free Software Foundation, either version 3 of the License, or
  7 +-- (at your option) any later version.
  8 +--
  9 +-- This program is distributed in the hope that it will be useful,
  10 +-- but WITHOUT ANY WARRANTY; without even the implied warranty of
  11 +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12 +-- GNU General Public License for more details.
  13 +--
  14 +-- You should have received a copy of the GNU General Public License
  15 +-- along with this program. If not, see <http://www.gnu.org/licenses/>.
  16 +--
  17 +-- Nicolas Casalini "DarkGod"
  18 +-- darkgod@te4.org
  19 +
  20 +--------------------------------------------------------------------------
  21 +-- Fearscape, the demon plane
  22 +--------------------------------------------------------------------------
  23 +
  24 +newLore{
  25 + id = "fearscape-entry",
  26 + category = "fearscape",
  27 + name = "a fearsome sight",
  28 + lore = [[You stand in a field of fire, the flames dancing back and forth like hell-spawned corn waving in the wind. It licks your feet, your skin, your face, and writhes around in tiny shapes which tear across your flesh and crawl down your throat. It burns and blazes through your body, and crazed thoughts fill your mind. This is Goedalath they tell you, the Fearscape, and you have no rightful place here.
  29 +
  30 +In the distance you see looming, demonic shapes of absolute darkness, towering above the blazing land like wardens of doom. The sky is black, but above your head hangs a round world that you recognise as Eyal. Across the burning plains gather armies of fiendish figures, and glowing eyes turn up with hateful glowers to your home world. Suddenly both you and it and seem small and frail. As the flames fill your body with pain your only thought is of escape.]],
  31 +}
@@ -39,5 +39,6 @@ load("/data/lore/spellblaze.lua") @@ -39,5 +39,6 @@ load("/data/lore/spellblaze.lua")
39 load("/data/lore/orc-prides.lua") 39 load("/data/lore/orc-prides.lua")
40 load("/data/lore/age-allure.lua") 40 load("/data/lore/age-allure.lua")
41 load("/data/lore/age-pyre.lua") 41 load("/data/lore/age-pyre.lua")
  42 +load("/data/lore/fearscape.lua")
42 load("/data/lore/misc.lua") 43 load("/data/lore/misc.lua")
43 load("/data/lore/arena.lua") 44 load("/data/lore/arena.lua")
@@ -203,6 +203,7 @@ newTalent{ @@ -203,6 +203,7 @@ newTalent{
203 end 203 end
204 204
205 game.logPlayer(game.player, "#LIGHT_RED#You are taken to the Fearscape!") 205 game.logPlayer(game.player, "#LIGHT_RED#You are taken to the Fearscape!")
  206 + game.player:learnLore("fearscape-entry")
206 level.allow_demon_plane_damage = true 207 level.allow_demon_plane_damage = true
207 end) 208 end)
208 209
@@ -64,4 +64,7 @@ return { @@ -64,4 +64,7 @@ return {
64 nb_trap = {12, 15}, 64 nb_trap = {12, 15},
65 }, 65 },
66 }, 66 },
  67 + on_enter = function(lev, old_lev, newzone)
  68 + if newzone then game.player:learnLore("fearscape-entry") end
  69 + end,
67 } 70 }