Skip to content
Snippets Groups Projects
Commit 30978eb5 authored by dg's avatar dg
Browse files

Fix bloodied lore notes

git-svn-id: http://svn.net-core.org/repos/t-engine4@2923 51575b47-30f0-44d4-a5cc-537603b46e54
parent 0a2ef083
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,7 @@ newLore{
id = "maze-note-7",
category = "maze",
name = "diary (the maze)",
bloodstains = 2,
bloodstains = 7,
lore = [[Dear diary,
#{italic}#This text is unreadable as it is thoroughly caked in blood.#{normal}#]],
......
......@@ -33,6 +33,9 @@ function _M:init(l, w, force_height)
self.color = {r=0x3a, g=0x35, b=0x33}
self.ui = "parchment"
Dialog.init(self, "Lore found: #0080FF#"..l.name, 1, 1)
if l.bloodstains then
local ovs = {}
for i = 1, l.bloodstains do
......@@ -45,8 +48,6 @@ function _M:init(l, w, force_height)
self.frame.overlays = ovs
end
Dialog.init(self, "Lore found: #0080FF#"..l.name, 1, 1)
local h = math.min(force_height and (force_height * game.h) or 999999999, self.font_h * #list)
self:loadUI{
{left = 3, top = 3, ui=require("engine.ui.Textzone").new{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment