Anonymous

Module:Constants: Difference between revisions

From Melvor Idle
m
Missed multiplication symbol
(Add many 0.21 modifiers & amend _getModifierText() to support various new substitution options)
m (Missed multiplication symbol)
(4 intermediate revisions by 2 users not shown)
Line 177: Line 177:
   ["summoningSynergy_18_19"] = {text = "While using the Controlled Heat Potions, +5% Firemaking Skill XP and Bonfire duration is doubled. Charges are used per Firemaking action.", skills = {'Firemaking'}},
   ["summoningSynergy_18_19"] = {text = "While using the Controlled Heat Potions, +5% Firemaking Skill XP and Bonfire duration is doubled. Charges are used per Firemaking action.", skills = {'Firemaking'}},
   -- New 0.21 modifiers
   -- New 0.21 modifiers
   ["AgilityObstacleCost"] = { text = "{V}% Agility Obstacle Build Costs}", skills = {'Agility'} },
   ["AgilityObstacleCost"] = { text = "{V}% Agility Obstacle Build Costs", skills = {'Agility'} },
   ["allowAttackAugmentingMagic"] = { text = "Magic Curses and Auroras can be used without a magic weapon", skills = {'Combat'} },
   ["allowAttackAugmentingMagic"] = { text = "Magic Curses and Auroras can be used without a magic weapon", skills = {'Combat'} },
   ["allowSignetDrops"] = { text = "Something else drops instead of Gold Topaz Ring" },
   ["allowSignetDrops"] = { text = "Something else drops instead of Gold Topaz Ring" },
   ["aprilFoolsDecreasedCarrotGang"] = { text = "{V} Carrot Gang reputation points", isIncreaseNegative = true, inverseSign = true, skills = {'Combat'} },
   ["aprilFoolsDecreasedCarrotGang"] = { text = "{V} Carrot Gang reputation points", isIncreaseNegative = true, inverseSign = true, skills = {'Combat'} },
   ["aprilFoolsDecreasedLemonGang"] = { text = "{V} Lemon Gang reputation points", isIncreaseNegative = true, inverseSign = true, skills = {'Combat'} },
   ["aprilFoolsDecreasedLemonGang"] = { text = "{V} Lemon Gang reputation points", isIncreaseNegative = true, inverseSign = true, skills = {'Combat'} },
   ["aprilFoolsDecreasedMovementSpeed"] = { text = "{V} Movement Speed}", isIncreaseNegative = true, inverseSign = true },
   ["aprilFoolsDecreasedMovementSpeed"] = { text = "{V} Movement Speed", isIncreaseNegative = true, inverseSign = true },
   ["aprilFoolsDecreasedTeleportCost"] = { text = "{V}% Rune cost for Teleportation Spells", inverseSign = true },
   ["aprilFoolsDecreasedTeleportCost"] = { text = "{V}% Rune cost for Teleportation Spells", inverseSign = true },
   ["aprilFoolsDecreasedUpdateDelay"] = { text = "{V} days next Major Update has been delayed", inverseSign = true },
   ["aprilFoolsDecreasedUpdateDelay"] = { text = "{V} days next Major Update has been delayed", inverseSign = true },
   ["aprilFoolsIncreasedCarrotGang"] = { text = "{V} Carrot Gang reputation points", skills = {'Combat'} },
   ["aprilFoolsIncreasedCarrotGang"] = { text = "{V} Carrot Gang reputation points", skills = {'Combat'} },
   ["aprilFoolsIncreasedLemonGang"] = { text = "{V} Lemon Gang reputation points", skills = {'Combat'} },
   ["aprilFoolsIncreasedLemonGang"] = { text = "{V} Lemon Gang reputation points", skills = {'Combat'} },
   ["aprilFoolsIncreasedMovementSpeed"] = { text = "{V} Movement Speed}" },
   ["aprilFoolsIncreasedMovementSpeed"] = { text = "{V} Movement Speed" },
   ["aprilFoolsIncreasedTeleportCost"] = { text = "{V}% Rune cost for Teleportation Spells", isIncreaseNegative = true },
   ["aprilFoolsIncreasedTeleportCost"] = { text = "{V}% Rune cost for Teleportation Spells", isIncreaseNegative = true },
   ["aprilFoolsIncreasedUpdateDelay"] = { text = "{V} days next Major Update has been delayed", isIncreaseNegative = true },
   ["aprilFoolsIncreasedUpdateDelay"] = { text = "{V} days next Major Update has been delayed", isIncreaseNegative = true },
