修复无限血上限但是非无限血的显示
This commit is contained in:
parent
17674901df
commit
9dc3caf68c
|
@ -3069,7 +3069,7 @@ export class Player extends HTMLDivElement {
|
||||||
const hidden = (this.classList.contains('unseen_show') || this.classList.contains('unseen2_show'));
|
const hidden = (this.classList.contains('unseen_show') || this.classList.contains('unseen2_show'));
|
||||||
const maxHp = (hidden ? 1 : this.maxHp);
|
const maxHp = (hidden ? 1 : this.maxHp);
|
||||||
if (maxHp == Infinity) {
|
if (maxHp == Infinity) {
|
||||||
hp.innerHTML = '∞';
|
hp.innerHTML = (this.hp == Infinity ? '∞' : (this.hp + '<br>/<br>' + '∞' + '<div></div>'));
|
||||||
}
|
}
|
||||||
else if (game.layout == 'default' && maxHp > 14) {
|
else if (game.layout == 'default' && maxHp > 14) {
|
||||||
hp.innerHTML = this.hp + '/' + maxHp;
|
hp.innerHTML = this.hp + '/' + maxHp;
|
||||||
|
|
Loading…
Reference in New Issue