Module:Sandbox/User:Alsang: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 4:
local currency = require('Module:Currency')
local lang = mw.getContentLanguage()
local xpdata = mw.loadData('Module:Experience/data')
 
local p = {}
Line 53 ⟶ 54:
itemNew.duration = activityJSON.duration
itemNew.product = activityJSON.output[1].name
itemNew.XPperHour = itemNew.XP and tonumber(itemNew.XP) and itemNew.duration and tonumber(itemNew.duration) and tonumber(itemNew.XP) * 3600 / tonumber(itemNew.duration)
itemNew.fitXP = xpdata.knowledge[itemNew.lvl]*4*0.0005
if itemNew.lvl>=200 then
itemNew.fitXP = itemNew.fitXP * 4
end
itemNew.fitXP = math.floor(itemNew.fitXP * 100 ) / 100
table.insert(resultsScreened,itemNew)
end
Line 97 ⟶ 106:
:done()
:tag('th')
:wikitext('Duration0.0005 of levelup XP')
:done()
:tag('th')
:wikitext('XP/hr')
:done()
-- :tag('th')
-- :wikitext('Duration')
-- :done()
-- :tag('tdth')
-- :wikitext('XP/hr')
-- :done()
:done()
 
Line 124 ⟶ 136:
:done()
:tag('td')
:wikitext(item.durationfitXP)
:done()
:tag('td')
:wikitext(item.XPperHour)
:done()
-- :tag('td')
-- :wikitext(item.duration)
-- :done()
-- :tag('td')
-- :wikitext(item.XPperHour)
-- :done()
 
:done()
11,255

edits