added cooldowns back to skill text
This commit is contained in:
@@ -68,7 +68,10 @@ class CrypImage extends Phaser.GameObjects.Image {
|
||||
class CrypSkill extends Phaser.GameObjects.Text {
|
||||
constructor(scene, x, y, team, skill, cryp) {
|
||||
// Avatar will be a property of cryp
|
||||
super(scene, x, y, skill.skill, TEXT.NORMAL);
|
||||
|
||||
const CD_TEXT = skill.cd ? `(${skill.cd}T)` : '';
|
||||
const SKILL_TEXT = `${skill.skill} ${CD_TEXT}`;
|
||||
super(scene, x, y, SKILL_TEXT, TEXT.NORMAL);
|
||||
this.cryp = cryp; this.skill = skill; this.scene = scene;
|
||||
this.setInteractive();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user