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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision β†’ (diff)
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.
Please note that all contributions to Brighter Shores Wiki are considered to be released under the CC BY-NC-SA 3.0 (see Brighter Shores:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)
Preview page with this template

This page is a member of a hidden category: