Anonymous

Module:Skills/Gathering: Difference between revisions

From Melvor Idle
m
astrology now has the two new columns
m (fixed part of it(still a bit broken, I just figured out how to use the console so should be fine from here on out))
m (astrology now has the two new columns)
Line 719: Line 719:


for i, cons in ipairs(SkillData.Astrology.Constellations) do
for i, cons in ipairs(SkillData.Astrology.Constellations) do
local xpByThreshold = {0, 1154, 3316, 8893, 23861, 64109, 172409, 463885, 1248441, 3360264}
local xpByThreshold = {0, 1154, 3316, 8893, 23861, 64109, 172409, 463885, 1248441, 3360264, 3425226}
local name = cons.name
local name = cons.name
result = result..'\r\n|-'
result = result..'\r\n|-'
Line 747: Line 747:
result = result..'||'..table.concat(uMods, '<br/>')
result = result..'||'..table.concat(uMods, '<br/>')


         local xpPs = cons.provides.xp/3
         local xpPs = string.format("%02.f",cons.provides.xp/3)
         result = result..'||'..xpPs
         result = result..'||'..xpPs
mw.logObject(result)


mw.log(xpByThreshold[i])
        local time = SecondsToClock(xpByThreshold[i])
         --local seconds = xpByThreshold[i]
         mw.log(time)
         --result = result..'||'..SecondsToClock(seconds)
         result = result..'||'..time
       


end
end
8

edits