From daf18c26b029451339739203babec20762cdd48d Mon Sep 17 00:00:00 2001 From: Mashy Date: Mon, 24 Sep 2018 16:05:46 +1000 Subject: [PATCH] Some ui formatting for cryp stats and xp bar --- client/src/components/cryp.panel.jsx | 30 ++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) mode change 100755 => 100644 client/src/components/cryp.panel.jsx diff --git a/client/src/components/cryp.panel.jsx b/client/src/components/cryp.panel.jsx old mode 100755 new mode 100644 index 6de8e6af..35994db5 --- a/client/src/components/cryp.panel.jsx +++ b/client/src/components/cryp.panel.jsx @@ -2,7 +2,7 @@ const preact = require('preact'); function CrypPanel({ cryp, sendCombatPve }) { if (!cryp) return
not ready
; - + const xptolevel = Math.pow(2,(cryp.lvl + 1)); return (
@@ -43,17 +43,35 @@ function CrypPanel({ cryp, sendCombatPve }) {
-

Stat Area

-

{JSON.stringify(cryp.def)}

-

{JSON.stringify(cryp.dmg)}

-

{JSON.stringify(cryp.hp)}

-

{JSON.stringify(cryp.stam)}

+

Cryp Stats

+

Level - {cryp.lvl}

+
+
+
    Hit Points {cryp.hp}
+
    Attack Damage {cryp.dmg.value}
+
+
+
    Stamina {cryp.stam.value}
+
    Defense {cryp.def.value}
+
+
+
+ Progress to next level +
+
+ +
+
+ {cryp.xp} / {xptolevel} XP +
+
+