Difference between revisions of "Module:Magic/data"

From Melvor Idle
(Update for v0.20)
(I think If ixed ancient spells not having descriptions?)
(One intermediate revision by the same user not shown)
Line 1: Line 1:
--Version: v0.20 (?908)
+
--Version: v0.21 (?1105)
  
 
local MagicData = {}
 
local MagicData = {}
Line 23: Line 23:
 
fullTxt += "\r\n\r\n" + txt
 
fullTxt += "\r\n\r\n" + txt
  
txt = JSON.stringify(ANCIENT)
+
//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, "\\\'")
 
txt = txt.replace(/\\\"/g, "\\\\\"")
 
txt = txt.replace(/\\\"/g, "\\\\\"")
Line 41: Line 47:
 
MagicData.Spells = mw.text.jsonDecode('[{"name":"Wind Strike","media":"assets/media/skills/magic/wind_strike.svg","magicLevelRequired":1,"runesRequired":[{"id":389,"qty":1},{"id":390,"qty":1}],"maxHit":2,"spellType":0},{"name":"Water Strike","media":"assets/media/skills/magic/water_strike.svg","magicLevelRequired":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,"spellType":1},{"name":"Earth Strike","media":"assets/media/skills/magic/earth_strike.svg","magicLevelRequired":6,"runesRequired":[{"id":389,"qty":1},{"id":390,"qty":1},{"id":392,"qty":1}],"runesRequiredAlt":[{"id":825,"qty":1},{"id":390,"qty":1}],"maxHit":6,"spellType":2},{"name":"Fire Strike","media":"assets/media/skills/magic/fire_strike.svg","magicLevelRequired":10,"runesRequired":[{"id":389,"qty":1},{"id":390,"qty":1},{"id":393,"qty":1}],"runesRequiredAlt":[{"id":827,"qty":1},{"id":390,"qty":1}],"maxHit":8,"spellType":3},{"name":"Wind Bolt","media":"assets/media/skills/magic/wind_bolt.svg","magicLevelRequired":14,"runesRequired":[{"id":389,"qty":2},{"id":395,"qty":1}],"maxHit":9,"spellType":0},{"name":"Water Bolt","media":"assets/media/skills/magic/water_bolt.svg","magicLevelRequired":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,"spellType":1},{"name":"Earth Bolt","media":"assets/media/skills/magic/earth_bolt.svg","magicLevelRequired":19,"runesRequired":[{"id":389,"qty":2},{"id":395,"qty":1},{"id":392,"qty":3}],"runesRequiredAlt":[{"id":825,"qty":2},{"id":395,"qty":1}],"maxHit":11,"spellType":2},{"name":"Fire Bolt","media":"assets/media/skills/magic/fire_bolt.svg","magicLevelRequired":23,"runesRequired":[{"id":389,"qty":3},{"id":395,"qty":1},{"id":393,"qty":4}],"runesRequiredAlt":[{"id":827,"qty":3},{"id":395,"qty":1}],"maxHit":12,"spellType":3},{"name":"Wind Blast","media":"assets/media/skills/magic/wind_blast.svg","magicLevelRequired":28,"runesRequired":[{"id":389,"qty":3},{"id":396,"qty":1}],"maxHit":13,"spellType":0},{"name":"Water Blast","media":"assets/media/skills/magic/water_blast.svg","magicLevelRequired":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,"spellType":1},{"name":"Earth Blast","media":"assets/media/skills/magic/earth_blast.svg","magicLevelRequired":33,"runesRequired":[{"id":389,"qty":3},{"id":396,"qty":1},{"id":392,"qty":4}],"runesRequiredAlt":[{"id":825,"qty":3},{"id":396,"qty":1}],"maxHit":15,"spellType":2},{"name":"Fire Blast","media":"assets/media/skills/magic/fire_blast.svg","magicLevelRequired":37,"runesRequired":[{"id":389,"qty":4},{"id":396,"qty":1},{"id":393,"qty":5}],"runesRequiredAlt":[{"id":827,"qty":4},{"id":396,"qty":1}],"maxHit":16,"spellType":3},{"name":"Wind Wave","media":"assets/media/skills/magic/wind_wave.svg","magicLevelRequired":43,"runesRequired":[{"id":389,"qty":5},{"id":397,"qty":1}],"maxHit":17,"spellType":0},{"name":"Water Wave","media":"assets/media/skills/magic/water_wave.svg","magicLevelRequired":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,"spellType":1},{"name":"Earth Wave","media":"assets/media/skills/magic/earth_wave.svg","magicLevelRequired":48,"runesRequired":[{"id":389,"qty":5},{"id":397,"qty":1},{"id":392,"qty":7}],"runesRequiredAlt":[{"id":825,"qty":5},{"id":397,"qty":1}],"maxHit":19,"spellType":2},{"name":"Fire Wave","media":"assets/media/skills/magic/fire_wave.svg","magicLevelRequired":52,"runesRequired":[{"id":389,"qty":5},{"id":397,"qty":1},{"id":393,"qty":7}],"runesRequiredAlt":[{"id":827,"qty":5},{"id":397,"qty":1}],"maxHit":20,"spellType":3},{"name":"Wind Surge","media":"assets/media/skills/magic/wind_surge.svg","magicLevelRequired":57,"runesRequired":[{"id":389,"qty":5},{"id":398,"qty":1}],"maxHit":21,"spellType":0},{"name":"Water Surge","media":"assets/media/skills/magic/water_surge.svg","magicLevelRequired":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,"spellType":1},{"name":"Earth Surge","media":"assets/media/skills/magic/earth_surge.svg","magicLevelRequired":64,"runesRequired":[{"id":389,"qty":7},{"id":398,"qty":1},{"id":392,"qty":10}],"runesRequiredAlt":[{"id":825,"qty":7},{"id":398,"qty":1}],"maxHit":23,"spellType":2},{"name":"Fire Surge","media":"assets/media/skills/magic/fire_surge.svg","magicLevelRequired":68,"runesRequired":[{"id":389,"qty":7},{"id":398,"qty":1},{"id":393,"qty":10}],"runesRequiredAlt":[{"id":827,"qty":7},{"id":398,"qty":1}],"maxHit":24,"spellType":3}]')
 
