17,105
edits
Falterfire (talk | contribs) (Fixed typo on prayer point costs) |
(Implement Golbin raid modifiers) |
||
Line 2: | Line 2: | ||
local ConstantData = mw.loadData('Module:Constants/data') | local ConstantData = mw.loadData('Module:Constants/data') | ||
local ItemData = mw.loadData('Module:Items/data') | |||
local Shared = require('Module:Shared') | local Shared = require('Module:Shared') | ||
Line 166: | Line 167: | ||
["decreasedMinHitBasedOnMaxHit"] = { text = "-{V}% of Maximum Hit added to Minimum Hit", isNegative = true }, | ["decreasedMinHitBasedOnMaxHit"] = { text = "-{V}% of Maximum Hit added to Minimum Hit", isNegative = true }, | ||
["increasedPotionChargesFlat"] = { text = "+{V} Charges per Potion" }, | ["increasedPotionChargesFlat"] = { text = "+{V} Charges per Potion" }, | ||
["decreasedPotionChargesFlat"] = { text = "-{V} Charges per Potion", isNegative = true } | ["decreasedPotionChargesFlat"] = { text = "-{V} Charges per Potion", isNegative = true }, | ||
["golbinRaidStartingWeapon"] = { text = "Start the Golbin Raid with an {IV}" }, | |||
["golbinRaidIncreasedStartingRuneCount"] = { text = "+{V} to starting Elemental Rune count" } | |||
} | } | ||
Line 203: | Line 206: | ||
end | end | ||
else | else | ||
if string.find(result, '{IV}', 1, true) ~= nil and tonumber(value) ~= nil then | |||
local item = ItemData.Items[tonumber(value) + 1] | |||
if item ~= nil then | |||
result = string.gsub(result, '{IV}', item.name) | |||
end | |||
end | |||
result = string.gsub(result, '{V}', value) | result = string.gsub(result, '{V}', value) | ||
result = string.gsub(result, '{VMS}', value / 1000) | result = string.gsub(result, '{VMS}', value / 1000) |