Anonymous

Module:Constants: Difference between revisions

From Melvor Idle
Added new summoning synergy modifiers
(Correct HPRegenFlat modifier value display)
(Added new summoning synergy modifiers)
Line 110: Line 110:
   ["EnemyMeleeEvasion"] = { text = "{V}% Enemy Melee Evasion", isIncreaseNegative = true, skills = {'Combat'} },
   ["EnemyMeleeEvasion"] = { text = "{V}% Enemy Melee Evasion", isIncreaseNegative = true, skills = {'Combat'} },
   ["EnemyRangedEvasion"] = { text = "{V}% Enemy Ranged Evasion", isIncreaseNegative = true, skills = {'Combat'} },
   ["EnemyRangedEvasion"] = { text = "{V}% Enemy Ranged Evasion", isIncreaseNegative = true, skills = {'Combat'} },
   ["EnemyMagicEvasion"] = { text = "{V}% Enemy Magic Evasion", isIncreaseNegative = true, skills = {'Combat'} }
   ["EnemyMagicEvasion"] = { text = "{V}% Enemy Magic Evasion", isIncreaseNegative = true, skills = {'Combat'} },
  ["summoningSynergy_0_1"] = {text = "Upon killing an Enemy, grants GP equal to {V}% of their highest base Evasion Rating.", skill = {"Combat",}},
  ["summoningSynergy_0_6"] = {text = "Grants GP equal to {V}% of your MELEE damage dealt.", skill = {"Combat"}},
  ["summoningSynergy_0_7"] = {text = "Grants GP equal to {V}% of your RANGED damage dealt.", skill = {"Combat"}},
  ["summoningSynergy_0_8"] = {text = "Grants GP equal to {V}% of your MAGIC damage dealt.", skill = {"Combat"}},
  ["summoningSynergy_0_12"] = {text = "Upon killing a Slayer Task Enemy, grants {V}% GP.", skill = {"Combat"}},
  ["summoningSynergy_0_13"] = {text = "Upon being hit by an Enemy, grants GP equal to ({V} * Your Damage Reduction). This can only proc once every Enemy Attack Turn.", skill = {"Combat"}},
  ["summoningSynergy_0_14"] = {text = "Every time you regenerate Hitpoints (Not eating), grants GP equal to (${1000/numberMultiplier} * Hitpoints Regenerated).", skill = {"Combat"}},
  ["summoningSynergy_0_15"] = {text = "Upon killing an Enemy that is BURNING, grants {V}% GP.", skill = {"Combat"}},
  ["summoningSynergy_1_2"] = {text = "When player has full HP, effects from the Occultist Familiar are tripled.", skill = {"Combat"}},
  ["summoningSynergy_1_8"] = {text = "{V} Magic Defence Bonus.", skill = {"Combat"}},
  ["summoningSynergy_1_12"] = {text = "If the Enemy is your current Slayer Task, {V}% Enemy Accuracy Rating.", skill = {"Combat"}, inverseSign = true},
  ["summoningSynergy_1_13"] = {text = "Grants flat Melee & Ranged Defence Bonus equal to your Damage Reduction", skill = {"Combat"}},
  ["summoningSynergy_1_14"] = {text = "If the Enemy has more combined Evasion Ratings than the Player, grants {V}% Hitpoint Regeneration.", skill = {"Combat"}},
  ["summoningSynergy_1_15"] = {text = "If the Player is BURNING, grants {V} Melee, Ranged and Magic Defence Bonus.", skill = {"Combat"}},
  ["summoningSynergy_2_6"] = {text = "If using a Melee Attack Style, grants {V}% Lifesteal.", skill = {"Combat", 'Melee'}},
  ["summoningSynergy_2_7"] = {text = "If using a Ranged Attack Style, grants {V}% Lifesteal.", skill = {"Combat", 'Ranged'}},
  ["summoningSynergy_2_8"] = {text = "If using a Magic Attack Style, grants {V}% Lifesteal.", skill = {"Combat", 'Magic'}},
  ["summoningSynergy_2_12"] = {text = "Grants Slayer Coins equal to {V}% of HP leeched from Lifesteal.", skill = {"Slayer"}},
  ["summoningSynergy_2_13"] = {text = "Upon attacking an Enemy, heals you for {V}% of your Damage Reduction. This can only proc once every 2 seconds.", skill = {"Combat"}},
  ["summoningSynergy_2_14"] = {text = "{V}% Lifesteal from Bleed damage.", skill = {"Combat", 'Melee'}},
  ["summoningSynergy_2_15"] = {text = "Heals you for all damage dealt by the Wolf & Dragon Familiars.", skill = {"Combat"}},
  ["summoningSynergy_3_4"] = {text = "{V}% chance per action in Woodcutting to gain a random Gem.", skill = {'Woodcutting'}},
  ["summoningSynergy_3_5"] = {text = "{V}% Increased Special Item chance in Fishing. {V}% Increased chance to obtain a Bird Nests in Woodcutting.", skill = {'Fishing'}},
  ["summoningSynergy_3_9"] = {text = "{V}% chance to receive +1 Cooked Food in Cooking. Cannot be doubled.", skill = {'Cooking'}},
  ["summoningSynergy_3_10"] = {text = "{V}% Runecrafting Preservation Chance when creating Staves.", skill = {'Runecrafting'}},
  ["summoningSynergy_3_11"] = {text = "When successfully pickpocketing the Lumberjack in Thieving, grants {V} Bird Nest instead of GP.", skill = {'Thieving'}},
  ["summoningSynergy_3_16"] = {text = "In Woodcutting, {V}% chance for a random Silver or Gold Jewelry to drop instead of a Bird Nest.", skill = {'Woodcutting'}},
  ["summoningSynergy_3_17"] = {text = "{V}% chance to gain +1 Base Logs from Woodcutting, or produced Items from Smithing.", skill = {'Woodcutting'}},
  ["summoningSynergy_3_18"] = {text = "While the Bird Nest Potion is active in Woodcutting, grants {V} minimum Bird Nest.", skill = {'Woodcutting'}},
  ["summoningSynergy_3_19"] = {text = "{V}% of Woodcutting Skill XP is earned as Firemaking Skill XP. Chance to double Logs is halved.", skill = {'Woodcutting', 'Firemaking'}},
  ["summoningSynergy_4_5"] = {text = "When receiving a Gem from Mining or Fishing, there is a {V}% chance to get another random Gem.", skill = {'Fishing', 'Mining'}},
  ["summoningSynergy_4_9"] = {text = "{V}% base burn chance in Cooking. Grants 100 Coal Ore when burning Food.", skill = {'Cooking'}},
  ["summoningSynergy_4_10"] = {text = "Base quantity for Rune Essence in Mining is doubled.", skill = {'Mining'}},
  ["summoningSynergy_4_11"] = {text = "When successfully pickpocketing the Miner in Thieving, {V}% chance to get a random Gem.", skill = {'Thieving'}},
  ["summoningSynergy_4_16"] = {text = "Base quantity for Silver Ore & Gold Ore is doubled in Mining.", skill = {'Mining'}},
  ["summoningSynergy_4_17"] = {text = "{V}% chance to receive a smithed verion of the Ore you are Mining.", skill = {'Mining'}},
  ["summoningSynergy_4_18"] = {text = "While the Perfect Swing Potion is active in Mining, all Mining Nodes have {V} Max HP.", skill = {'Mining'}},
  ["summoningSynergy_4_19"] = {text = "{V}% chance to recieve a Diamond per action in Firemaking.", skill = {'Firemaking'}},
  ["summoningSynergy_5_9"] = {text = "{V}% chance to recieve an extra Fish as a Cooked version while Fishing.", skill = {'Fishing'}},
  ["summoningSynergy_5_10"] = {text = "In Runecrafting, when creating a Combination Rune that requires Water Runes as an ingredient, produce {V} extra Combination Runes.", skill = {'Runecrafting'}},
  ["summoningSynergy_5_11"] = {text = "-50% Thieving Skill Interval for Fisherman only. Also grants +2 Base Thieving Item Qty from Fisherman only.", skill = {'Thieving'}},
  ["summoningSynergy_5_16"] = {text = "33% chance to gain a random Gem while creating Jewelry in Crafting.", skill = {'Crafting'}},
  ["summoningSynergy_5_17"] = {text = "While creating Dragon Gear in Smithing, grants {V}% Smithing Preservation chance.", skill = {'Smithing'}},
  ["summoningSynergy_5_18"] = {text = "{V}% charges when using the Fishermans Potion. Bonus is applied when new Potion is activated. Charges are used each Fishing action.", skill = {'Fishing'}},
  ["summoningSynergy_6_7"] = {text = "While fighting a Ranged Enemy, grants {V} Melee Accuracy Bonus and {V} Melee Strength Bonus.", skill = {"Combat", 'Melee'}},
  ["summoningSynergy_6_8"] = {text = "While fighting your current Slayer Task, grants {V}% of your Magic Max Hit as Minimum Damage.", skill = {"Combat", 'Magic'}},
  ["summoningSynergy_6_12"] = {text = "While fighting your current Slayer Task, grants {V}% of your Melee Max Hit as Minimum Damage.", skill = {"Combat", 'Melee'}},
  ["summoningSynergy_6_13"] = {text = "While fighting a Ranged Enemy, grants {V}% Damage Reduction.", skill = {"Combat"}},
  ["summoningSynergy_6_14"] = {text = "While using a Melee Weapon, grants {V}% of your Melee Max Hit as Flat HP Regen.", skill = {"Combat", 'Melee'}},
  ["summoningSynergy_6_15"] = {text = "If the Enemy is BURNING, effects from the Minotaur Familiar are tripled.", skill = {"Combat", 'Melee'}},
  ["summoningSynergy_7_8"] = {text = "While fighting a Magic Enemy, grants {V} Ranged Accuracy Bonus and {V} Ranged Strength Bonus.", skill = {"Combat", 'Ranged'}},
  ["summoningSynergy_7_12"] = {text = "While fighting your current Slayer Task, grants {V}% of your Ranged Max Hit as Minimum Damage.", skill = {"Combat", 'Ranged'}},
  ["summoningSynergy_7_13"] = {text = "While fighting a Magic Enemy, grants {V}% Damage Reduction.", skill = {"Combat"}},
  ["summoningSynergy_7_14"] = {text = "While using a Ranged Weapon, grants {V}% of your Ranged Max Hit as HP Regeneration.", skill = {"Combat", 'Ranged'}},
  ["summoningSynergy_7_15"] = {text = "Your Ranged Attacks now have {V}% to inflict BURNING on the Enemy.", skill = {"Combat", 'Ranged'}},
  ["summoningSynergy_8_12"] = {text = "Grants Slayer Coins equal to {V}% of your Magic Damage while on Slayer Task.", skill = {'Slayer'}},
  ["summoningSynergy_8_13"] = {text = "While fighting a Melee Enemy, grants {V}% Damage Reduction.", skill = {"Combat"}},
  ["summoningSynergy_8_14"] = {text = "Grants {V}% of your Max Hit as HP Regeneration if using a Magic Attack Style.", skill = {"Combat", 'Magic'}},
  ["summoningSynergy_9_10"] = {text = "{V}% chance to preserve resources in Cooking, and when creating Runes in Runecrafting.", skill = {'Runecrafting'}},
  ["summoningSynergy_9_11"] = {text = "The Chef in Thieving now deals no damage to you.", skill = {'Thieving'}},
  ["summoningSynergy_9_16"] = {text = "Crafting Recipes that require Dragonhide now use {V} quantity to create. Recipe cost cannot go below 1.", skill = {'Crafting'}, inverseSign = true},
  ["summoningSynergy_9_17"] = {text = "-{VMS}s Skill Interval for Cooking & Smithing.", skill = {'Cooking', 'Smithing'}},
  ["summoningSynergy_9_18"] = {text = "Generous Cook Potions now provide {V}% charges. This bonus is applied when a new potion is activated.", skill = {'Cooking'}},
  ["summoningSynergy_10_11"] = {text = "Successfully pickpocketting the Miner in Thieving will now grant {V} Rune Essence.", skill = {'Thieving'}},
  ["summoningSynergy_10_16"] = {text = "{V}% chance to double when creating Leather, Hard Leather or Dragonhide Armour in Crafting.", skill = {'Crafting'}},
  ["summoningSynergy_10_18"] = {text = "While the Elemental Potion is active in Runecrafting, grants a chance to get random Combination Runes. The chance and quantity is equal to that of the Elemental Potion.", skill = {'Runecrafting'}},
  ["summoningSynergy_10_19"] = {text = "Grants {V} Fire Runes while creating Elemental Runes.", skill = {'Runecrafting'}},
  ["summoningSynergy_11_16"] = {text = "Upon receiving an item in Thieving, grants GP equal to {VX100}% of its sale price.", skill = {'Thieving'}},
  ["summoningSynergy_11_17"] = {text = "Upon successfully pickpocketting an item from the Miner in Thieving, {V}% chance to receive a random Bar.", skill = {'Thieving'}},
  ["summoningSynergy_11_18"] = {text = "{V}% chance to obtain a single Herb Sack while Thieving the Farmer, on top of the original item obtained.", skill = {'Thieving'}},
  ["summoningSynergy_11_19"] = {text = "While Thieving any NPC, 50% chance to grant +100% GP, 35% chance to grant 4x Items, or 15% chance to receive no items or GP at all.", skill = {'Thieving'}},
  ["summoningSynergy_12_13"] = {text = "While fighting your current Slayer Task, {V}% Damage Reduction.", skill = {"Combat"}},
  ["summoningSynergy_12_14"] = {text = "While fighting your current Slayer Task, {V}% Hitpoints Regeneration.", skill = {"Combat"}},
  ["summoningSynergy_12_15"] = {text = "You take {V}% less damage from Dragonbreath Special Attacks.", skill = {"Combat"}},
  ["summoningSynergy_13_14"] = {text = "{V}% Hitpoints Regeneration if you have less than 75% Current HP.", skill = {"Combat"}},
  ["summoningSynergy_13_15"] = {text = "You take no damage from BURNING.", skill = {"Combat"}},
  ["summoningSynergy_14_15"] = {text = "You now heal for all BURNING damage you or the Dragon Familiar applies.", skill = {"Combat", 'Magic'}},
  ["summoningSynergy_16_17"] = {text = "{V}% chance to preserve resources in Crafting when creating Rings or Amulets only.", skill = {'Crafting'}},
  ["summoningSynergy_16_18"] = {text = "Crafting Potions now last twice as long. Bonus is applied when a new potion is activated. Charges are used per Crafting action.", skill = {'Crafting'}},
  ["summoningSynergy_16_19"] = {text = "Burning Logs in Firemaking grants GP equal to {V+100}% of its base sale price.", skill = {'Firemaking'}},
  ["summoningSynergy_17_18"] = {text = "While using the Seeing Gold Potion in Smithing, double Silver & Gold Bar output.", skill = {'Smithing'}},
  ["summoningSynergy_17_19"] = {text = "{V} Coal required for Smithing Item production.", skill = {'Smithing'}, inverseSign = true},
  ["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.", skill = {'Firemaking'}},
}
}


Line 262: Line 345:
   local modifier = modifierTypes[baseName]
   local modifier = modifierTypes[baseName]
   if modifier == nil then
   if modifier == nil then
    mw.log(baseName)
     return nil
     return nil
   end
   end
Line 319: Line 401:
     result = string.gsub(result, '{VMS}', sign..(value / 1000))
     result = string.gsub(result, '{VMS}', sign..(value / 1000))
     result = string.gsub(result, '{VX}', sign..(value * 10))
     result = string.gsub(result, '{VX}', sign..(value * 10))
    result = string.gsub(result, '{VX100}', sign..(value * 100))
    result = string.gsub(result, '{V+100}', sign..(value + 100))
   end
   end