Line 209: Line 209:
   ["debuffImmunity"] = { text = "Immune to debuffs", skills = {'Combat'} },
   ["debuffImmunity"] = { text = "Immune to debuffs", skills = {'Combat'} },
   ["Decay"] = { text = "Take {V}% of Max HP as damage on a succesful attack", isIncreaseNegative = true, skills = {'Combat'} },
   ["Decay"] = { text = "Take {V}% of Max HP as damage on a succesful attack", isIncreaseNegative = true, skills = {'Combat'} },
   ["doubleItemsSkill"] = { text = "x{2^VD} TODO Items recieved from {SV0}" },
   ["doubleItemsSkill"] = { text = "x{VMUL} Items recieved from {SV0}" },
   ["doubleOresMining"] = { text = "x{2^VD} TODO Ores recieved from Mining", skills = {'Mining'} },
   ["doubleOresMining"] = { text = "x{VMUL} Ores recieved from Mining", skills = {'Mining'} },
   ["DragonBreathDamage"] = { text = "{V}% damage taken from dragonbreath", isIncreaseNegative = true, skills = {'Combat'} },
   ["DragonBreathDamage"] = { text = "{V}% damage taken from dragonbreath", isIncreaseNegative = true, skills = {'Combat'} },
   ["FiremakingCoalChance"] = { text = "{V}% chance to recieve coal when burning logs in Firemaking", skills = {'Firemaking'} },
   ["FiremakingCoalChance"] = { text = "{V}% chance to recieve coal when burning logs in Firemaking", skills = {'Firemaking'} },
Line 236: Line 236:
   ["MagicLifesteal"] = { text = "{V}% Magic lifesteal", skills = {'Magic'} },
   ["MagicLifesteal"] = { text = "{V}% Magic lifesteal", skills = {'Magic'} },
   ["MagicMaxHit"] = { text = "{V}% Magic Max Hit", skills = {'Magic'} },
   ["MagicMaxHit"] = { text = "{V}% Magic Max Hit", skills = {'Magic'} },
   ["magicProtection"] = { text = "Magic attacks have a {V}% chance to hit", skills = {'Magic'} },
   ["magicProtection"] = { text = "You have a set {V}% chance to dodge Magic attacks", skills = {'Magic'} },
   ["MasteryPoolProgress"] = { text = "{V}% to effective Mastery Pool progress" },
   ["MasteryPoolProgress"] = { text = "{V}% to effective Mastery Pool progress" },
   ["MaxAirSpellDmg"] = { text = "{MX} Max Air Spell Dmg", skills = {'Magic'} },
   ["MaxAirSpellDmg"] = { text = "{MX} Max Air Spell Dmg", skills = {'Magic'} },
Line 246: Line 246:
   ["MeleeLifesteal"] = { text = "{V}% Melee Lifesteal", skills = {'Combat'} },
   ["MeleeLifesteal"] = { text = "{V}% Melee Lifesteal", skills = {'Combat'} },
   ["MeleeMaxHit"] = { text = "{V}% Melee Max Hit", skills = {'Combat'} },
   ["MeleeMaxHit"] = { text = "{V}% Melee Max Hit", skills = {'Combat'} },
   ["meleeProtection"] = { text = "Melee attacks have a {V}% chance to hit", skills = {'Combat'} },
   ["meleeProtection"] = { text = "You have a set {V}% chance to dodge Melee attacks", skills = {'Combat'} },
   ["MeleeStunThreshold"] = { text = "Melee attacks stun the target when they deal {V}% of max hit", skills = {'Combat'} },
   ["MeleeStunThreshold"] = { text = "Melee attacks stun the target when they deal {V}% of max hit", skills = {'Combat'} },
   ["MiningGemChance"] = { text = "{V}% Chance to recieve gems from Mining (Does not work for Rune Essence)", skills = {'Combat'} },
   ["MiningGemChance"] = { text = "{V}% Chance to recieve gems from Mining (Does not work for Rune Essence)", skills = {'Combat'} },
Line 257: Line 257:
   ["RangedLifesteal"] = { text = "{V}% Ranged Lifesteal", skills = {'Ranged'} },
   ["RangedLifesteal"] = { text = "{V}% Ranged Lifesteal", skills = {'Ranged'} },
   ["RangedMaxHit"] = { text = "{V}% Ranged Max Hit", skills = {'Ranged'} },
   ["RangedMaxHit"] = { text = "{V}% Ranged Max Hit", skills = {'Ranged'} },
   ["rangedProtection"] = { text = "Ranged attacks have a {V}% chance to hit", skills = {'Ranged'} },
   ["rangedProtection"] = { text = "You have a set {V}% chance to dodge Ranged attacks", skills = {'Ranged'} },
   ["RebirthChance"] = { text = "{V}% chance to respawn with full hitpoints upon reaching 0 hitpoints", skills = {'Combat'} },
   ["RebirthChance"] = { text = "{V}% chance to respawn with full hitpoints upon reaching 0 hitpoints", skills = {'Combat'} },
   ["RedemptionPercent"] = { text = "{V}% of max hitpoints healed on redemption", skills = {'Combat'} },
   ["RedemptionPercent"] = { text = "{V}% of max hitpoints healed on redemption", skills = {'Combat'} },
Line 400: Line 400:
function p.getSlayerTierNameByLevel(lvl)
function p.getSlayerTierNameByLevel(lvl)
   for i, tier in Shared.skpairs(ConstantData.Slayer.Tiers) do
   for i, tier in Shared.skpairs(ConstantData.Slayer.Tiers) do
     if tier.minLevel <= lvl and (tier.maxLevel >= lvl or tier.maxLevel == -1) then
     if tier.minLevel <= lvl and (tier.maxLevel == nil or tier.maxLevel >= lvl) then
       return tier.display
       return tier.display
     end
     end