Update main.js

This commit is contained in:
Kyle
2020-07-31 17:13:35 -07:00
parent 2fb7833362
commit 6b1f513b02

View File

@@ -561,7 +561,6 @@ function writeText(textObjectList, targetContext) {
} else if (possibleCodeLower == 'loadtextx') { } else if (possibleCodeLower == 'loadtextx') {
textX = savedTextX textX = savedTextX
} else if (possibleCodeLower.includes('outline:')) { } else if (possibleCodeLower.includes('outline:')) {
console.log(parseInt(possibleCodeLower.replace('outline:', '').split(',')[1]), possibleCodeLower.replace('outline:', '').split(',')[1], possibleCodeLower.replace('outline:', '').split(','))
if (parseInt(possibleCodeLower.replace('outline:', '').split(',')[1]) == 0) { if (parseInt(possibleCodeLower.replace('outline:', '').split(',')[1]) == 0) {
outline = false outline = false
} else { } else {
@@ -836,7 +835,7 @@ function inputCardNameNumberTextImport(index) {
if (importCardTextResponse.includes('"power":"')) { if (importCardTextResponse.includes('"power":"')) {
importText(beforeAfter(importCardTextResponse, '"power":"', '",') + '/' + beforeAfter(importCardTextResponse, '"toughness":"', '",'), 'Power/Toughness') importText(beforeAfter(importCardTextResponse, '"power":"', '",') + '/' + beforeAfter(importCardTextResponse, '"toughness":"', '",'), 'Power/Toughness')
} else { } else {
importText('', 'Power Toughness') importText('', 'Power/Toughness')
} }
if (importCardTextResponse.includes('"loyalty":"') && currentVersion == 'planeswalker') { if (importCardTextResponse.includes('"loyalty":"') && currentVersion == 'planeswalker') {
importText(beforeAfter(importCardTextResponse, '"loyalty":"', '",'), 'Loyalty') importText(beforeAfter(importCardTextResponse, '"loyalty":"', '",'), 'Loyalty')