Merge branch 'master' of ssh://cryps.gg:40022/~/cryps

This commit is contained in:
Mashy
2018-11-27 19:48:10 +10:00
2 changed files with 7 additions and 2 deletions
+4 -1
View File
@@ -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();
}