fix statbar
This commit is contained in:
parent
53a54c2123
commit
fcb8bf779e
@ -33,13 +33,13 @@ class StatBar extends Phaser.GameObjects.Graphics {
|
|||||||
this.val = this.crypObj.cryp.red_shield.base;
|
this.val = this.crypObj.cryp.red_shield.base;
|
||||||
this.max = this.crypObj.cryp.red_shield.base;
|
this.max = this.crypObj.cryp.red_shield.base;
|
||||||
this.margin = 1;
|
this.margin = 1;
|
||||||
} else if (type === 'Evasion') {
|
|
||||||
this.val = this.crypObj.cryp.evasion.base;
|
|
||||||
this.max = this.crypObj.cryp.evasion.base;
|
|
||||||
this.margin = 2;
|
|
||||||
} else if (type === 'Blue Shield') {
|
} else if (type === 'Blue Shield') {
|
||||||
this.val = this.crypObj.cryp.blue_shield.base;
|
this.val = this.crypObj.cryp.blue_shield.base;
|
||||||
this.max = this.crypObj.cryp.blue_shield.base;
|
this.max = this.crypObj.cryp.blue_shield.base;
|
||||||
|
this.margin = 2;
|
||||||
|
} else if (type === 'Evasion') {
|
||||||
|
this.val = this.crypObj.cryp.evasion.base;
|
||||||
|
this.max = this.crypObj.cryp.evasion.base;
|
||||||
this.margin = 3;
|
this.margin = 3;
|
||||||
}
|
}
|
||||||
const { statTextX, statTextY } = statTextCoord(cryp.team, cryp.iter, this.margin);
|
const { statTextX, statTextY } = statTextCoord(cryp.team, cryp.iter, this.margin);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user