Module:Sandbox/LVL: Difference between revisions

Jump to navigation Jump to search
LVL (talk | contribs)
No edit summary
LVL (talk | contribs)
No edit summary
Line 2: Line 2:


-- Get NPC data values (you may need to adjust these based on your wiki's implementation)
-- Get NPC data values (you may need to adjust these based on your wiki's implementation)
local baseValue = 20 -- This should match {{NpcData|neutral_sinners_sacrifice|GoldReward}}
local baseValue = 164 -- This should match {{NpcData|neutral_sinners_sacrifice|GoldReward}}
local bonusPercentPerMinute = 0.02 -- This should match {{NpcData|neutral_sinners_sacrifice|GoldRewardBonusPercentPerMinute}} / 100
local bonusPercentPerMinute = 0.0108 --  
 
function p.calculatePayouts(frame)
function p.calculatePayouts(frame)
     local time = tonumber(frame.args[1]) or 0
     local time = tonumber(frame.args[1]) or 0