MagicData.Spells = mw.text.jsonDecode('[{"name":"Wind Strike","media":"assets/media/skills/magic/wind_strike.svg","magicLevelRequired":1,"runesRequired":[{"id":389,"qty":1},{"id":390,"qty":1}],"maxHit":2,"spellType":0},{"name":"Water Strike","media":"assets/media/skills/magic/water_strike.svg","magicLevelRequired":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,"spellType":1},{"name":"Earth Strike","media":"assets/media/skills/magic/earth_strike.svg","magicLevelRequired":6,"runesRequired":[{"id":389,"qty":1},{"id":390,"qty":1},{"id":392,"qty":1}],"runesRequiredAlt":[{"id":825,"qty":1},{"id":390,"qty":1}],"maxHit":6,"spellType":2},{"name":"Fire Strike","media":"assets/media/skills/magic/fire_strike.svg","magicLevelRequired":10,"runesRequired":[{"id":389,"qty":1},{"id":390,"qty":1},{"id":393,"qty":1}],"runesRequiredAlt":[{"id":827,"qty":1},{"id":390,"qty":1}],"maxHit":8,"spellType":3},{"name":"Wind Bolt","media":"assets/media/skills/magic/wind_bolt.svg","magicLevelRequired":14,"runesRequired":[{"id":389,"qty":2},{"id":395,"qty":1}],"maxHit":9,"spellType":0},{"name":"Water Bolt","media":"assets/media/skills/magic/water_bolt.svg","magicLevelRequired":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,"spellType":1},{"name":"Earth Bolt","media":"assets/media/skills/magic/earth_bolt.svg","magicLevelRequired":19,"runesRequired":[{"id":389,"qty":2},{"id":395,"qty":1},{"id":392,"qty":3}],"runesRequiredAlt":[{"id":825,"qty":2},{"id":395,"qty":1}],"maxHit":11,"spellType":2},{"name":"Fire Bolt","media":"assets/media/skills/magic/fire_bolt.svg","magicLevelRequired":23,"runesRequired":[{"id":389,"qty":3},{"id":395,"qty":1},{"id":393,"qty":4}],"runesRequiredAlt":[{"id":827,"qty":3},{"id":395,"qty":1}],"maxHit":12,"spellType":3},{"name":"Wind Blast","media":"assets/media/skills/magic/wind_blast.svg","magicLevelRequired":28,"runesRequired":[{"id":389,"qty":3},{"id":396,"qty":1}],"maxHit":13,"spellType":0},{"name":"Water Blast","media":"assets/media/skills/magic/water_blast.svg","magicLevelRequired":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,"spellType":1},{"name":"Earth Blast","media":"assets/media/skills/magic/earth_blast.svg","magicLevelRequired":33,"runesRequired":[{"id":389,"qty":3},{"id":396,"qty":1},{"id":392,"qty":4}],"runesRequiredAlt":[{"id":825,"qty":3},{"id":396,"qty":1}],"maxHit":15,"spellType":2},{"name":"Fire Blast","media":"assets/media/skills/magic/fire_blast.svg","magicLevelRequired":37,"runesRequired":[{"id":389,"qty":4},{"id":396,"qty":1},{"id":393,"qty":5}],"runesRequiredAlt":[{"id":827,"qty":4},{"id":396,"qty":1}],"maxHit":16,"spellType":3},{"name":"Wind Wave","media":"assets/media/skills/magic/wind_wave.svg","magicLevelRequired":43,"runesRequired":[{"id":389,"qty":5},{"id":397,"qty":1}],"maxHit":17,"spellType":0},{"name":"Water Wave","media":"assets/media/skills/magic/water_wave.svg","magicLevelRequired":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,"spellType":1},{"name":"Earth Wave","media":"assets/media/skills/magic/earth_wave.svg","magicLevelRequired":48,"runesRequired":[{"id":389,"qty":5},{"id":397,"qty":1},{"id":392,"qty":7}],"runesRequiredAlt":[{"id":825,"qty":5},{"id":397,"qty":1}],"maxHit":19,"spellType":2},{"name":"Fire Wave","media":"assets/media/skills/magic/fire_wave.svg","magicLevelRequired":52,"runesRequired":[{"id":389,"qty":5},{"id":397,"qty":1},{"id":393,"qty":7}],"runesRequiredAlt":[{"id":827,"qty":5},{"id":397,"qty":1}],"maxHit":20,"spellType":3},{"name":"Wind Surge","media":"assets/media/skills/magic/wind_surge.svg","magicLevelRequired":57,"runesRequired":[{"id":389,"qty":5},{"id":398,"qty":1}],"maxHit":21,"spellType":0},{"name":"Water Surge","media":"assets/media/skills/magic/water_surge.svg","magicLevelRequired":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,"spellType":1},{"name":"Earth Surge","media":"assets/media/skills/magic/earth_surge.svg","magicLevelRequired":64,"runesRequired":[{"id":389,"qty":7},{"id":398,"qty":1},{"id":392,"qty":10}],"runesRequiredAlt":[{"id":825,"qty":7},{"id":398,"qty":1}],"maxHit":23,"spellType":2},{"name":"Fire Surge","media":"assets/media/skills/magic/fire_surge.svg","magicLevelRequired":68,"runesRequired":[{"id":389,"qty":7},{"id":398,"qty":1},{"id":393,"qty":10}],"runesRequiredAlt":[{"id":827,"qty":7},{"id":398,"qty":1}],"maxHit":24,"spellType":3}]')
  
