- const protection = t.protection;
- if (protection != '.') {
- info += '/protection:' + protection;
- }
- info += ')\n';
- if (t.hat || t.face) {
- info += '----------\n';
- }
- if (t.hat) {
- info += '| ' + t.hat.slice(0, 6) + ' |\n';
- info += '| ' + t.hat.slice(6, 12) + ' |\n';
- info += '| ' + t.hat.slice(12, 18) + ' |\n';
- }
- if (t.face) {
- info += '| ' + t.face.slice(0, 6) + ' |\n';
- info += '| ' + t.face.slice(6, 12) + ' |\n';
- info += '| ' + t.face.slice(12, 18) + ' |\n';
- info += '----------\n';
- }
- if (t.design) {
- const line_length = t.design[0][1];
- info += '-'.repeat(line_length + 4) + '\n';
- const regexp = RegExp('.{1,' + line_length + '}', 'g');
- const lines = t.design[1].match(regexp);
- for (const line of lines) {
- info += '| ' + line + ' |\n';
+ if (detailed) {
+ const protection = t.protection;
+ if (protection != '.') {
+ info += '/protection:' + protection;