message: Refactor setup.createMagic
diff: setup.createMagic = function (type) {
  - // var type = type || ['ring', 'trinket', 'weapon', 'armour'].seededrandom()
  - console.log('type: ' + type)
  - let magic
  + console.log(`Type: ${type}`)
  +
  if (type === 'ring') {
  - magic = setup.createRing()
  + const magic = setup.createRing()
  console.log('Ring!')
  console.log(magic)
  return magic
  }
  - const length = setup.magicData[type].property.length
  - console.log('Length:' + length)
  +
  + const data = setup.magicData[type]
  +
  + const length = data.property.length
  + console.log(`Length: ${length}`)
  const prefixRoll = random(1, length)
  const suffixRoll = random(1, length)
  - magic = {
  - type: setup.magicData[type].type.seededrandom(),
  - prefix: setup.magicData[type].prefix[prefixRoll],
  - suffix: setup.magicData[type].suffix[suffixRoll],
  - prefixProperty: setup.magicData[type].property[prefixRoll],
  - suffixProperty: setup.magicData[type].property[suffixRoll]
  + const magic = {
  + type: data.type.seededrandom(),
  + prefix: data.prefix[prefixRoll],
  + suffix: data.suffix[suffixRoll],
  + prefixProperty: data.property[prefixRoll],
  + suffixProperty: data.property[suffixRoll]
  }
  magic.description = magic.prefixProperty + '. ' + magic.suffixProperty
  magic.name = magic.prefix + ' ' + magic.type + ' ' + magic.suffix
  