Remove explicit String casts, not needed in SE 3.3

This commit is contained in:
Adam Goldsmith 2022-06-05 21:32:01 -04:00
parent d3cbf1de9c
commit 8befda7973

View File

@ -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');
return {
name: substitute_tags(String(component.getName())),
pack_code: String(pack_code),
name: substitute_tags(component.getName()),
pack_code: pack_code,
quantity: copies,
// "Game Text" tab
traits: substitute_tags(String(component.settings.get('Traits'))),
text: substitute_tags(String(
component.settings.get('Keywords') + '\n' + component.settings.get('Rules'))),
flavor: substitute_tags(String(component.settings.get('Flavor'))),
traits: substitute_tags(component.settings.get('Traits')),
text: substitute_tags(
component.settings.get('Keywords') + '\n' + component.settings.get('Rules')),
flavor: substitute_tags(component.settings.get('Flavor')),
// TODO: "Victory" field
// "Collection" tab
code: String(code),
code: code,
position: int_or_null(component.settings.get('CollectionNumber')),
// "Portraits" tab
illustrator: String(component.settings.get('Artist')),
illustrator: component.settings.get('Artist'),
//restrictions: null, // TODO
};
}