Editing Module:Experience
Revision as of 10:06, 19 December 2024 by Artoire (talk | contribs) (Created page with "require('strict') local data = mw.loadData('Module:Experience/data') local p = {} function p.total_xp(frame) local args = frame:getParent().args return p._total_xp(args[1]) end --Returns the total experience needed to reach a level (from 0) function p._total_xp(level) level = tonumber(level) or 0 local floor = math.floor(level) local frac = level - floor if frac ~= 0 then -- Linearly interpolate things like "level 100.5" as "halfway between level 100 and...")
Warning: You are editing an out-of-date revision of this page.
If you publish it, any changes made since this revision will be lost.
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
Retrieved from βhttps://brightershoreswiki.org/w/Module:Experienceβ