MagicData.Curses = mw.text.jsonDecode('[{"name":"Blinding I","media":"assets/media/skills/magic/blinding_i.svg","description":"Lower Enemy Accuracy by 5%<br>Lasts 3 Attack Turns","magicLevelRequired":10,"chance":10,"effectValue":5,"runesRequired":[{"id":390,"qty":2},{"id":394,"qty":1}]},{"name":"Soul Split I","media":"assets/media/skills/magic/soul_split_i.svg","description":"Lower Enemy Magic Evasion Rating by 5%<br>Lasts 3 Attack Turns","magicLevelRequired":15,"chance":10,"effectValue":5,"runesRequired":[{"id":390,"qty":1},{"id":394,"qty":1},{"id":395,"qty":1}]},{"name":"Weakening I","media":"assets/media/skills/magic/weakening_i.svg","description":"Lowers Enemy max hit by 5% (Does not affect Special Attacks)<br>Lasts 3 Attack Turns","magicLevelRequired":20,"chance":10,"effectValue":5,"runesRequired":[{"id":390,"qty":3},{"id":394,"qty":1}]},{"name":"Anguish I","media":"assets/media/skills/magic/anguish_i.svg","description":"Enemy takes 5% more damage.<br>Lasts 3 Attack Turns","magicLevelRequired":30,"chance":10,"effectValue":5,"runesRequired":[{"id":394,"qty":2},{"id":396,"qty":1}]},{"name":"Blinding II","media":"assets/media/skills/magic/blinding_ii.svg","description":"Lower Enemy Accuracy by 10%<br>Lasts 3 Attack Turns","magicLevelRequired":30,"chance":15,"effectValue":10,"runesRequired":[{"id":390,"qty":3},{"id":394,"qty":1}]},{"name":"Soul Split II","media":"assets/media/skills/magic/soul_split_ii.svg","description":"Lower Enemy Magic Evasion Rating by 10%<br>Lasts 3 Attack Turns","magicLevelRequired":35,"chance":15,"effectValue":10,"runesRequired":[{"id":390,"qty":2},{"id":394,"qty":2},{"id":395,"qty":1}]},{"name":"Weakening II","media":"assets/media/skills/magic/weakening_ii.svg","description":"Lowers Enemy max hit by 10% (Does not affect Special Attacks)<br>Lasts 3 Attack Turns","magicLevelRequired":40,"chance":15,"effectValue":10,"runesRequired":[{"id":390,"qty":3},{"id":394,"qty":1}]},{"name":"Confusion","media":"assets/media/skills/magic/confusion.svg","description":"When an Enemy successfully hits you, Enemy takes damage equal to 3% of its remaining HP (Once per Attack Turn.).<br>Lasts 3 Attack Turns","magicLevelRequired":45,"chance":10,"effectValue":3,"runesRequired":[{"id":390,"qty":3},{"id":394,"qty":2},{"id":395,"qty":1}]},{"name":"Anguish II","media":"assets/media/skills/magic/anguish_ii.svg","description":"Enemy takes 10% more damage.<br>Lasts 3 Attack Turns","magicLevelRequired":50,"chance":15,"effectValue":10,"runesRequired":[{"id":394,"qty":3},{"id":396,"qty":2}]},{"name":"Blinding III","media":"assets/media/skills/magic/blinding_iii.svg","description":"Lower Enemy Accuracy by 15%<br>Lasts 3 Attack Turns","magicLevelRequired":50,"chance":25,"effectValue":15,"runesRequired":[{"id":390,"qty":4},{"id":394,"qty":2},{"id":822,"qty":2}]},{"name":"Soul Split III","media":"assets/media/skills/magic/soul_split_iii.svg","description":"Lower Enemy Magic Evasion Rating by 15%<br>Lasts 3 Attack Turns","magicLevelRequired":55,"chance":25,"effectValue":15,"runesRequired":[{"id":390,"qty":3},{"id":394,"qty":3},{"id":395,"qty":2},{"id":822,"qty":1}]},{"name":"Weakening III","media":"assets/media/skills/magic/weakening_iii.svg","description":"Lowers Enemy max hit by 15% (Does not affect Special Attacks)<br>Lasts 3 Attack Turns","magicLevelRequired":60,"chance":25,"effectValue":15,"runesRequired":[{"id":390,"qty":3},{"id":394,"qty":1},{"id":822,"qty":2}]},{"name":"Anguish III","media":"assets/media/skills/magic/anguish_iii.svg","description":"Enemy takes 15% more damage.<br>Lasts 3 Attack Turns","magicLevelRequired":70,"chance":25,"effectValue":15,"runesRequired":[{"id":394,"qty":4},{"id":396,"qty":3},{"id":822,"qty":2}]},{"name":"Decay","media":"assets/media/skills/magic/decay.svg","description":"Enemy takes damage when they successfully attack the Player equal to 2% of their Max HP (Once per Attack Turn.). They also lose a total of 10% Evasion Rating<br>Lasts 3 Attack Turns","magicLevelRequired":80,"chance":10,"effectValue":[2,10],"runesRequired":[{"id":822,"qty":2},{"id":396,"qty":1},{"id":397,"qty":3}]}]')
+
MagicData.Curses = mw.text.jsonDecode('[{"name":"Blinding I","id":0,"media":"assets/media/skills/magic/blinding_i.svg","description":"Lower Enemy Accuracy by 5%<br>Lasts 3 Attack Turns","magicLevelRequired":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","description":"Lower Enemy Magic Evasion Rating by 5%<br>Lasts 3 Attack Turns","magicLevelRequired":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","description":"Lowers Enemy max hit by 5% (Does not affect Special Attacks)<br>Lasts 3 Attack Turns","magicLevelRequired":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","description":"Enemy takes 5% more damage.<br>Lasts 3 Attack Turns","magicLevelRequired":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","description":"Lower Enemy Accuracy by 10%<br>Lasts 3 Attack Turns","magicLevelRequired":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","description":"Lower Enemy Magic Evasion Rating by 10%<br>Lasts 3 Attack Turns","magicLevelRequired":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","description":"Lowers Enemy max hit by 10% (Does not affect Special Attacks)<br>Lasts 3 Attack Turns","magicLevelRequired":40,"runesRequired":[{"id":390,"qty":3},{"id":394,"qty":1}],"enemyModifiers":{"decreasedMaxHitPercent":10}},{"name":"Confusion","id":7,"media":"assets/media/skills/magic/confusion.svg","description":"When an Enemy successfully hits you, Enemy takes damage equal to 3% of its remaining HP (Once per Attack Turn.).<br>Lasts 3 Attack Turns","magicLevelRequired":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","description":"Enemy takes 10% more damage.<br>Lasts 3 Attack Turns","magicLevelRequired":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","description":"Lower Enemy Accuracy by 15%<br>Lasts 3 Attack Turns","magicLevelRequired":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","description":"Lower Enemy Magic Evasion Rating by 15%<br>Lasts 3 Attack Turns","magicLevelRequired":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","description":"Lowers Enemy max hit by 15% (Does not affect Special Attacks)<br>Lasts 3 Attack Turns","magicLevelRequired":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","description":"Enemy takes 15% more damage.<br>Lasts 3 Attack Turns","magicLevelRequired":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","description":"Enemy takes damage when they successfully attack the Player equal to 2% of their Max HP (Once per Attack Turn.). They also lose a total of 10% Evasion Rating<br>Lasts 3 Attack Turns","magicLevelRequired":80,"runesRequired":[{"id":822,"qty":2},{"id":396,"qty":1},{"id":397,"qty":3}],"enemyModifiers":{"increasedDecay":2,"decreasedGlobalEvasion":10}}]')
  
