移除英雄的ap
This commit is contained in:
parent
3af415b0f5
commit
69b271f610
@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user