mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-26 21:04:58 -05:00
Update Invocation power/toughness import + margins
This commit is contained in:
@@ -3544,7 +3544,13 @@ function changeCardIndex() {
|
||||
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.version.includes('planeswalker')) {
|
||||
card.text.loyalty.text = cardToImport.loyalty || '';
|
||||
|
@@ -9,7 +9,23 @@ availableFrames = [
|
||||
{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:'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
|
||||
document.querySelector('#loadFrameVersion').disabled = false;
|
||||
|
Reference in New Issue
Block a user