Module:ScaledExperience: Revision history

Jump to navigation Jump to search
Diff selection: mark the radio boxes of the versions to compare or click on a revision date to view it. (cur) = difference from current version, (prev) = difference from preceding version,  m = minor edit, → = section edit

16 October 2024

  • curprev 00:2600:26, 16 October 2024Alex talk contribs 3,880 bytes +3,880 Created page with "local Experience = require( 'Module:Experience' ) local p = {} -- Determine the XP an action gives at a given level function p.action_xp_at_level(level, scalar, base, intercept) return base+(math.max(level-intercept,0)*scalar) end function p.xp_to_xp_actions(startingExp, targetExp, scalar, base, intercept) -- Accumulated exp starts off at whatever amount of exp the player has local accExp = startingExp local accActions = 0 -- Since the amount of exp depends on t..."