Skip to content
Snippets Groups Projects
Commit 4ce0606f authored by DarkGod's avatar DarkGod
Browse files

Fixed various small bugs

bump to 121
parent a2eb49b6
No related branches found
No related tags found
No related merge requests found
......@@ -974,6 +974,7 @@ function _M:loadList(file, no_default, res, mod, loaded)
setfenv(f, setmetatable(newenv, {__index=_G}))
f()
setfenv(f, {})
newenv.currentZone = nil
self:triggerHook{"Entity:loadList", file=file, no_default=no_default, res=res, mod=mod, loaded=loaded}
......
......@@ -1808,7 +1808,11 @@ function util.findAllReferences(t, what)
if type(e) == "function" then
local fenv = getfenv(e)
local data = table.clone(data)
data[#data+1] = "e:fenv:"..tostring(k)
if fenv.__CLASSNAME then
data[#data+1] = "e:fenv["..fenv.__CLASSNAME"]:"..tostring(k)
else
data[#data+1] = "e:fenv[--]:"..tostring(k)
end
recurs(fenv, data)
end
......
......@@ -18,7 +18,7 @@
-- darkgod@te4.org
-- Engine Version
engine.version = {1,2,0,"te4",17}
engine.version = {1,2,1,"te4",17}
engine.require_c_core = engine.version[5]
engine.version_id = ("%s-%d_%d.%d.%d"):format(engine.version[4], engine.require_c_core, engine.version[1], engine.version[2], engine.version[3])
......
......@@ -145,6 +145,7 @@ function _M:getName()
end
function _M:tooltip(x, y)
if not x or not y then return tstring("") end
local tstr
local dist = nil
if game.player.x and game.player.y then dist = tstring{" (range: ", {"font", "italic"}, {"color", "LIGHT_GREEN"}, tostring(core.fov.distance(game.player.x, game.player.y, x, y)), {"color", "LAST"}, {"font", "normal"}, ")"} end
......
......@@ -42,6 +42,7 @@ newTalent{
points = 5,
require = {stat = {str = function(level) return 16 + (level + 2) * (level - 1) end}},
ArmorEffect = function(self, t) -- Becomes more effective with heavier armors
if not self:getInven("BODY") then return 0 end
local am = self:getInven("BODY")[1] or {}
-- if am.subtype == "cloth" then return 0.75
-- elseif am.subtype == "light" then return 1.0
......
......@@ -22,8 +22,8 @@ long_name = "Tales of Maj'Eyal: Age of Ascendancy"
short_name = "tome"
author = { "DarkGod", "darkgod@te4.org" }
homepage = "http://te4.org/"
version = {1,2,0}
engine = {1,2,0,"te4"}
version = {1,2,1}
engine = {1,2,1,"te4"}
description = [[
Welcome to Maj'Eyal.
......
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