Anonymous

Module:Skills/Gathering: Difference between revisions

From Melvor Idle
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)
No edit summary
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))
Line 704: Line 704:
result = result..'\r\n!colspan="2"|Constellation!!'..Icons.Icon({"Astrology", type='skill', notext='true'})..' Level'
result = result..'\r\n!colspan="2"|Constellation!!'..Icons.Icon({"Astrology", type='skill', notext='true'})..' Level'
result = result..'!!XP!!Skills!!Standard Modifiers!!Unique Modifiers!!XP/s!!Time to next constellation'
result = result..'!!XP!!Skills!!Standard Modifiers!!Unique Modifiers!!XP/s!!Time to next constellation'
     local xpByThreshold = {1154, 3316, 8893, 23861, 64109, 172409, 463885, 1248441, 3360264}
      
 
     function SecondsToClock(seconds)
     function SecondsToClock(seconds)
         local seconds = tonumber(seconds)
         local seconds = tonumber(seconds)
Line 720: 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 name = cons.name
local name = cons.name
result = result..'\r\n|-'
result = result..'\r\n|-'
Line 750: Line 750:
         result = result..'||'..xpPs
         result = result..'||'..xpPs


print(xpByThreshold[1])
mw.log(xpByThreshold[i])
         local seconds = xpByThreshold[i] / xpPs
         --local seconds = xpByThreshold[i]
         result = result..'||'..SecondsToClock(seconds)
         --result = result..'||'..SecondsToClock(seconds)


end
end
8

edits