shitty animations
This commit is contained in:
@@ -127,9 +127,10 @@ function GamePanel(props) {
|
||||
</figure>
|
||||
));
|
||||
|
||||
const combatText = getCombatText(cryp, resolution);
|
||||
const [combatText, combatClass] = getCombatText(cryp, resolution);
|
||||
const combatTextClass = `combat-text ${combatClass}`;
|
||||
const combatTextEl = combatText
|
||||
? <div className="combat-text">{combatText}</div>
|
||||
? <div className={combatTextClass}>{combatText}</div>
|
||||
: null;
|
||||
|
||||
const effects = cryp.effects.length
|
||||
|
||||
@@ -66,9 +66,10 @@ function GameCryp(props) {
|
||||
});
|
||||
|
||||
|
||||
const combatText = getCombatText(cryp, resolution);
|
||||
const [combatText, combatClass] = getCombatText(cryp, resolution);
|
||||
const combatTextClass = `combat-text ${combatClass}`;
|
||||
const combatTextEl = combatText
|
||||
? <div className="combat-text">{combatText}</div>
|
||||
? <div className={combatTextClass}>{combatText}</div>
|
||||
: null;
|
||||
|
||||
const effects = cryp.effects.length
|
||||
|
||||
Reference in New Issue
Block a user