From d5d3c4024a31c5947f1277239c797918fb881a14 Mon Sep 17 00:00:00 2001 From: Autumn Valenta Date: Wed, 25 Sep 2024 02:24:15 -0600 Subject: [PATCH] Little bitta cleanup --- src/Visualizer.jsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Visualizer.jsx b/src/Visualizer.jsx index ce01387..b104784 100644 --- a/src/Visualizer.jsx +++ b/src/Visualizer.jsx @@ -53,17 +53,17 @@ export default function Visualizer({ startWorld }) { : 'GLOBAL' }
#{fg} on {bg || 'transparent'}
- {Object.keys(rolls).length > 0 &&
+                {Object.keys(rolls).length > 0 && 
                   Roll >= {
                     Object.entries(rolls).map(([key, value]) => `${key.replace('-', '/')}\n → ${value}`).join('\n')
                   }
} - {directions &&
{directions.map(
+                {directions && 
{directions.map(
                   ([dy, dx]) => (
                     `${Math.abs(dy) || ''}${{[-1]: 'down', 1: 'up', 0:'(hold)'}[dy/(Math.abs(dy)||1)]}`
                     +` + ${Math.abs(dx) || ''}${{[-1]: 'right', 1: 'left', 0:'(hold)'}[dx/(Math.abs(dx)||1)]}`
                   )
                 ).join('\n')}
} -
{overlay}
+
{overlay}
))} @@ -101,11 +101,11 @@ export default function Visualizer({ startWorld }) { display: 'block', margin: 'auto', }}> -
+                
                   {/* {rest && `${JSON.stringify(rest, null, 2)}\n`} */}
                   "{label}"{short ? ` (short)` : ''}
                   {'\n'}Data: {JSON.stringify(Object.fromEntries(
-                    Object.entries(attributes).filter(([k]) => /![A-Z]/.test(k))
+                    Object.entries(attributes).filter(([k]) => !/[A-Z]/.test(k))
                   ), null, 2)}
                   {'\n' + Object.entries(rest).filter(([k]) => /[A-Z]/.test(k)).map(([evt, data]) => (
                     (type != 'npc' || data.event) ? `${evt} ${