Skip to content
Snippets Groups Projects
Commit 7d8b5249 authored by dg's avatar dg
Browse files

fix

Escape from Reknor and Blighted Ruins are excluded from rares, whatever the level


git-svn-id: http://svn.net-core.org/repos/t-engine4@6103 51575b47-30f0-44d4-a5cc-537603b46e54
parent 8801f61a
No related branches found
No related tags found
No related merge requests found
......@@ -469,7 +469,7 @@ function _M:loadScreen(mod)
local ffdata = profile.funfacts
local tip = nil
if mod.load_tips then
if mod.load_tips then pcall(function()
local l = rng.table(mod.load_tips)
local img = nil
if l.image then
......@@ -503,12 +503,12 @@ function _M:loadScreen(mod)
y = y + item.h
end
end
end
end) end
local ffw = math.ceil(sw / 4)
if ffdata then
local str = self:selectFunFact(ffdata)
if str then
if str then pcall(function()
local text, _, tw = font:draw(str, ffw, 255, 255, 255)
local text_h = #text * text[1].h
ffw = math.min(ffw, tw)
......@@ -531,7 +531,7 @@ function _M:loadScreen(mod)
y = y + item.h
end
end
end
end) end
end
return function()
......
......@@ -52,6 +52,7 @@ return {
nb_npc = {20, 30},
filters = { {max_ood=2}, },
guardian = "HALF_BONE_GIANT", guardian_level = 1,
randelite = 0,
},
object = {
class = "engine.generator.object.Random",
......
......@@ -49,6 +49,7 @@ return {
nb_npc = {50, 60},
filters = { {max_ood=2}, },
nb_spots = 2, on_spot_chance = 35,
randelite = 0,
},
object = {
class = "engine.generator.object.Random",
......
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