remove unused pointerdown
This commit is contained in:
@@ -11,15 +11,11 @@ class CrypPage extends Phaser.GameObjects.Group {
|
||||
|
||||
const TEXT_MARGIN = STATS.textMargin();
|
||||
|
||||
const stat = (stat, i) => {
|
||||
const crypStat = (stat, i) => {
|
||||
const STAT_X = STATS.x();
|
||||
const STAT_Y = (i * TEXT_MARGIN) + STATS.y() + TEXT_MARGIN;
|
||||
|
||||
const text = scene.add.text(STAT_X, STAT_Y, `${stat.stat}: ${stat.base}`, TEXT.NORMAL);
|
||||
|
||||
text.on('pointerdown', () => {
|
||||
this.ws.sendCrypForget(cryp.id, skill.skill);
|
||||
});
|
||||
this.add(text);
|
||||
};
|
||||
|
||||
@@ -52,7 +48,7 @@ class CrypPage extends Phaser.GameObjects.Group {
|
||||
|
||||
const CRYP_STATS = [cryp.stamina, cryp.phys_dmg, cryp.spell_dmg];
|
||||
this.add(scene.add.text(STATS.x(), STATS.y(), cryp.name, TEXT.HEADER));
|
||||
CRYP_STATS.forEach(stat);
|
||||
CRYP_STATS.forEach(crypStat);
|
||||
|
||||
this.add(scene.add.text(STATS.knownX(), STATS.y(), 'Skills', TEXT.HEADER));
|
||||
cryp.skills.forEach(knownSkill);
|
||||
|
||||
Reference in New Issue
Block a user