Module:Constants: Difference between revisions

getModifierText: Adjust display of various time based modifier values
(Implement Golbin raid modifiers)
(getModifierText: Adjust display of various time based modifier values)
Line 51: Line 51:
   ["increasedRunePreservation"] = { text =  "+{V}% Rune Preservation", },
   ["increasedRunePreservation"] = { text =  "+{V}% Rune Preservation", },
   ["increasedHiddenSkillLevel"] = { text =  "+{V1} Hidden {SV0} Level", },
   ["increasedHiddenSkillLevel"] = { text =  "+{V1} Hidden {SV0} Level", },
   ["decreasedPlayerAttackSpeed"] = { text =  "-{V} Player Attack Speed", },
   ["decreasedPlayerAttackSpeed"] = { text =  "-{VMS}s Player Attack Speed", },
   ["decreasedPlayerAttackSpeedPercent"] = { text =  "-{V}% Player Attack Speed", },
   ["decreasedPlayerAttackSpeedPercent"] = { text =  "-{V}% Player Attack Speed", },
   ["increasedSlayerAreaEffectNegationFlat"] = { text =  "+{V}% Flat Slayer Area Effect Negation", },
   ["increasedSlayerAreaEffectNegationFlat"] = { text =  "+{V}% Flat Slayer Area Effect Negation", },
Line 94: Line 94:
   ["decreasedRunePreservation"] = { text =  "-{V}% Rune Preservation", isNegative = true },
   ["decreasedRunePreservation"] = { text =  "-{V}% Rune Preservation", isNegative = true },
   ["decreasedHiddenSkillLevel"] = { text =  "-{V1} Hidden {SV0} Level", isNegative = true },
   ["decreasedHiddenSkillLevel"] = { text =  "-{V1} Hidden {SV0} Level", isNegative = true },
   ["increasedPlayerAttackSpeed"] = { text =  "+{V} Player Attack Speed", isNegative = true },
   ["increasedPlayerAttackSpeed"] = { text =  "+{VMS}s Player Attack Speed", isNegative = true },
   ["increasedPlayerAttackSpeedPercent"] = { text =  "+{V}% Player Attack Speed", isNegative = true },
   ["increasedPlayerAttackSpeedPercent"] = { text =  "+{V}% Player Attack Speed", isNegative = true },
   ["increasedMonsterRespawnTimer"] = { text =  "+{VMS}s Monster Respawn Timer", isNegative = true },
   ["increasedMonsterRespawnTimer"] = { text =  "+{VMS}s Monster Respawn Timer", isNegative = true },
Line 106: Line 106:
   ["decreasedBankSpaceShop"] = { text =  "-{V} Bank Space from Shop", isNegative = true },
   ["decreasedBankSpaceShop"] = { text =  "-{V} Bank Space from Shop", isNegative = true },
   ["decreasedChanceToPreservePotionCharge"] = { text =  "-{V}% Chance To Preserve Potion Charge", isNegative = true },
   ["decreasedChanceToPreservePotionCharge"] = { text =  "-{V}% Chance To Preserve Potion Charge", isNegative = true },
   ["decreasedSkillInterval"] = { text =  "-{V1} {SV0} Interval", },
   ["decreasedSkillInterval"] = { text =  "-{VMS1}s {SV0} Interval", },
   ["decreasedSkillIntervalPercent"] = { text =  "-{V1}% {SV0} Interval", },
   ["decreasedSkillIntervalPercent"] = { text =  "-{V1}% {SV0} Interval", },
   ["increasedChanceToDoubleLootThieving"] = { text =  "+{V}% Chance To Double Loot in Thieving", },
   ["increasedChanceToDoubleLootThieving"] = { text =  "+{V}% Chance To Double Loot in Thieving", },
Line 118: Line 118:
   ["increasedMaxStamina"] = { text =  "+{V}% Max Stamina", },
   ["increasedMaxStamina"] = { text =  "+{V}% Max Stamina", },
   ["increasedMiningNodeHP"] = { text =  "+{V} Mining Node HP", },
   ["increasedMiningNodeHP"] = { text =  "+{V} Mining Node HP", },
   ["increasedSkillInterval"] = { text =  "+{V1} {SV0} Interval", isNegative = true },
   ["increasedSkillInterval"] = { text =  "+{VMS1}s {SV0} Interval", isNegative = true },
   ["increasedSkillIntervalPercent"] = { text =  "+{V1}% {SV0} Interval", isNegative = true },
   ["increasedSkillIntervalPercent"] = { text =  "+{V1}% {SV0} Interval", isNegative = true },
   ["decreasedChanceToDoubleLootThieving"] = { text =  "-{V}% Chance To Double Loot in Thieving", isNegative = true },
   ["decreasedChanceToDoubleLootThieving"] = { text =  "-{V}% Chance To Double Loot in Thieving", isNegative = true },
Line 204: Line 204:
     if value[2] ~= nil then
     if value[2] ~= nil then
       result = string.gsub(result, '{V1}', value[2])
       result = string.gsub(result, '{V1}', value[2])
      result = string.gsub(result, '{VMS1}', value[2] / 1000)
     end
     end
   else
   else