MagicData.Auroras = mw.text.jsonDecode('[{"name":"Surge I","media":"assets/media/skills/magic/surge_i.svg","description":"Activate Surge I<br>Attack Speed interval reduced by 0.1s. Increases Ranged Evasion by 5%.","magicLevelRequired":15,"effectValue":[100,5],"runesRequired":[{"id":389,"qty":3},{"id":820,"qty":1}],"requiredItem":-1},{"name":"Fury I","media":"assets/media/skills/magic/fury_i.svg","description":"Activate Fury I<br>Increases your Max Hit by 25. Increases Magic Evasion by 5%.","magicLevelRequired":25,"effectValue":[2.5,5],"runesRequired":[{"id":391,"qty":3},{"id":820,"qty":1}],"requiredItem":-1},{"name":"Fervor I","media":"assets/media/skills/magic/fervor_i.svg","description":"Activate Fervor I<br>Your attacks grant 5% Life Steal. Increases Melee Evasion by 5%.","magicLevelRequired":35,"effectValue":[5,5],"runesRequired":[{"id":392,"qty":3},{"id":820,"qty":1}],"requiredItem":-1},{"name":"Surge II","media":"assets/media/skills/magic/surge_ii.svg","description":"Activate Surge II<br>Attack Speed interval reduced by 0.2s. Increases Ranged Evasion by 10%.","magicLevelRequired":40,"effectValue":[200,10],"runesRequired":[{"id":389,"qty":4},{"id":820,"qty":2}],"requiredItem":-1},{"name":"Charged I","media":"assets/media/skills/magic/charged_i.svg","description":"Activate Charged I<br>Increases your Minimum Hit by 10.","magicLevelRequired":45,"effectValue":1,"runesRequired":[{"id":395,"qty":2},{"id":396,"qty":2},{"id":820,"qty":1}],"requiredItem":-1},{"name":"Fury II","media":"assets/media/skills/magic/fury_ii.svg","description":"Activate Fury II<br>Increases your Max Hit by 50. Increases Magic Evasion by 10%.","magicLevelRequired":50,"effectValue":[5,10],"runesRequired":[{"id":391,"qty":4},{"id":820,"qty":2}],"requiredItem":-1},{"name":"Fervor II","media":"assets/media/skills/magic/fervor_ii.svg","description":"Activate Fervor II<br>Your attacks grant 10% Life Steal. Increases Melee Evasion by 10%.","magicLevelRequired":60,"effectValue":[10,10],"runesRequired":[{"id":392,"qty":4},{"id":820,"qty":2}],"requiredItem":-1},{"name":"Surge III","media":"assets/media/skills/magic/surge_iii.svg","description":"Activate Surge III<br>Attack Speed interval reduced by 0.3s. Increases Ranged Evasion by 15%.","magicLevelRequired":65,"effectValue":[300,15],"runesRequired":[{"id":389,"qty":5},{"id":820,"qty":3}],"requiredItem":493},{"name":"Charged II","media":"assets/media/skills/magic/charged_ii.svg","description":"Activate Charged II<br>Increases your Minimum Hit by 20.","magicLevelRequired":70,"effectValue":2,"runesRequired":[{"id":395,"qty":3},{"id":396,"qty":3},{"id":820,"qty":2}],"requiredItem":-1},{"name":"Fury III","media":"assets/media/skills/magic/fury_iii.svg","description":"Activate Fury III<br>Increases your Max Hit by 75. Increases Magic Evasion by 15%.","magicLevelRequired":75,"effectValue":[7.5,15],"runesRequired":[{"id":391,"qty":5},{"id":820,"qty":3}],"requiredItem":493},{"name":"Fervor III","media":"assets/media/skills/magic/fervor_iii.svg","description":"Activate Fervor III<br>Your attacks grant 15% Life Steal. Increases Melee Evasion by 15%.","magicLevelRequired":85,"effectValue":[15,15],"runesRequired":[{"id":392,"qty":5},{"id":820,"qty":3}],"requiredItem":493},{"name":"Charged III","media":"assets/media/skills/magic/charged_iii.svg","description":"Activate Charged III<br>Increases your Minimum Hit by 40.","magicLevelRequired":95,"effectValue":4,"runesRequired":[{"id":395,"qty":4},{"id":396,"qty":4},{"id":820,"qty":3}],"requiredItem":493}]')
+
MagicData.Auroras = mw.text.jsonDecode('[{"name":"Surge I","media":"assets/media/skills/magic/surge_i.svg","magicLevelRequired":15,"runesRequired":[{"id":389,"qty":3},{"id":820,"qty":1}],"requiredItem":-1,"modifiers":{"decreasedAttackInterval":100,"increasedRangedEvasion":5}},{"name":"Fury I","media":"assets/media/skills/magic/fury_i.svg","magicLevelRequired":25,"runesRequired":[{"id":391,"qty":3},{"id":820,"qty":1}],"requiredItem":-1,"modifiers":{"increasedMaxHitFlat":2.5,"increasedMagicEvasion":5}},{"name":"Fervor I","media":"assets/media/skills/magic/fervor_i.svg","magicLevelRequired":35,"runesRequired":[{"id":392,"qty":3},{"id":820,"qty":1}],"requiredItem":-1,"modifiers":{"increasedLifesteal":5,"increasedMeleeEvasion":5}},{"name":"Surge II","media":"assets/media/skills/magic/surge_ii.svg","magicLevelRequired":40,"runesRequired":[{"id":389,"qty":4},{"id":820,"qty":2}],"requiredItem":-1,"modifiers":{"decreasedAttackInterval":200,"increasedRangedEvasion":10}},{"name":"Charged I","media":"assets/media/skills/magic/charged_i.svg","magicLevelRequired":45,"runesRequired":[{"id":395,"qty":2},{"id":396,"qty":2},{"id":820,"qty":1}],"requiredItem":-1,"modifiers":{"increasedFlatMinHit":1}},{"name":"Fury II","media":"assets/media/skills/magic/fury_ii.svg","magicLevelRequired":50,"runesRequired":[{"id":391,"qty":4},{"id":820,"qty":2}],"requiredItem":-1,"modifiers":{"increasedMaxHitFlat":5,"increasedMagicEvasion":10}},{"name":"Fervor II","media":"assets/media/skills/magic/fervor_ii.svg","magicLevelRequired":60,"runesRequired":[{"id":392,"qty":4},{"id":820,"qty":2}],"requiredItem":-1,"modifiers":{"increasedLifesteal":10,"increasedMeleeEvasion":10}},{"name":"Surge III","media":"assets/media/skills/magic/surge_iii.svg","magicLevelRequired":65,"runesRequired":[{"id":389,"qty":5},{"id":820,"qty":3}],"requiredItem":493,"modifiers":{"decreasedAttackInterval":300,"increasedRangedEvasion":15}},{"name":"Charged II","media":"assets/media/skills/magic/charged_ii.svg","magicLevelRequired":70,"runesRequired":[{"id":395,"qty":3},{"id":396,"qty":3},{"id":820,"qty":2}],"requiredItem":-1,"modifiers":{"increasedFlatMinHit":2}},{"name":"Fury III","media":"assets/media/skills/magic/fury_iii.svg","magicLevelRequired":75,"runesRequired":[{"id":391,"qty":5},{"id":820,"qty":3}],"requiredItem":493,"modifiers":{"increasedMaxHitFlat":7.5,"increasedMagicEvasion":15}},{"name":"Fervor III","media":"assets/media/skills/magic/fervor_iii.svg","magicLevelRequired":85,"runesRequired":[{"id":392,"qty":5},{"id":820,"qty":3}],"requiredItem":493,"modifiers":{"increasedLifesteal":15,"increasedMeleeEvasion":15}},{"name":"Charged III","media":"assets/media/skills/magic/charged_iii.svg","magicLevelRequired":95,"runesRequired":[{"id":395,"qty":4},{"id":396,"qty":4},{"id":820,"qty":3}],"requiredItem":493,"modifiers":{"increasedFlatMinHit":4}}]')
  
