Update Invocation power/toughness import + margins

This commit is contained in:
Josh birnholz
2023-04-01 22:26:11 -04:00
parent ad4d02b72a
commit fecbda13f8
31 changed files with 24 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 MiB

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 MiB

After

Width:  |  Height:  |  Size: 485 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 MiB

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 MiB

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 MiB

After

Width:  |  Height:  |  Size: 2.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 MiB

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 MiB

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 MiB

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 354 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@@ -3544,7 +3544,13 @@ function changeCardIndex() {
card.text.rules.text += curlyQuotes(flavorText.replace('\n', '{lns}')); card.text.rules.text += curlyQuotes(flavorText.replace('\n', '{lns}'));
} }
} }
if (card.text.pt) {card.text.pt.text = cardToImport.power + '/' + cardToImport.toughness || '';} if (card.text.pt) {
if (card.version == 'invocation') {
card.text.pt.text = cardToImport.power + '\n' + cardToImport.toughness || '';
} else {
card.text.pt.text = cardToImport.power + '/' + cardToImport.toughness || '';
}
}
if (card.text.pt && card.text.pt.text == undefined + '/' + undefined) {card.text.pt.text = '';} if (card.text.pt && card.text.pt.text == undefined + '/' + undefined) {card.text.pt.text = '';}
if (card.version.includes('planeswalker')) { if (card.version.includes('planeswalker')) {
card.text.loyalty.text = cardToImport.loyalty || ''; card.text.loyalty.text = cardToImport.loyalty || '';

View File

@@ -9,7 +9,23 @@ availableFrames = [
{name:'Red Extension', src:'/img/frames/invocation/margins/r.png', bounds:bounds, ogBounds:ogBounds}, {name:'Red Extension', src:'/img/frames/invocation/margins/r.png', bounds:bounds, ogBounds:ogBounds},
{name:'Green Extension', src:'/img/frames/invocation/margins/g.png', bounds:bounds, ogBounds:ogBounds}, {name:'Green Extension', src:'/img/frames/invocation/margins/g.png', bounds:bounds, ogBounds:ogBounds},
{name:'Multicolored Extension', src:'/img/frames/invocation/margins/m.png', bounds:bounds, ogBounds:ogBounds}, {name:'Multicolored Extension', src:'/img/frames/invocation/margins/m.png', bounds:bounds, ogBounds:ogBounds},
{name:'Artifact Extension', src:'/img/frames/invocation/margins/a.png', bounds:bounds, ogBounds:ogBounds} {name:'Artifact Extension', src:'/img/frames/invocation/margins/a.png', bounds:bounds, ogBounds:ogBounds},
{name:'White Extension (Multiverse Legends)', src:'/img/frames/invocation/mul/margins/w.png', bounds:bounds, ogBounds:ogBounds},
{name:'Blue Extension (Multiverse Legends)', src:'/img/frames/invocation/mul/margins/u.png', bounds:bounds, ogBounds:ogBounds},
{name:'Black Extension (Multiverse Legends)', src:'/img/frames/invocation/mul/margins/b.png', bounds:bounds, ogBounds:ogBounds},
{name:'Red Extension (Multiverse Legends)', src:'/img/frames/invocation/mul/margins/r.png', bounds:bounds, ogBounds:ogBounds},
{name:'Green Extension (Multiverse Legends)', src:'/img/frames/invocation/mul/margins/g.png', bounds:bounds, ogBounds:ogBounds},
{name:'Multicolored Extension (Multiverse Legends)', src:'/img/frames/invocation/mul/margins/m.png', bounds:bounds, ogBounds:ogBounds},
{name:'Artifact Extension (Multiverse Legends)', src:'/img/frames/invocation/mul/margins/a.png', bounds:bounds, ogBounds:ogBounds},
{name:'White Extension (Extended Art)', src:'/img/frames/akh/invocation/extended/margins/w.png', bounds:bounds, ogBounds:ogBounds},
{name:'Blue Extension (Extended Art)', src:'/img/frames/akh/invocation/extended/margins/u.png', bounds:bounds, ogBounds:ogBounds},
{name:'Black Extension (Extended Art)', src:'/img/frames/akh/invocation/extended/margins/b.png', bounds:bounds, ogBounds:ogBounds},
{name:'Red Extension (Extended Art)', src:'/img/frames/akh/invocation/extended/margins/r.png', bounds:bounds, ogBounds:ogBounds},
{name:'Green Extension (Extended Art)', src:'/img/frames/akh/invocation/extended/margins/g.png', bounds:bounds, ogBounds:ogBounds},
{name:'Multicolored Extension (Extended Art)', src:'/img/frames/akh/invocation/extended/margins/m.png', bounds:bounds, ogBounds:ogBounds},
{name:'Artifact Extension (Extended Art)', src:'/img/frames/akh/invocation/extended/margins/a.png', bounds:bounds, ogBounds:ogBounds}
]; ];
//disables/enables the "Load Frame Version" button //disables/enables the "Load Frame Version" button
document.querySelector('#loadFrameVersion').disabled = false; document.querySelector('#loadFrameVersion').disabled = false;