View source for Module:Sandbox/User:Microbrews/Skilling success chart
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local chart = require( 'Module:Chart data' )
local p = {}
function interp(low, high, level)
local value = math.floor(low*(99-level)/98 + high*(level-1)/98 + 0.5) + 1
return math.min(math.max(value / 256, 0), 1)
end
function oldInterp(low, high, level)
local value = math.modf(low*(99-level)/98) + math.modf(high*(level-1)/98) + 1
return math.min(math.max(value / 256, 0), 1)
end
function bonusInterp(low, high, bonuslow, bonushigh, level)
local value = interp(low, high, level)
return value + (1-value)*interp(bonuslow, bonushigh, level)
end
function exponentInterp(low, high, exponent, level)
000
1:0
Templates used on this page:
- Template:Documentation (view source)
- Template:Extension DPL (view source)
- Template:Module sandbox (view source)
- Module:Array (view source)
- Module:DPLlua (view source)
- Module:DependencyList (view source)
- Module:Documentation (view source)
- Module:Paramtest (view source)
- Module:Sandbox/User:Microbrews/Skilling success chart (view source)
- Module:Sandbox/User:Microbrews/Skilling success chart/doc (view source)
- Module:Tooltip (view source)
- Module:Yesno (view source)
Return to Module:Sandbox/User:Microbrews/Skilling success chart.