MagicData.Ancient = mw.text.jsonDecode('[{"name":"Slicing Winds","media":"assets/media/skills/magic/slicing_winds.svg","description":"Attack 3 times for 175 damage each. If your Accuracy Rating is higher than 20K then this attack cannot miss.","magicLevelRequired":70,"specID":14,"maxHit":175,"runesRequired":[{"id":389,"qty":20},{"id":398,"qty":5}],"requiredDungeonCompletion":[5,100]},{"name":"Icicle Volley","media":"assets/media/skills/magic/icicle_volley.svg","description":"Attack 5 times for 170 damage each (Can miss). Chance to slow the enemy by 20% for 3 turns","magicLevelRequired":74,"specID":15,"maxHit":170,"runesRequired":[{"id":391,"qty":20},{"id":398,"qty":5}],"requiredDungeonCompletion":[5,100]},{"name":"Ignite","media":"assets/media/skills/magic/ignite.svg","description":"Attack once dealing 680 damage (Can miss). 10% chance to inflict burn.","magicLevelRequired":82,"specID":17,"maxHit":680,"runesRequired":[{"id":393,"qty":20},{"id":398,"qty":5}],"requiredDungeonCompletion":[5,100]},{"name":"Gust","media":"assets/media/skills/magic/gust.svg","description":"Attack 4 times dealing 200 damage each. 10% chance to stun the enemy on hit. If your Accuracy Rating is higher than 20K then this attack cannot miss.","magicLevelRequired":86,"specID":18,"maxHit":200,"runesRequired":[{"id":389,"qty":25},{"id":398,"qty":5},{"id":822,"qty":5}],"requiredDungeonCompletion":[8,100]},{"name":"Frostbite","media":"assets/media/skills/magic/frostbite.svg","description":"Attack once dealing 750 damage (Can miss). 30% chance to Freeze the enemy for 2 turns. If enemy is stunned/frozen, deal +30% damage.","magicLevelRequired":90,"specID":19,"maxHit":750,"runesRequired":[{"id":391,"qty":25},{"id":398,"qty":6},{"id":822,"qty":6}],"requiredDungeonCompletion":[9,100]},{"name":"Quake","media":"assets/media/skills/magic/quake.svg","description":"Attack 2 times dealing 540 damage each (Can miss). If hit, guaranteed to slow Enemy attack speed by 50% for 1 turns.","magicLevelRequired":94,"specID":20,"maxHit":540,"runesRequired":[{"id":392,"qty":25},{"id":398,"qty":7},{"id":822,"qty":7}],"requiredDungeonCompletion":[10,100]},{"name":"Incinerate","media":"assets/media/skills/magic/incinerate.svg","description":"Attack 14 times dealing 63 damage each. If your Accuracy Rating is higher than 20K then this attack cannot miss.","magicLevelRequired":98,"specID":21,"maxHit":63,"runesRequired":[{"id":393,"qty":30},{"id":398,"qty":10},{"id":822,"qty":10}],"requiredDungeonCompletion":[11,100]}]')
+
MagicData.Ancient = mw.text.jsonDecode('[{"name":"Slicing Winds","media":"assets/media/skills/magic/slicing_winds.svg","magicLevelRequired":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."},{"name":"Icicle Volley","media":"assets/media/skills/magic/icicle_volley.svg","magicLevelRequired":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":[{"type":"Modifier","modifiers":{"increasedAttackIntervalPercent":20},"maxStacks":1,"character":"Target","turns":3,"countsOn":"Target","media":"assets/media/status/slowed.svg"}],"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 you <span class=\\"font-w700 text-danger\\">+20% Attack Interval</span> for 3 of your turns."},{"name":"Ignite","media":"assets/media/skills/magic/ignite.svg","magicLevelRequired":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":[{"type":"DOT","subtype":"Burn","damage":[{"character":"Target","roll":false,"maxRoll":"CurrentHP","maxPercent":15}],"procs":10,"interval":250,"chance":10}],"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 your current hitpoints as damage over 2.5s."},{"name":"Gust","media":"assets/media/skills/magic/gust.svg","magicLevelRequired":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."},{"name":"Frostbite","media":"assets/media/skills/magic/frostbite.svg","magicLevelRequired":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."},{"name":"Quake","media":"assets/media/skills/magic/quake.svg","magicLevelRequired":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":[{"type":"Modifier","modifiers":{"increasedAttackIntervalPercent":50},"maxStacks":1,"character":"Target","turns":1,"countsOn":"Target","media":"assets/media/status/slowed.svg"}],"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 you <span class=\\"font-w700 text-danger\\">+50% Attack Interval</span> for 1 of your turn."},{"name":"Incinerate","media":"assets/media/skills/magic/incinerate.svg","magicLevelRequired":98,"specialAttack":{"name":"Incinerate","id":21,"description":"Attack <count> times dealing <damage> damage each. If your Accuracy Rating is higher than 20K than this attack <canMiss>.","defaultChance":100,"damage":[{"character":"Attacker","maxRoll":"Fixed","maxPercent":6.3,"roll":false}],"prehitEffects":[],"onhitEffects":[],"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 than this attack can\'t miss."}]')
  
