Remove explicit String
casts, not needed in SE 3.3
This commit is contained in:
parent
d3cbf1de9c
commit
8befda7973
@ -121,23 +121,23 @@ function build_card(component, pack_code, cycle_prefix, copies) {
|
|||||||
const code = cycle_prefix + String(component.settings.get('CollectionNumber')).padStart(3, '0');
|
const code = cycle_prefix + String(component.settings.get('CollectionNumber')).padStart(3, '0');
|
||||||
|
|
||||||
return {
|
return {
|
||||||
name: substitute_tags(String(component.getName())),
|
name: substitute_tags(component.getName()),
|
||||||
pack_code: String(pack_code),
|
pack_code: pack_code,
|
||||||
quantity: copies,
|
quantity: copies,
|
||||||
|
|
||||||
// "Game Text" tab
|
// "Game Text" tab
|
||||||
traits: substitute_tags(String(component.settings.get('Traits'))),
|
traits: substitute_tags(component.settings.get('Traits')),
|
||||||
text: substitute_tags(String(
|
text: substitute_tags(
|
||||||
component.settings.get('Keywords') + '\n' + component.settings.get('Rules'))),
|
component.settings.get('Keywords') + '\n' + component.settings.get('Rules')),
|
||||||
flavor: substitute_tags(String(component.settings.get('Flavor'))),
|
flavor: substitute_tags(component.settings.get('Flavor')),
|
||||||
// TODO: "Victory" field
|
// TODO: "Victory" field
|
||||||
|
|
||||||
// "Collection" tab
|
// "Collection" tab
|
||||||
code: String(code),
|
code: code,
|
||||||
position: int_or_null(component.settings.get('CollectionNumber')),
|
position: int_or_null(component.settings.get('CollectionNumber')),
|
||||||
|
|
||||||
// "Portraits" tab
|
// "Portraits" tab
|
||||||
illustrator: String(component.settings.get('Artist')),
|
illustrator: component.settings.get('Artist'),
|
||||||
//restrictions: null, // TODO
|
//restrictions: null, // TODO
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user