From 9590f1668d55f858bbb080ca5304a4f1f2fef092 Mon Sep 17 00:00:00 2001 From: Mashy Date: Wed, 23 Oct 2019 09:06:49 +1000 Subject: [PATCH] Plus -> + for specs --- WORKLOG.md | 8 ++------ client/src/components/info.component.jsx | 3 ++- client/src/components/vbox.component.jsx | 1 + 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/WORKLOG.md b/WORKLOG.md index 2f72978e..174a7073 100644 --- a/WORKLOG.md +++ b/WORKLOG.md @@ -3,25 +3,20 @@ *PRODUCTION* -* give the vbox and inventory distinct delineation * vbox phase skill list navigator (overlay maybe?) +* can't reset password without knowing password =\ * mobile styles * mobile info page - * fix info page for tablet layout -* can't reset password without knowing password =\ * Invert recharge -* Convert spec 'Plus' -> '+' when it appears as combo text in combiner and in info text - ## SOON * equip from shop (buy and equip without putting in your inventory) for bases * move item from one construct to another -* bot game grind * ACP * essential * audio @@ -61,6 +56,7 @@ ## LATER * constants +* bot game grind $$$ * Items diff --git a/client/src/components/info.component.jsx b/client/src/components/info.component.jsx index 32b059b3..3aebbc14 100644 --- a/client/src/components/info.component.jsx +++ b/client/src/components/info.component.jsx @@ -152,10 +152,11 @@ function InfoComponent(args) { : false; const itemRegEx = /(Red|Blue|Green)/; const itemSourceDescription = reactStringReplace(itemSourceInfo, itemRegEx, match => shapes[match]()); + const infoText = info.replace('Plus', '+'); return (
-

{info} - {fullInfo.cost}b

+

{infoText} - {fullInfo.cost}b

SPEC

{itemSourceDescription}
{infoDescription}
diff --git a/client/src/components/vbox.component.jsx b/client/src/components/vbox.component.jsx index 16bdab66..b6bc6adf 100644 --- a/client/src/components/vbox.component.jsx +++ b/client/src/components/vbox.component.jsx @@ -370,6 +370,7 @@ function Vbox(args) { return true; })); comboItem = comboItemObj ? comboItemObj.item : 'refine'; + comboItem = comboItem.replace('Plus', '+'); text = `Combine - ${comboItem}`; }