Module:Magic/data

From Melvor Idle

Documentation for this module may be created at Module:Magic/data/doc

-- Version: V1.0.5 (?2075)

--[[Generated via console using
(function() {
  var getGameVersion = function() {
      var elemVer = document.querySelector("li[data-target='#modal-major-update']:not(.d-none)")
      if (elemVer !== undefined) {
      	return elemVer.innerText
      }
      else {
        return gameVersion
      }
    }

  var fullText = "-- Version: " + getGameVersion()
  fullText += "\r\n\r\nlocal MagicData = {}"

  var txt = JSON.stringify(SPELLS)
  txt = txt.replace(/\'/g, "\\\'")
  txt = txt.replace(/\\\"/g, "\\\\\"")
  fullText += "\r\n\r\nMagicData.Spells = mw.text.jsonDecode('" + txt + "')"

  txt = JSON.stringify(CURSES)
  txt = txt.replace(/\'/g, "\\\'")
  txt = txt.replace(/\\\"/g, "\\\\\"")
  fullText += "\r\n\r\nMagicData.Curses = mw.text.jsonDecode('" + txt + "')"

  txt = JSON.stringify(AURORAS)
  txt = txt.replace(/\'/g, "\\\'")
  txt = txt.replace(/\\\"/g, "\\\\\"")
  fullText += "\r\n\r\nMagicData.Auroras = mw.text.jsonDecode('" + txt + "')"

  //Manually forcing through Ancient spell descriptions
  var tempAncients = []
  for(var i = 0; i < ANCIENT.length; i++){
      tempAncients[i] = {...ANCIENT[i]};
      tempAncients[i].description = describeAttack(ANCIENT[i].specialAttack,enemyNoun,youNoun)
  }
  txt = JSON.stringify(tempAncients)
  txt = txt.replace(/\'/g, "\\\'")
  txt = txt.replace(/\\\"/g, "\\\\\"")
  fullText += "\r\n\r\nMagicData.Ancient = mw.text.jsonDecode('" + txt + "')"

  txt = JSON.stringify(AltMagic.spells)
  txt = txt.replace(/\'/g, "\\\'")
  txt = txt.replace(/\\\"/g, "\\\\\"")
  fullText += "\r\n\r\nMagicData.AltMagic = mw.text.jsonDecode('" + txt + "')"

  fullText += "\r\n\r\nreturn MagicData"
  console.log(fullText)
})()
--]]

local MagicData = {}

MagicData.Spells = mw.text.jsonDecode('[{"id":0,"name":"Wind Strike","media":"assets/media/skills/magic/wind_strike.svg","level":1,"runesRequired":[{"id":389,"qty":2},{"id":390,"qty":1}],"maxHit":2,"spellType":0,"spellTier":0},{"id":1,"name":"Water Strike","media":"assets/media/skills/magic/water_strike.svg","level":3,"runesRequired":[{"id":389,"qty":1},{"id":390,"qty":1},{"id":391,"qty":1}],"runesRequiredAlt":[{"id":824,"qty":1},{"id":390,"qty":1}],"maxHit":4.5,"spellType":1,"spellTier":0},{"id":2,"name":"Earth Strike","media":"assets/media/skills/magic/earth_strike.svg","level":6,"runesRequired":[{"id":389,"qty":1},{"id":390,"qty":1},{"id":392,"qty":1}],"runesRequiredAlt":[{"id":825,"qty":1},{"id":390,"qty":1}],"maxHit":7,"spellType":2,"spellTier":0},{"id":3,"name":"Fire Strike","media":"assets/media/skills/magic/fire_strike.svg","level":10,"runesRequired":[{"id":389,"qty":1},{"id":390,"qty":1},{"id":393,"qty":1}],"runesRequiredAlt":[{"id":827,"qty":1},{"id":390,"qty":1}],"maxHit":9.5,"spellType":3,"spellTier":0},{"id":4,"name":"Wind Bolt","media":"assets/media/skills/magic/wind_bolt.svg","level":14,"runesRequired":[{"id":389,"qty":4},{"id":395,"qty":1}],"maxHit":9,"spellType":0,"spellTier":1},{"id":5,"name":"Water Bolt","media":"assets/media/skills/magic/water_bolt.svg","level":16,"runesRequired":[{"id":389,"qty":2},{"id":395,"qty":1},{"id":391,"qty":2}],"runesRequiredAlt":[{"id":824,"qty":2},{"id":395,"qty":1}],"maxHit":10.5,"spellType":1,"spellTier":1},{"id":6,"name":"Earth Bolt","media":"assets/media/skills/magic/earth_bolt.svg","level":19,"runesRequired":[{"id":389,"qty":2},{"id":395,"qty":1},{"id":392,"qty":3}],"runesRequiredAlt":[{"id":825,"qty":2},{"id":395,"qty":1}],"maxHit":12,"spellType":2,"spellTier":1},{"id":7,"name":"Fire Bolt","media":"assets/media/skills/magic/fire_bolt.svg","level":23,"runesRequired":[{"id":389,"qty":3},{"id":395,"qty":1},{"id":393,"qty":4}],"runesRequiredAlt":[{"id":827,"qty":3},{"id":395,"qty":1}],"maxHit":13.5,"spellType":3,"spellTier":1},{"id":8,"name":"Wind Blast","media":"assets/media/skills/magic/wind_blast.svg","level":28,"runesRequired":[{"id":389,"qty":6},{"id":396,"qty":1}],"maxHit":13,"spellType":0,"spellTier":2},{"id":9,"name":"Water Blast","media":"assets/media/skills/magic/water_blast.svg","level":30,"runesRequired":[{"id":389,"qty":3},{"id":396,"qty":1},{"id":391,"qty":4}],"runesRequiredAlt":[{"id":824,"qty":3},{"id":396,"qty":1}],"maxHit":14.5,"spellType":1,"spellTier":2},{"id":10,"name":"Earth Blast","media":"assets/media/skills/magic/earth_blast.svg","level":33,"runesRequired":[{"id":389,"qty":3},{"id":396,"qty":1},{"id":392,"qty":4}],"runesRequiredAlt":[{"id":825,"qty":3},{"id":396,"qty":1}],"maxHit":16,"spellType":2,"spellTier":2},{"id":11,"name":"Fire Blast","media":"assets/media/skills/magic/fire_blast.svg","level":37,"runesRequired":[{"id":389,"qty":4},{"id":396,"qty":1},{"id":393,"qty":5}],"runesRequiredAlt":[{"id":827,"qty":4},{"id":396,"qty":1}],"maxHit":17.5,"spellType":3,"spellTier":2},{"id":12,"name":"Wind Wave","media":"assets/media/skills/magic/wind_wave.svg","level":43,"runesRequired":[{"id":389,"qty":10},{"id":397,"qty":1}],"maxHit":17,"spellType":0,"spellTier":3},{"id":13,"name":"Water Wave","media":"assets/media/skills/magic/water_wave.svg","level":45,"runesRequired":[{"id":389,"qty":5},{"id":397,"qty":1},{"id":391,"qty":7}],"runesRequiredAlt":[{"id":824,"qty":5},{"id":397,"qty":1}],"maxHit":18.5,"spellType":1,"spellTier":3},{"id":14,"name":"Earth Wave","media":"assets/media/skills/magic/earth_wave.svg","level":48,"runesRequired":[{"id":389,"qty":5},{"id":397,"qty":1},{"id":392,"qty":7}],"runesRequiredAlt":[{"id":825,"qty":5},{"id":397,"qty":1}],"maxHit":20,"spellType":2,"spellTier":3},{"id":15,"name":"Fire Wave","media":"assets/media/skills/magic/fire_wave.svg","level":52,"runesRequired":[{"id":389,"qty":5},{"id":397,"qty":1},{"id":393,"qty":7}],"runesRequiredAlt":[{"id":827,"qty":5},{"id":397,"qty":1}],"maxHit":21.5,"spellType":3,"spellTier":3},{"id":16,"name":"Wind Surge","media":"assets/media/skills/magic/wind_surge.svg","level":57,"runesRequired":[{"id":389,"qty":10},{"id":398,"qty":1}],"maxHit":21,"spellType":0,"spellTier":4},{"id":17,"name":"Water Surge","media":"assets/media/skills/magic/water_surge.svg","level":61,"runesRequired":[{"id":389,"qty":7},{"id":398,"qty":1},{"id":391,"qty":10}],"runesRequiredAlt":[{"id":824,"qty":7},{"id":398,"qty":1}],"maxHit":22.5,"spellType":1,"spellTier":4},{"id":18,"name":"Earth Surge","media":"assets/media/skills/magic/earth_surge.svg","level":64,"runesRequired":[{"id":389,"qty":7},{"id":398,"qty":1},{"id":392,"qty":10}],"runesRequiredAlt":[{"id":825,"qty":7},{"id":398,"qty":1}],"maxHit":24,"spellType":2,"spellTier":4},{"id":19,"name":"Fire Surge","media":"assets/media/skills/magic/fire_surge.svg","level":68,"runesRequired":[{"id":389,"qty":7},{"id":398,"qty":1},{"id":393,"qty":10}],"runesRequiredAlt":[{"id":827,"qty":7},{"id":398,"qty":1}],"maxHit":25.5,"spellType":3,"spellTier":4},{"id":20,"name":"Nature\'s Call","media":"assets/media/skills/magic/natures_call.svg","level":40,"runesRequired":[{"id":389,"qty":2},{"id":391,"qty":2},{"id":392,"qty":2},{"id":393,"qty":2},{"id":821,"qty":2}],"runesRequiredAlt":[{"id":828,"qty":2},{"id":825,"qty":2},{"id":821,"qty":2}],"maxHit":21,"spellType":4,"spellTier":5,"specialAttack":{"name":"Nature\'s Call","id":131,"description":"Cast a spell that does <damage>. On a hit <hitEffect>.","defaultChance":100,"damage":[{"character":"Attacker","maxRoll":"MaxHit","maxPercent":100,"minRoll":"MinHit","minPercent":100,"roll":true}],"prehitEffects":[],"onhitEffects":[{"type":"Compound","numEffects":2,"chance":15},{"type":"Stun","turns":1,"chance":100,"flavour":"Stun"},{"turns":2,"type":"Modifier","character":"Target","countsOn":"Target","maxStacks":1,"media":"assets/media/status/slowed.svg","modifiers":{"increasedAttackIntervalPercent":15}}],"cantMiss":false,"attackCount":1,"attackInterval":-1,"lifesteal":0,"useRunesPerProc":true,"usePrayerPointsPerProc":true,"usePotionChargesPerProc":true,"attackTypes":["melee","ranged","magic"]},"requiredItem":1138},{"id":21,"name":"Nature\'s Wrath","media":"assets/media/skills/magic/natures_wrath.svg","level":65,"runesRequired":[{"id":389,"qty":4},{"id":391,"qty":4},{"id":392,"qty":4},{"id":393,"qty":4},{"id":821,"qty":4}],"runesRequiredAlt":[{"id":828,"qty":4},{"id":825,"qty":4},{"id":821,"qty":4}],"maxHit":32,"spellType":4,"spellTier":5,"specialAttack":{"name":"Nature\'s Wrath","id":132,"description":"Cast a spell that does <damage>. On a hit <hitEffect>.","defaultChance":100,"damage":[{"character":"Attacker","maxRoll":"MaxHit","maxPercent":100,"minRoll":"MinHit","minPercent":100,"roll":true}],"prehitEffects":[],"onhitEffects":[{"type":"Compound","numEffects":4,"chance":25},{"type":"Stun","turns":1,"chance":100,"flavour":"Freeze"},{"chance":100,"type":"DOT","subtype":"Burn","damage":[{"character":"Target","roll":false,"maxRoll":"CurrentHP","maxPercent":15}],"procs":10,"interval":250},{"type":"Modifier","modifiers":{"increasedFrostburn":3,"increasedAttackIntervalPercent":10},"turns":2,"character":"Target","countsOn":"Target","maxStacks":1,"media":"assets/media/status/frostburn.svg"},{"type":"Sleep","turns":1,"chance":100}],"cantMiss":false,"attackCount":1,"attackInterval":-1,"lifesteal":0,"useRunesPerProc":true,"usePrayerPointsPerProc":true,"usePotionChargesPerProc":true,"attackTypes":["melee","ranged","magic"]},"requiredItem":1139}]')

MagicData.Curses = mw.text.jsonDecode('[{"name":"Blinding I","id":0,"media":"assets/media/skills/magic/blinding_i.svg","level":10,"runesRequired":[{"id":390,"qty":2},{"id":394,"qty":1}],"enemyModifiers":{"decreasedGlobalAccuracy":5}},{"name":"Soul Split I","id":1,"media":"assets/media/skills/magic/soul_split_i.svg","level":15,"runesRequired":[{"id":390,"qty":1},{"id":394,"qty":1},{"id":395,"qty":1}],"enemyModifiers":{"decreasedMagicEvasion":5}},{"name":"Weakening I","id":2,"media":"assets/media/skills/magic/weakening_i.svg","level":20,"runesRequired":[{"id":390,"qty":3},{"id":394,"qty":1}],"enemyModifiers":{"decreasedMaxHitPercent":5}},{"name":"Anguish I","id":3,"media":"assets/media/skills/magic/anguish_i.svg","level":30,"runesRequired":[{"id":394,"qty":2},{"id":396,"qty":1}],"enemyModifiers":{"increasedDamageTaken":5}},{"name":"Blinding II","id":4,"media":"assets/media/skills/magic/blinding_ii.svg","level":30,"runesRequired":[{"id":390,"qty":3},{"id":394,"qty":1}],"enemyModifiers":{"decreasedGlobalAccuracy":10}},{"name":"Soul Split II","id":5,"media":"assets/media/skills/magic/soul_split_ii.svg","level":35,"runesRequired":[{"id":390,"qty":2},{"id":394,"qty":2},{"id":395,"qty":1}],"enemyModifiers":{"decreasedMagicEvasion":10}},{"name":"Weakening II","id":6,"media":"assets/media/skills/magic/weakening_ii.svg","level":40,"runesRequired":[{"id":390,"qty":3},{"id":394,"qty":1}],"enemyModifiers":{"decreasedMaxHitPercent":10}},{"name":"Confusion","id":7,"media":"assets/media/skills/magic/confusion.svg","level":45,"runesRequired":[{"id":390,"qty":3},{"id":394,"qty":2},{"id":395,"qty":1}],"enemyModifiers":{"increasedConfusion":3}},{"name":"Anguish II","id":8,"media":"assets/media/skills/magic/anguish_ii.svg","level":50,"runesRequired":[{"id":394,"qty":3},{"id":396,"qty":2}],"enemyModifiers":{"increasedDamageTaken":10}},{"name":"Blinding III","id":9,"media":"assets/media/skills/magic/blinding_iii.svg","level":50,"runesRequired":[{"id":390,"qty":4},{"id":394,"qty":2},{"id":822,"qty":2}],"enemyModifiers":{"decreasedGlobalAccuracy":15}},{"name":"Soul Split III","id":10,"media":"assets/media/skills/magic/soul_split_iii.svg","level":55,"runesRequired":[{"id":390,"qty":3},{"id":394,"qty":3},{"id":395,"qty":2},{"id":822,"qty":1}],"enemyModifiers":{"decreasedMagicEvasion":15}},{"name":"Weakening III","id":11,"media":"assets/media/skills/magic/weakening_iii.svg","level":60,"runesRequired":[{"id":390,"qty":3},{"id":394,"qty":1},{"id":822,"qty":2}],"enemyModifiers":{"decreasedMaxHitPercent":15}},{"name":"Anguish III","id":12,"media":"assets/media/skills/magic/anguish_iii.svg","level":70,"runesRequired":[{"id":394,"qty":4},{"id":396,"qty":3},{"id":822,"qty":2}],"enemyModifiers":{"increasedDamageTaken":15}},{"name":"Decay","id":13,"media":"assets/media/skills/magic/decay.svg","level":80,"runesRequired":[{"id":822,"qty":2},{"id":396,"qty":1},{"id":397,"qty":3}],"enemyModifiers":{"increasedDecay":2,"decreasedGlobalEvasion":10}}]')

MagicData.Auroras = mw.text.jsonDecode('[{"id":0,"name":"Surge I","media":"assets/media/skills/magic/surge_i.svg","level":15,"runesRequired":[{"id":389,"qty":3},{"id":820,"qty":1}],"requiredItem":-1,"modifiers":{"decreasedAttackInterval":100,"increasedRangedEvasion":5}},{"id":1,"name":"Fury I","media":"assets/media/skills/magic/fury_i.svg","level":25,"runesRequired":[{"id":391,"qty":3},{"id":820,"qty":1}],"requiredItem":-1,"modifiers":{"increasedMaxHitFlat":2.5,"increasedMagicEvasion":5}},{"id":2,"name":"Fervor I","media":"assets/media/skills/magic/fervor_i.svg","level":35,"runesRequired":[{"id":392,"qty":3},{"id":820,"qty":1}],"requiredItem":-1,"modifiers":{"increasedLifesteal":5,"increasedMeleeEvasion":5}},{"id":3,"name":"Surge II","media":"assets/media/skills/magic/surge_ii.svg","level":40,"runesRequired":[{"id":389,"qty":4},{"id":820,"qty":2}],"requiredItem":-1,"modifiers":{"decreasedAttackInterval":200,"increasedRangedEvasion":10}},{"id":4,"name":"Charged I","media":"assets/media/skills/magic/charged_i.svg","level":45,"runesRequired":[{"id":395,"qty":2},{"id":396,"qty":2},{"id":820,"qty":1}],"requiredItem":-1,"modifiers":{"increasedFlatMinHit":1}},{"id":5,"name":"Fury II","media":"assets/media/skills/magic/fury_ii.svg","level":50,"runesRequired":[{"id":391,"qty":4},{"id":820,"qty":2}],"requiredItem":-1,"modifiers":{"increasedMaxHitFlat":5,"increasedMagicEvasion":10}},{"id":6,"name":"Fervor II","media":"assets/media/skills/magic/fervor_ii.svg","level":60,"runesRequired":[{"id":392,"qty":4},{"id":820,"qty":2}],"requiredItem":-1,"modifiers":{"increasedLifesteal":10,"increasedMeleeEvasion":10}},{"id":7,"name":"Surge III","media":"assets/media/skills/magic/surge_iii.svg","level":65,"runesRequired":[{"id":389,"qty":5},{"id":820,"qty":3}],"requiredItem":493,"modifiers":{"decreasedAttackInterval":300,"increasedRangedEvasion":15}},{"id":8,"name":"Charged II","media":"assets/media/skills/magic/charged_ii.svg","level":70,"runesRequired":[{"id":395,"qty":3},{"id":396,"qty":3},{"id":820,"qty":2}],"requiredItem":-1,"modifiers":{"increasedFlatMinHit":2}},{"id":9,"name":"Fury III","media":"assets/media/skills/magic/fury_iii.svg","level":75,"runesRequired":[{"id":391,"qty":5},{"id":820,"qty":3}],"requiredItem":493,"modifiers":{"increasedMaxHitFlat":7.5,"increasedMagicEvasion":15}},{"id":10,"name":"Fervor III","media":"assets/media/skills/magic/fervor_iii.svg","level":85,"runesRequired":[{"id":392,"qty":5},{"id":820,"qty":3}],"requiredItem":493,"modifiers":{"increasedLifesteal":15,"increasedMeleeEvasion":15}},{"id":11,"name":"Charged III","media":"assets/media/skills/magic/charged_iii.svg","level":95,"runesRequired":[{"id":395,"qty":4},{"id":396,"qty":4},{"id":820,"qty":3}],"requiredItem":493,"modifiers":{"increasedFlatMinHit":4}}]')

MagicData.Ancient = mw.text.jsonDecode('[{"id":0,"name":"Slicing Winds","media":"assets/media/skills/magic/slicing_winds.svg","level":70,"specialAttack":{"name":"Slicing Winds","id":15,"description":"Attack <count> times for <damage> damage each. If your Accuracy Rating is higher than 20k then this attack <canMiss>.","defaultChance":100,"damage":[{"character":"Attacker","maxRoll":"Fixed","maxPercent":17.5,"roll":false}],"prehitEffects":[],"onhitEffects":[],"cantMiss":true,"minAccuracy":20000,"attackCount":3,"attackInterval":300,"lifesteal":0,"useRunesPerProc":false,"usePrayerPointsPerProc":true,"usePotionChargesPerProc":true,"attackTypes":["melee","ranged","magic"]},"runesRequired":[{"id":389,"qty":20},{"id":398,"qty":5}],"requiredDungeonCompletion":[5,100],"description":"Attack 3 times for 175 damage each. If your Accuracy Rating is higher than 20k then this attack can\'t miss."},{"id":1,"name":"Icicle Volley","media":"assets/media/skills/magic/icicle_volley.svg","level":74,"specialAttack":{"name":"Icicle Volley","id":16,"description":"Attack <count> times for <damage> damage each (<CanMiss>). On a hit, <hitEffect>.","defaultChance":100,"damage":[{"character":"Attacker","maxRoll":"Fixed","maxPercent":17,"roll":false}],"prehitEffects":[],"onhitEffects":[{"turns":3,"type":"Modifier","character":"Target","countsOn":"Target","maxStacks":1,"media":"assets/media/status/slowed.svg","modifiers":{"increasedAttackIntervalPercent":20}}],"cantMiss":false,"attackCount":5,"attackInterval":200,"lifesteal":0,"useRunesPerProc":false,"usePrayerPointsPerProc":true,"usePotionChargesPerProc":true,"attackTypes":["melee","ranged","magic"]},"runesRequired":[{"id":391,"qty":20},{"id":398,"qty":5}],"requiredDungeonCompletion":[5,100],"description":"Attack 5 times for 170 damage each (Can miss). On a hit, gives the enemy +20% Attack Interval for 3 of the enemy\'s turns."},{"id":2,"name":"Ignite","media":"assets/media/skills/magic/ignite.svg","level":82,"specialAttack":{"name":"Ignite","id":17,"description":"Attack once dealing <damage> damage (<CanMiss>). On a hit, <hitEffect>.","defaultChance":100,"damage":[{"character":"Attacker","maxRoll":"Fixed","maxPercent":68,"roll":false}],"prehitEffects":[],"onhitEffects":[{"chance":10,"type":"DOT","subtype":"Burn","damage":[{"character":"Target","roll":false,"maxRoll":"CurrentHP","maxPercent":15}],"procs":10,"interval":250}],"cantMiss":false,"attackCount":1,"attackInterval":-1,"lifesteal":0,"useRunesPerProc":false,"usePrayerPointsPerProc":true,"usePotionChargesPerProc":true,"attackTypes":["melee","ranged","magic"]},"runesRequired":[{"id":393,"qty":20},{"id":398,"qty":5}],"requiredDungeonCompletion":[5,100],"description":"Attack once dealing 680 damage (Can miss). On a hit, has a 10% chance to inflict Burn that deals 15% of the enemy\'s current hitpoints as damage over 2.5s."},{"id":3,"name":"Gust","media":"assets/media/skills/magic/gust.svg","level":86,"specialAttack":{"name":"Gust","id":18,"description":"Attack <count> times dealing <damage> damage each. <HitEffect> on a hit. If your Accuracy Rating is higher than 20K then this attack <canMiss>.","defaultChance":100,"damage":[{"character":"Attacker","maxRoll":"Fixed","maxPercent":20,"roll":false}],"prehitEffects":[],"onhitEffects":[{"type":"Stun","turns":1,"chance":10,"flavour":"Stun"}],"cantMiss":true,"minAccuracy":20000,"attackCount":4,"attackInterval":500,"lifesteal":0,"useRunesPerProc":false,"usePrayerPointsPerProc":true,"usePotionChargesPerProc":true,"attackTypes":["melee","ranged","magic"]},"runesRequired":[{"id":389,"qty":25},{"id":398,"qty":5},{"id":822,"qty":5}],"requiredDungeonCompletion":[8,100],"description":"Attack 4 times dealing 200 damage each. Has a 10% chance to apply stun for 1 turn on a hit. If your Accuracy Rating is higher than 20K then this attack can\'t miss."},{"id":4,"name":"Frostbite","media":"assets/media/skills/magic/frostbite.svg","level":90,"specialAttack":{"name":"Frostbite","id":19,"description":"Attack once dealing <damage> damage (<CanMiss>). <HitEffect> on a hit.","defaultChance":100,"damage":[{"character":"Attacker","maxRoll":"Fixed","maxPercent":75,"roll":false}],"prehitEffects":[],"onhitEffects":[{"type":"Stun","turns":2,"chance":30,"flavour":"Freeze"}],"cantMiss":false,"attackCount":1,"attackInterval":-1,"lifesteal":0,"useRunesPerProc":false,"usePrayerPointsPerProc":true,"usePotionChargesPerProc":true,"attackTypes":["melee","ranged","magic"]},"runesRequired":[{"id":391,"qty":25},{"id":398,"qty":6},{"id":822,"qty":6}],"requiredDungeonCompletion":[9,100],"description":"Attack once dealing 750 damage (Can miss). Has a 30% chance to apply freeze for 2 turns on a hit."},{"id":5,"name":"Quake","media":"assets/media/skills/magic/quake.svg","level":94,"specialAttack":{"name":"Quake","id":20,"description":"Attack <count> times dealing <damage> damage each (<CanMiss>). On a hit, <hitEffect>.","defaultChance":100,"damage":[{"character":"Attacker","maxRoll":"Fixed","maxPercent":54,"roll":false}],"prehitEffects":[],"onhitEffects":[{"turns":1,"type":"Modifier","character":"Target","countsOn":"Target","maxStacks":1,"media":"assets/media/status/slowed.svg","modifiers":{"increasedAttackIntervalPercent":50}}],"cantMiss":false,"attackCount":2,"attackInterval":400,"lifesteal":0,"useRunesPerProc":false,"usePrayerPointsPerProc":true,"usePotionChargesPerProc":true,"attackTypes":["melee","ranged","magic"]},"runesRequired":[{"id":392,"qty":25},{"id":398,"qty":7},{"id":822,"qty":7}],"requiredDungeonCompletion":[10,100],"description":"Attack 2 times dealing 540 damage each (Can miss). On a hit, gives the enemy +50% Attack Interval for 1 of the enemy\'s turn."},{"id":6,"name":"Incinerate","media":"assets/media/skills/magic/incinerate.svg","level":98,"specialAttack":{"name":"Incinerate","id":21,"description":"Attack <count> times dealing <damage> damage each. If your Accuracy Rating is higher than 20K then this attack <canMiss>.","defaultChance":100,"damage":[{"character":"Attacker","maxRoll":"Fixed","maxPercent":6.3,"roll":false}],"prehitEffects":[],"onhitEffects":[{"chance":100,"type":"DOT","subtype":"Burn","damage":[{"character":"Target","roll":false,"maxRoll":"CurrentHP","maxPercent":15}],"procs":10,"interval":250}],"cantMiss":true,"minAccuracy":20000,"attackCount":14,"attackInterval":150,"lifesteal":0,"useRunesPerProc":false,"usePrayerPointsPerProc":true,"usePotionChargesPerProc":true,"attackTypes":["melee","ranged","magic"]},"runesRequired":[{"id":393,"qty":30},{"id":398,"qty":10},{"id":822,"qty":10}],"requiredDungeonCompletion":[11,100],"description":"Attack 14 times dealing 63 damage each. If your Accuracy Rating is higher than 20K then this attack can\'t miss."}]')

MagicData.AltMagic = mw.text.jsonDecode('[{"id":0,"name":"Just Learning","media":"assets/media/skills/magic/magic.svg","description":"Convert selected item into 1 Rune Essence.","level":1,"produces":388,"consumes":0,"productionRatio":1,"baseExperience":5,"runesRequired":[{"id":821,"qty":1},{"id":389,"qty":1}],"runesRequiredAlt":[{"id":821,"qty":1},{"id":389,"qty":1}]},{"id":1,"name":"Superheat I","media":"assets/media/skills/magic/superheat_i.svg","description":"Create 1 x bars using 1 x required ores.","level":5,"produces":-2,"consumes":2,"productionRatio":1,"baseExperience":8,"runesRequired":[{"id":821,"qty":1},{"id":392,"qty":2},{"id":393,"qty":2}],"runesRequiredAlt":[{"id":821,"qty":1},{"id":829,"qty":2}]},{"id":2,"name":"Item Alchemy I","media":"assets/media/skills/magic/item_alchemy.svg","description":"Convert selected item into GP worth 40% of the item\'s base sale price.","level":10,"produces":-1,"consumes":0,"productionRatio":0.4,"baseExperience":10,"runesRequired":[{"id":821,"qty":1},{"id":393,"qty":3}],"runesRequiredAlt":[{"id":821,"qty":1},{"id":393,"qty":3}]},{"id":3,"name":"Bone Offering","media":"assets/media/bank/bones.png","description":"Creates 3 x Bones.","level":18,"produces":439,"consumes":4,"productionRatio":3,"baseExperience":12,"runesRequired":[{"id":821,"qty":1},{"id":392,"qty":1}],"runesRequiredAlt":[{"id":821,"qty":1},{"id":392,"qty":1}]},{"id":4,"name":"Superheat II","media":"assets/media/skills/magic/superheat_ii.svg","description":"Create 2 x bars using 1 x required ores.","level":25,"produces":-2,"consumes":2,"productionRatio":2,"baseExperience":15,"runesRequired":[{"id":821,"qty":1},{"id":392,"qty":3},{"id":393,"qty":3}],"runesRequiredAlt":[{"id":821,"qty":1},{"id":829,"qty":3}]},{"id":5,"name":"Item Alchemy II","media":"assets/media/skills/magic/item_alchemy.svg","description":"Convert selected item into GP worth 100% of the item\'s base sale price.","level":35,"produces":-1,"consumes":0,"productionRatio":1,"baseExperience":18,"runesRequired":[{"id":821,"qty":1},{"id":393,"qty":4}],"runesRequiredAlt":[{"id":821,"qty":1},{"id":393,"qty":4}]},{"id":6,"name":"Rags to Riches I","media":"assets/media/skills/magic/rags_to_riches.svg","description":"Convert selected Junk item, obtained from Fishing, into a random Gem.","level":48,"produces":-3,"consumes":1,"productionRatio":1,"baseExperience":21,"runesRequired":[{"id":821,"qty":1},{"id":391,"qty":2},{"id":392,"qty":2}],"runesRequiredAlt":[{"id":821,"qty":1},{"id":826,"qty":2}]},{"id":7,"name":"Blessed Offering","media":"assets/media/bank/holy_dust.png","description":"Creates 3 x Holy Dust.","level":56,"produces":500,"consumes":4,"productionRatio":3,"baseExperience":24,"runesRequired":[{"id":821,"qty":2},{"id":392,"qty":1}],"runesRequiredAlt":[{"id":821,"qty":2},{"id":392,"qty":1}]},{"id":8,"name":"Superheat III","media":"assets/media/skills/magic/superheat_iii.svg","description":"Create 3 x bars using 1 x required ores.","level":64,"produces":-2,"consumes":2,"productionRatio":3,"baseExperience":28,"runesRequired":[{"id":821,"qty":1},{"id":392,"qty":4},{"id":393,"qty":4},{"id":823,"qty":1}],"runesRequiredAlt":[{"id":821,"qty":1},{"id":829,"qty":4},{"id":823,"qty":1}]},{"id":9,"name":"Rags to Riches II","media":"assets/media/skills/magic/rags_to_riches.svg","description":"Convert Coal Ore into a random Gem.","level":70,"produces":-3,"consumes":5,"productionRatio":1,"baseExperience":32,"runesRequired":[{"id":821,"qty":2},{"id":391,"qty":4},{"id":392,"qty":4},{"id":823,"qty":2}],"runesRequiredAlt":[{"id":821,"qty":2},{"id":826,"qty":4},{"id":823,"qty":2}]},{"id":10,"name":"Item Alchemy III","media":"assets/media/skills/magic/item_alchemy.svg","description":"Convert selected item into GP worth 160% of the item\'s base sale price.","level":76,"produces":-1,"consumes":0,"productionRatio":1.6,"baseExperience":39,"runesRequired":[{"id":821,"qty":1},{"id":393,"qty":5},{"id":823,"qty":2}],"runesRequiredAlt":[{"id":821,"qty":1},{"id":393,"qty":5},{"id":823,"qty":2}]},{"id":11,"name":"Superheat IV","media":"assets/media/skills/magic/superheat_iv.svg","description":"Create 3 x bars using 1 x required ores, ignoring all Coal Requirements.","level":95,"produces":-2,"consumes":3,"productionRatio":3,"baseExperience":50,"runesRequired":[{"id":821,"qty":2},{"id":392,"qty":7},{"id":393,"qty":7},{"id":823,"qty":3}],"runesRequiredAlt":[{"id":821,"qty":2},{"id":829,"qty":7},{"id":823,"qty":3}]}]')

return MagicData