Module:Sandbox/Skills/data: Difference between revisions

m
Re-add attackType
mNo edit summary
m (Re-add attackType)
Line 20: Line 20:
   txt = txt.replace(/\\\"/g, "\\\\\"")
   txt = txt.replace(/\\\"/g, "\\\\\"")
   fullText = fullText + "\r\n\r\nlocal Constants = mw.text.jsonDecode('" + txt + "')"
   fullText = fullText + "\r\n\r\nlocal Constants = mw.text.jsonDecode('" + txt + "')"
  txt = JSON.stringify(AttackTypeID)
  txt = txt.replace(/\'/g, "\\\'")
  txt = txt.replace(/\\\"/g, "\\\\\"")
  fullText = fullText + "\r\n\r\nConstants.attackType = mw.text.jsonDecode('" + txt + "')"


   var wikiSlayerItems = new Set()
   var wikiSlayerItems = new Set()
Line 43: Line 48:
--]]
--]]


local
local Constants =


Constants.Shop = {}
Constants.Shop = {}