移除英雄的ap

This commit is contained in:
zhl 2020-12-04 17:19:29 +08:00
parent 3af415b0f5
commit 69b271f610

View File

@ -23,11 +23,7 @@ export class Player extends Schema {
*/ */
@type("number") @type("number")
hp: number; hp: number;
/**
*
*/
@type("number")
ap: number;
/** /**
* *
* 0: 正常状态 * 0: 正常状态
@ -57,10 +53,9 @@ export class Player extends Schema {
this.id = id; this.id = id;
this.state = 0; this.state = 0;
this.hp = 200; this.hp = 200;
this.ap = 30;
this.heroId = heroId; this.heroId = heroId;
this.team = team; this.team = team;
for (let i = 0; i < singleton(GameEnv).maxPlayerPetCount; i++) { for (let i = 0; i < singleton(GameEnv).maxPlayerPetCount + 1; i++) {
this.pets.set(i+'', new Pet()); this.pets.set(i+'', new Pet());
} }
} }