Convert Weakness/Basic Weakness pseudo-classes into subtype_code
This commit is contained in:
parent
d67d1192cf
commit
c024c8b8a8
@ -166,10 +166,18 @@ function build_card(component) {
|
|||||||
|
|
||||||
var faction = component.settings.get('CardClass');
|
var faction = component.settings.get('CardClass');
|
||||||
if (faction) {
|
if (faction) {
|
||||||
card_data.faction_code = String(faction).toLowerCase();
|
if (faction == 'Weakness') {
|
||||||
var faction2 = component.settings.get('CardClass2');
|
card_data.subtype_code = "weakness";
|
||||||
if (faction2 && faction2 != 'None') {
|
}
|
||||||
card_data.faction2_code = String(faction2).toLowerCase();
|
else if (faction == 'Basic Weakness') {
|
||||||
|
card_data.subtype_code = "basicweakness";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
card_data.faction_code = String(faction).toLowerCase();
|
||||||
|
var faction2 = component.settings.get('CardClass2');
|
||||||
|
if (faction2 && faction2 != 'None') {
|
||||||
|
card_data.faction2_code = String(faction2).toLowerCase();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user