diff --git a/client/cryps.css b/client/cryps.css
index e523e82d..efbe85e0 100644
--- a/client/cryps.css
+++ b/client/cryps.css
@@ -596,6 +596,12 @@ header {
filter: blur(5px);
}
+text.combat-text {
+ fill: whitesmoke;
+ font-size: 5em;
+ font-family: 'Jura';
+}
+
.team-player {
padding: 0;
}
@@ -654,6 +660,10 @@ CRYP DAMAGE
color: red;
}
+.red-damage text {
+ fill: red;
+}
+
.red-damage .stats {
border-top: 3px solid red;
}
@@ -670,6 +680,10 @@ CRYP DAMAGE
color: blue;
}
+.blue-damage text {
+ fill: blue;
+}
+
.blue-damage .stats {
border-top: 3px solid blue;
}
@@ -686,6 +700,10 @@ CRYP DAMAGE
color: green;
}
+.green-damage text {
+ fill: green;
+}
+
.green-damage .stats {
border-top: 3px solid green;
}
diff --git a/client/src/components/game.component.jsx b/client/src/components/game.component.jsx
index c8f28286..496c867f 100644
--- a/client/src/components/game.component.jsx
+++ b/client/src/components/game.component.jsx
@@ -3,7 +3,9 @@ const range = require('lodash/range');
const molecule = require('./molecule');
-const { STATS, eventClasses } = require('../utils');
+const { STATS, eventClasses, getCombatText } = require('../utils');
+
+const GameCryp = require('./game.cryp');
// const SKILL_HOT_KEYS = ['Q', 'W', 'E', 'R'];
@@ -94,95 +96,8 @@ function GamePanel(props) {
);
}
- function Skill(cryp, i, mobile) {
- const ko = cryp.green_life.value === 0 ? 'ko' : '';
-
- const s = cryp.skills[i];
- if (!s) {
- return (
-
- );
- }
-
- const side = mobile
- ? 'top'
- : 'right';
-
- const cdText = cryp.skills[i].cd > 0
- ? `- ${s.cd}`
- : '';
-
- const highlight = activeSkill
- ? activeSkill.crypId === cryp.id && activeSkill.skill === s
- : false;
-
- function onClick(e) {
- e.stopPropagation();
- return setActiveSkill(cryp.id, s.skill);
- }
-
- return (
-
- );
- }
-
- function Cryp(cryp) {
- const ko = cryp.green_life.value === 0 ? 'ko' : '';
- const classes = eventClasses(resolution, cryp);
-
- const skills = range(0, 3).map(i => Skill(cryp, i));
-
- const stats = [STATS.greenLife, STATS.redLife, STATS.blueLife].map((s, j) => (
-