MagicData.AltMagic = mw.text.jsonDecode('[{"name":"Just Learning","media":"assets/media/skills/magic/magic.svg","description":"Convert selected item into 1 Rune Essence.<br>5 XP","magicLevelRequired":1,"selectItem":1,"convertTo":388,"convertToQty":1,"magicXP":5,"runesRequired":[{"id":821,"qty":1},{"id":389,"qty":1}],"runesRequiredAlt":[{"id":821,"qty":1},{"id":389,"qty":1}]},{"name":"Superheat I","media":"assets/media/skills/magic/superheat_i.svg","description":"Create 1 x bar using 1 x required ores.<br>8 XP","magicLevelRequired":5,"selectItem":0,"convertToQty":1,"magicXP":8,"ignoreCoal":false,"runesRequired":[{"id":821,"qty":1},{"id":392,"qty":2},{"id":393,"qty":2}],"runesRequiredAlt":[{"id":821,"qty":1},{"id":829,"qty":2}]},{"name":"Item Alchemy I","media":"assets/media/skills/magic/item_alchemy.svg","description":"Convert selected item into GP worth 40% of the item base sell value.<br>10 XP","magicLevelRequired":10,"effectValue":0.4,"selectItem":1,"isAlch":true,"ignoreCoal":false,"magicXP":10,"runesRequired":[{"id":821,"qty":1},{"id":393,"qty":3}],"runesRequiredAlt":[{"id":821,"qty":1},{"id":393,"qty":3}]},{"name":"Bone Offering","media":"assets/media/bank/bones.svg","description":"Creates 2 x Bones<br>12 XP","magicLevelRequired":18,"convertTo":439,"convertToQty":2,"selectItem":-1,"magicXP":12,"runesRequired":[{"id":821,"qty":1},{"id":392,"qty":1}],"runesRequiredAlt":[{"id":821,"qty":1},{"id":392,"qty":1}]},{"name":"Superheat II","media":"assets/media/skills/magic/superheat_ii.svg","description":"Create 2 x bars using 1 x required ores.<br>15 XP","magicLevelRequired":25,"selectItem":0,"convertToQty":2,"ignoreCoal":false,"magicXP":15,"runesRequired":[{"id":821,"qty":1},{"id":392,"qty":3},{"id":393,"qty":3}],"runesRequiredAlt":[{"id":821,"qty":1},{"id":829,"qty":3}]},{"name":"Item Alchemy II","media":"assets/media/skills/magic/item_alchemy.svg","description":"Convert selected item into GP worth 100% of the item base sell value.<br>18 XP","magicLevelRequired":35,"effectValue":1,"selectItem":1,"isAlch":true,"ignoreCoal":false,"magicXP":18,"runesRequired":[{"id":821,"qty":1},{"id":393,"qty":4}],"runesRequiredAlt":[{"id":821,"qty":1},{"id":393,"qty":4}]},{"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.<br>21 XP","magicLevelRequired":48,"selectItem":1,"convertToQty":1,"isJunk":true,"magicXP":21,"runesRequired":[{"id":821,"qty":1},{"id":391,"qty":2},{"id":392,"qty":2}],"runesRequiredAlt":[{"id":821,"qty":1},{"id":826,"qty":2}]},{"name":"Blessed Offering","media":"assets/media/bank/holy_dust.svg","description":"Creates 2 x Holy Dust<br>24 XP","magicLevelRequired":56,"effectValue":0.4,"convertTo":500,"convertToQty":2,"selectItem":-1,"magicXP":24,"runesRequired":[{"id":821,"qty":2},{"id":392,"qty":1}],"runesRequiredAlt":[{"id":821,"qty":2},{"id":392,"qty":1}]},{"name":"Superheat III","media":"assets/media/skills/magic/superheat_iii.svg","description":"Create 3 x bars using 1 x required ores.<br>28 XP","magicLevelRequired":64,"selectItem":0,"convertToQty":3,"ignoreCoal":false,"magicXP":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}]},{"name":"Rags to Riches II","media":"assets/media/skills/magic/rags_to_riches.svg","description":"Convert Coal Ore into a random Gem.<br>32 XP","magicLevelRequired":70,"selectItem":-1,"convertToQty":1,"needCoal":true,"magicXP":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}]},{"name":"Item Alchemy III","media":"assets/media/skills/magic/item_alchemy.svg","description":"Convert selected item into GP worth 160% of the item base sell value.<br>39 XP","magicLevelRequired":76,"effectValue":1.6,"selectItem":1,"isAlch":true,"magicXP":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}]},{"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.<br>50 XP","magicLevelRequired":95,"selectItem":0,"convertToQty":3,"ignoreCoal":true,"magicXP":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}]}]')
+
MagicData.AltMagic = mw.text.jsonDecode('[{"name":"Just Learning","media":"assets/media/skills/magic/magic.svg","description":"Convert selected item into 1 Rune Essence.<br>5 XP","magicLevelRequired":1,"selectItem":1,"isAlch":false,"isJunk":false,"convertTo":388,"convertToQty":1,"magicXP":5,"runesRequired":[{"id":821,"qty":1},{"id":389,"qty":1}],"runesRequiredAlt":[{"id":821,"qty":1},{"id":389,"qty":1}]},{"name":"Superheat I","media":"assets/media/skills/magic/superheat_i.svg","description":"Create 1 x bar using 1 x required ores.<br>8 XP","magicLevelRequired":5,"selectItem":0,"convertToQty":1,"magicXP":8,"ignoreCoal":false,"runesRequired":[{"id":821,"qty":1},{"id":392,"qty":2},{"id":393,"qty":2}],"runesRequiredAlt":[{"id":821,"qty":1},{"id":829,"qty":2}]},{"name":"Item Alchemy I","media":"assets/media/skills/magic/item_alchemy.svg","description":"Convert selected item into GP worth 40% of the item base sell value.<br>10 XP","magicLevelRequired":10,"convertToQty":0.4,"selectItem":1,"isAlch":true,"isJunk":false,"magicXP":10,"runesRequired":[{"id":821,"qty":1},{"id":393,"qty":3}],"runesRequiredAlt":[{"id":821,"qty":1},{"id":393,"qty":3}]},{"name":"Bone Offering","media":"assets/media/bank/bones.png","description":"Creates 2 x Bones<br>12 XP","magicLevelRequired":18,"needCoal":false,"convertTo":439,"convertToQty":2,"selectItem":-1,"magicXP":12,"runesRequired":[{"id":821,"qty":1},{"id":392,"qty":1}],"runesRequiredAlt":[{"id":821,"qty":1},{"id":392,"qty":1}]},{"name":"Superheat II","media":"assets/media/skills/magic/superheat_ii.svg","description":"Create 2 x bars using 1 x required ores.<br>15 XP","magicLevelRequired":25,"selectItem":0,"convertToQty":2,"ignoreCoal":false,"magicXP":15,"runesRequired":[{"id":821,"qty":1},{"id":392,"qty":3},{"id":393,"qty":3}],"runesRequiredAlt":[{"id":821,"qty":1},{"id":829,"qty":3}]},{"name":"Item Alchemy II","media":"assets/media/skills/magic/item_alchemy.svg","description":"Convert selected item into GP worth 100% of the item base sell value.<br>18 XP","magicLevelRequired":35,"convertToQty":1,"selectItem":1,"isAlch":true,"isJunk":false,"magicXP":18,"runesRequired":[{"id":821,"qty":1},{"id":393,"qty":4}],"runesRequiredAlt":[{"id":821,"qty":1},{"id":393,"qty":4}]},{"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.<br>21 XP","magicLevelRequired":48,"selectItem":1,"convertToQty":1,"isAlch":false,"isJunk":true,"magicXP":21,"runesRequired":[{"id":821,"qty":1},{"id":391,"qty":2},{"id":392,"qty":2}],"runesRequiredAlt":[{"id":821,"qty":1},{"id":826,"qty":2}]},{"name":"Blessed Offering","media":"assets/media/bank/holy_dust.png","description":"Creates 2 x Holy Dust<br>24 XP","magicLevelRequired":56,"needCoal":false,"convertTo":500,"convertToQty":2,"selectItem":-1,"magicXP":24,"runesRequired":[{"id":821,"qty":2},{"id":392,"qty":1}],"runesRequiredAlt":[{"id":821,"qty":2},{"id":392,"qty":1}]},{"name":"Superheat III","media":"assets/media/skills/magic/superheat_iii.svg","description":"Create 3 x bars using 1 x required ores.<br>28 XP","magicLevelRequired":64,"selectItem":0,"convertToQty":3,"ignoreCoal":false,"magicXP":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}]},{"name":"Rags to Riches II","media":"assets/media/skills/magic/rags_to_riches.svg","description":"Convert Coal Ore into a random Gem.<br>32 XP","magicLevelRequired":70,"selectItem":-1,"convertToQty":1,"needCoal":true,"magicXP":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}]},{"name":"Item Alchemy III","media":"assets/media/skills/magic/item_alchemy.svg","description":"Convert selected item into GP worth 160% of the item base sell value.<br>39 XP","magicLevelRequired":76,"convertToQty":1.6,"selectItem":1,"isAlch":true,"isJunk":false,"magicXP":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}]},{"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.<br>50 XP","magicLevelRequired":95,"selectItem":0,"convertToQty":3,"ignoreCoal":true,"magicXP":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
 
return MagicData

Revision as of 15:42, 20 August 2021

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

--Version: v0.21 (?1105)

local MagicData = {}

--[[Generated via console using
var fullTxt = ''
var txt = JSON.stringify(SPELLS)
txt = txt.replace(/\'/g, "\\\'")
txt = txt.replace(/\\\"/g, "\\\\\"")
txt = "MagicData.Spells = mw.text.jsonDecode('" + txt + "')"
fullTxt = txt

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

txt = JSON.stringify(AURORAS)
txt = txt.replace(/\'/g, "\\\'")
txt = txt.replace(/\\\"/g, "\\\\\"")
txt = "MagicData.Auroras = mw.text.jsonDecode('" + txt + "')"
fullTxt += "\r\n\r\n" + 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, "\\\\\"")
txt = "MagicData.Ancient = mw.text.jsonDecode('" + txt + "')"
fullTxt += "\r\n\r\n" + txt

txt = JSON.stringify(ALTMAGIC)
txt = txt.replace(/\'/g, "\\\'")
txt = txt.replace(/\\\"/g, "\\\\\"")
txt = "MagicData.AltMagic = mw.text.jsonDecode('" + txt + "')"
fullTxt += "\r\n\r\n" + txt

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

MagicData.Spells = mw.text.jsonDecode('[{"name":"Wind Strike","media":"assets/media/skills/magic/wind_strike.svg","magicLevelRequired":1,"runesRequired":[{"id":389,"qty":1},{"id":390,"qty":1}],"maxHit":2,"spellType":0},{"name":"Water Strike","media":"assets/media/skills/magic/water_strike.svg","magicLevelRequired":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,"spellType":1},{"name":"Earth Strike","media":"assets/media/skills/magic/earth_strike.svg","magicLevelRequired":6,"runesRequired":[{"id":389,"qty":1},{"id":390,"qty":1},{"id":392,"qty":1}],"runesRequiredAlt":[{"id":825,"qty":1},{"id":390,"qty":1}],"maxHit":6,"spellType":2},{"name":"Fire Strike","media":"assets/media/skills/magic/fire_strike.svg","magicLevelRequired":10,"runesRequired":[{"id":389,"qty":1},{"id":390,"qty":1},{"id":393,"qty":1}],"runesRequiredAlt":[{"id":827,"qty":1},{"id":390,"qty":1}],"maxHit":8,"spellType":3},{"name":"Wind Bolt","media":"assets/media/skills/magic/wind_bolt.svg","magicLevelRequired":14,"runesRequired":[{"id":389,"qty":2},{"id":395,"qty":1}],"maxHit":9,"spellType":0},{"name":"Water Bolt","media":"assets/media/skills/magic/water_bolt.svg","magicLevelRequired":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,"spellType":1},{"name":"Earth Bolt","media":"assets/media/skills/magic/earth_bolt.svg","magicLevelRequired":19,"runesRequired":[{"id":389,"qty":2},{"id":395,"qty":1},{"id":392,"qty":3}],"runesRequiredAlt":[{"id":825,"qty":2},{"id":395,"qty":1}],"maxHit":11,"spellType":2},{"name":"Fire Bolt","media":"assets/media/skills/magic/fire_bolt.svg","magicLevelRequired":23,"runesRequired":[{"id":389,"qty":3},{"id":395,"qty":1},{"id":393,"qty":4}],"runesRequiredAlt":[{"id":827,"qty":3},{"id":395,"qty":1}],"maxHit":12,"spellType":3},{"name":"Wind Blast","media":"assets/media/skills/magic/wind_blast.svg","magicLevelRequired":28,"runesRequired":[{"id":389,"qty":3},{"id":396,"qty":1}],"maxHit":13,"spellType":0},{"name":"Water Blast","media":"assets/media/skills/magic/water_blast.svg","magicLevelRequired":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,"spellType":1},{"name":"Earth Blast","media":"assets/media/skills/magic/earth_blast.svg","magicLevelRequired":33,"runesRequired":[{"id":389,"qty":3},{"id":396,"qty":1},{"id":392,"qty":4}],"runesRequiredAlt":[{"id":825,"qty":3},{"id":396,"qty":1}],"maxHit":15,"spellType":2},{"name":"Fire Blast","media":"assets/media/skills/magic/fire_blast.svg","magicLevelRequired":37,"runesRequired":[{"id":389,"qty":4},{"id":396,"qty":1},{"id":393,"qty":5}],"runesRequiredAlt":[{"id":827,"qty":4},{"id":396,"qty":1}],"maxHit":16,"spellType":3},{"name":"Wind Wave","media":"assets/media/skills/magic/wind_wave.svg","magicLevelRequired":43,"runesRequired":[{"id":389,"qty":5},{"id":397,"qty":1}],"maxHit":17,"spellType":0},{"name":"Water Wave","media":"assets/media/skills/magic/water_wave.svg","magicLevelRequired":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,"spellType":1},{"name":"Earth Wave","media":"assets/media/skills/magic/earth_wave.svg","magicLevelRequired":48,"runesRequired":[{"id":389,"qty":5},{"id":397,"qty":1},{"id":392,"qty":7}],"runesRequiredAlt":[{"id":825,"qty":5},{"id":397,"qty":1}],"maxHit":19,"spellType":2},{"name":"Fire Wave","media":"assets/media/skills/magic/fire_wave.svg","magicLevelRequired":52,"runesRequired":[{"id":389,"qty":5},{"id":397,"qty":1},{"id":393,"qty":7}],"runesRequiredAlt":[{"id":827,"qty":5},{"id":397,"qty":1}],"maxHit":20,"spellType":3},{"name":"Wind Surge","media":"assets/media/skills/magic/wind_surge.svg","magicLevelRequired":57,"runesRequired":[{"id":389,"qty":5},{"id":398,"qty":1}],"maxHit":21,"spellType":0},{"name":"Water Surge","media":"assets/media/skills/magic/water_surge.svg","magicLevelRequired":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,"spellType":1},{"name":"Earth Surge","media":"assets/media/skills/magic/earth_surge.svg","magicLevelRequired":64,"runesRequired":[{"id":389,"qty":7},{"id":398,"qty":1},{"id":392,"qty":10}],"runesRequiredAlt":[{"id":825,"qty":7},{"id":398,"qty":1}],"maxHit":23,"spellType":2},{"name":"Fire Surge","media":"assets/media/skills/magic/fire_surge.svg","magicLevelRequired":68,"runesRequired":[{"id":389,"qty":7},{"id":398,"qty":1},{"id":393,"qty":10}],"runesRequiredAlt":[{"id":827,"qty":7},{"id":398,"qty":1}],"maxHit":24,"spellType":3}]')

MagicData.Curses = mw.text.jsonDecode('[{"name":"Blinding I","id":0,"media":"assets/media/skills/magic/blinding_i.svg","description":"Lower Enemy Accuracy by 5%<br>Lasts 3 Attack Turns","magicLevelRequired":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","description":"Lower Enemy Magic Evasion Rating by 5%<br>Lasts 3 Attack Turns","magicLevelRequired":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","description":"Lowers Enemy max hit by 5% (Does not affect Special Attacks)<br>Lasts 3 Attack Turns","magicLevelRequired":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","description":"Enemy takes 5% more damage.<br>Lasts 3 Attack Turns","magicLevelRequired":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","description":"Lower Enemy Accuracy by 10%<br>Lasts 3 Attack Turns","magicLevelRequired":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","description":"Lower Enemy Magic Evasion Rating by 10%<br>Lasts 3 Attack Turns","magicLevelRequired":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","description":"Lowers Enemy max hit by 10% (Does not affect Special Attacks)<br>Lasts 3 Attack Turns","magicLevelRequired":40,"runesRequired":[{"id":390,"qty":3},{"id":394,"qty":1}],"enemyModifiers":{"decreasedMaxHitPercent":10}},{"name":"Confusion","id":7,"media":"assets/media/skills/magic/confusion.svg","description":"When an Enemy successfully hits you, Enemy takes damage equal to 3% of its remaining HP (Once per Attack Turn.).<br>Lasts 3 Attack Turns","magicLevelRequired":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","description":"Enemy takes 10% more damage.<br>Lasts 3 Attack Turns","magicLevelRequired":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","description":"Lower Enemy Accuracy by 15%<br>Lasts 3 Attack Turns","magicLevelRequired":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","description":"Lower Enemy Magic Evasion Rating by 15%<br>Lasts 3 Attack Turns","magicLevelRequired":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","description":"Lowers Enemy max hit by 15% (Does not affect Special Attacks)<br>Lasts 3 Attack Turns","magicLevelRequired":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","description":"Enemy takes 15% more damage.<br>Lasts 3 Attack Turns","magicLevelRequired":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","description":"Enemy takes damage when they successfully attack the Player equal to 2% of their Max HP (Once per Attack Turn.). They also lose a total of 10% Evasion Rating<br>Lasts 3 Attack Turns","magicLevelRequired":80,"runesRequired":[{"id":822,"qty":2},{"id":396,"qty":1},{"id":397,"qty":3}],"enemyModifiers":{"increasedDecay":2,"decreasedGlobalEvasion":10}}]')

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

MagicData.Ancient = mw.text.jsonDecode('[{"name":"Slicing Winds","media":"assets/media/skills/magic/slicing_winds.svg","magicLevelRequired":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."},{"name":"Icicle Volley","media":"assets/media/skills/magic/icicle_volley.svg","magicLevelRequired":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":[{"type":"Modifier","modifiers":{"increasedAttackIntervalPercent":20},"maxStacks":1,"character":"Target","turns":3,"countsOn":"Target","media":"assets/media/status/slowed.svg"}],"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 you <span class=\\"font-w700 text-danger\\">+20% Attack Interval</span> for 3 of your turns."},{"name":"Ignite","media":"assets/media/skills/magic/ignite.svg","magicLevelRequired":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":[{"type":"DOT","subtype":"Burn","damage":[{"character":"Target","roll":false,"maxRoll":"CurrentHP","maxPercent":15}],"procs":10,"interval":250,"chance":10}],"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 your current hitpoints as damage over 2.5s."},{"name":"Gust","media":"assets/media/skills/magic/gust.svg","magicLevelRequired":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."},{"name":"Frostbite","media":"assets/media/skills/magic/frostbite.svg","magicLevelRequired":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."},{"name":"Quake","media":"assets/media/skills/magic/quake.svg","magicLevelRequired":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":[{"type":"Modifier","modifiers":{"increasedAttackIntervalPercent":50},"maxStacks":1,"character":"Target","turns":1,"countsOn":"Target","media":"assets/media/status/slowed.svg"}],"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 you <span class=\\"font-w700 text-danger\\">+50% Attack Interval</span> for 1 of your turn."},{"name":"Incinerate","media":"assets/media/skills/magic/incinerate.svg","magicLevelRequired":98,"specialAttack":{"name":"Incinerate","id":21,"description":"Attack <count> times dealing <damage> damage each. If your Accuracy Rating is higher than 20K than this attack <canMiss>.","defaultChance":100,"damage":[{"character":"Attacker","maxRoll":"Fixed","maxPercent":6.3,"roll":false}],"prehitEffects":[],"onhitEffects":[],"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 than this attack can\'t miss."}]')

MagicData.AltMagic = mw.text.jsonDecode('[{"name":"Just Learning","media":"assets/media/skills/magic/magic.svg","description":"Convert selected item into 1 Rune Essence.<br>5 XP","magicLevelRequired":1,"selectItem":1,"isAlch":false,"isJunk":false,"convertTo":388,"convertToQty":1,"magicXP":5,"runesRequired":[{"id":821,"qty":1},{"id":389,"qty":1}],"runesRequiredAlt":[{"id":821,"qty":1},{"id":389,"qty":1}]},{"name":"Superheat I","media":"assets/media/skills/magic/superheat_i.svg","description":"Create 1 x bar using 1 x required ores.<br>8 XP","magicLevelRequired":5,"selectItem":0,"convertToQty":1,"magicXP":8,"ignoreCoal":false,"runesRequired":[{"id":821,"qty":1},{"id":392,"qty":2},{"id":393,"qty":2}],"runesRequiredAlt":[{"id":821,"qty":1},{"id":829,"qty":2}]},{"name":"Item Alchemy I","media":"assets/media/skills/magic/item_alchemy.svg","description":"Convert selected item into GP worth 40% of the item base sell value.<br>10 XP","magicLevelRequired":10,"convertToQty":0.4,"selectItem":1,"isAlch":true,"isJunk":false,"magicXP":10,"runesRequired":[{"id":821,"qty":1},{"id":393,"qty":3}],"runesRequiredAlt":[{"id":821,"qty":1},{"id":393,"qty":3}]},{"name":"Bone Offering","media":"assets/media/bank/bones.png","description":"Creates 2 x Bones<br>12 XP","magicLevelRequired":18,"needCoal":false,"convertTo":439,"convertToQty":2,"selectItem":-1,"magicXP":12,"runesRequired":[{"id":821,"qty":1},{"id":392,"qty":1}],"runesRequiredAlt":[{"id":821,"qty":1},{"id":392,"qty":1}]},{"name":"Superheat II","media":"assets/media/skills/magic/superheat_ii.svg","description":"Create 2 x bars using 1 x required ores.<br>15 XP","magicLevelRequired":25,"selectItem":0,"convertToQty":2,"ignoreCoal":false,"magicXP":15,"runesRequired":[{"id":821,"qty":1},{"id":392,"qty":3},{"id":393,"qty":3}],"runesRequiredAlt":[{"id":821,"qty":1},{"id":829,"qty":3}]},{"name":"Item Alchemy II","media":"assets/media/skills/magic/item_alchemy.svg","description":"Convert selected item into GP worth 100% of the item base sell value.<br>18 XP","magicLevelRequired":35,"convertToQty":1,"selectItem":1,"isAlch":true,"isJunk":false,"magicXP":18,"runesRequired":[{"id":821,"qty":1},{"id":393,"qty":4}],"runesRequiredAlt":[{"id":821,"qty":1},{"id":393,"qty":4}]},{"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.<br>21 XP","magicLevelRequired":48,"selectItem":1,"convertToQty":1,"isAlch":false,"isJunk":true,"magicXP":21,"runesRequired":[{"id":821,"qty":1},{"id":391,"qty":2},{"id":392,"qty":2}],"runesRequiredAlt":[{"id":821,"qty":1},{"id":826,"qty":2}]},{"name":"Blessed Offering","media":"assets/media/bank/holy_dust.png","description":"Creates 2 x Holy Dust<br>24 XP","magicLevelRequired":56,"needCoal":false,"convertTo":500,"convertToQty":2,"selectItem":-1,"magicXP":24,"runesRequired":[{"id":821,"qty":2},{"id":392,"qty":1}],"runesRequiredAlt":[{"id":821,"qty":2},{"id":392,"qty":1}]},{"name":"Superheat III","media":"assets/media/skills/magic/superheat_iii.svg","description":"Create 3 x bars using 1 x required ores.<br>28 XP","magicLevelRequired":64,"selectItem":0,"convertToQty":3,"ignoreCoal":false,"magicXP":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}]},{"name":"Rags to Riches II","media":"assets/media/skills/magic/rags_to_riches.svg","description":"Convert Coal Ore into a random Gem.<br>32 XP","magicLevelRequired":70,"selectItem":-1,"convertToQty":1,"needCoal":true,"magicXP":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}]},{"name":"Item Alchemy III","media":"assets/media/skills/magic/item_alchemy.svg","description":"Convert selected item into GP worth 160% of the item base sell value.<br>39 XP","magicLevelRequired":76,"convertToQty":1.6,"selectItem":1,"isAlch":true,"isJunk":false,"magicXP":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}]},{"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.<br>50 XP","magicLevelRequired":95,"selectItem":0,"convertToQty":3,"ignoreCoal":true,"magicXP":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