diff --git a/client/src/components/cryp.battle.jsx b/client/src/components/cryp.battle.jsx new file mode 100644 index 00000000..b388afc2 --- /dev/null +++ b/client/src/components/cryp.battle.jsx @@ -0,0 +1,100 @@ +const preact = require('preact'); + +function CrypPanel() { + return ( +
+
+
+
+

Future Animation / Fizzy Area

+
+
+
+
+
+ +
+
+
+
+
+

Drake

+

Level 1

+
+
+

Flying

+

Fire

+

Stone

+
+
+
    5
+
    5
+
    5
+
+
+
5 / 5 HP
+ +
+
+
+
+
+
+
+
+
+
+
+
+
    10
+
    1
+
    40
+
+
+

Walking

+

Water

+

Rock

+
+
+

BB

+

Level 1

+
+
+
5 / 5 HP
+ +
+
+
+ +
+
+
+
+
+
+
+ Ability 1 +
+ Ability 3 +
+
+ Ability 2 +
+ Ability 4 +
+
+

Combat Log

+

"bamboo basher" deals 0 dmg to "drake" (0 blocked / 1 hp remaining)

+

"bamboo basher" deals 0 dmg to "drake" (0 blocked / 1 hp remaining)

+
+
+
+
+
+ +
+
+ ); +} + +module.exports = CrypPanel; diff --git a/client/src/components/cryps.panel.jsx b/client/src/components/cryps.panel.jsx old mode 100755 new mode 100644 index a6801e17..a8fe1e84 --- a/client/src/components/cryps.panel.jsx +++ b/client/src/components/cryps.panel.jsx @@ -2,7 +2,6 @@ const preact = require('preact'); function CrypPanel({ cryps, sendCombatPve }) { if (!cryps) return
not ready
; - const crypPanels = cryps.map(cryp => (
@@ -43,11 +42,28 @@ function CrypPanel({ cryps, 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.value}
+
    Attack Damage {cryp.dmg.value}
+
+
+
    Stamina {cryp.stam.value}
+
    Defense {cryp.def.value}
+
+
+
+ Progress to next level +
+
+ +
+
+ {cryp.xp} / 4 XP +
+
);