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

fix event factor

git-svn-id: http://svn.net-core.org/repos/t-engine4@5816 51575b47-30f0-44d4-a5cc-537603b46e54
parent 6272b9f1
No related branches found
No related tags found
No related merge requests found
......@@ -1902,7 +1902,7 @@ function _M:startEvents()
setfenv(f, setmetatable({level=game.level, zone=game.zone}, {__index=_G}))
local list = f()
for j, ee in ipairs(list) do
if e.percent_factor and ee.percent then ee.percent_factor = math.floor(ee.percent * e.percent_factor) end
if e.percent_factor and ee.percent then ee.percent = math.floor(ee.percent * e.percent_factor) end
if ee.name then if ee.minor then mevts[#mevts+1] = ee else evts[#evts+1] = ee end end
end
end
......
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