hp buff 基本完成
This commit is contained in:
@@ -69,6 +69,7 @@ export class Hero extends ecs.Entity {
|
||||
// console.log("hero load",pos)
|
||||
var hv = this.hero_init(uuid,node,info)
|
||||
hv.fight_pos=fight_pos
|
||||
hv.is_friend=true
|
||||
this.add(hv);
|
||||
this.addComponents<ecs.Comp>(FriendModelComp);
|
||||
// const move = this.get(BattleMoveComp);
|
||||
@@ -90,7 +91,7 @@ export class Hero extends ecs.Entity {
|
||||
hv.hero_name= hero.name;
|
||||
hv.speed =hv.ospeed = hero.speed;
|
||||
hv.dis = hero.dis;
|
||||
hv.cd = hero.a_cd
|
||||
hv.cd = hero.cd
|
||||
hv.hp= hv.hp_max =hero.hp+info.hp
|
||||
hv.ap = hero.ap+info.ap;
|
||||
hv.crit=hero.crit+info.crit
|
||||
|
||||
Reference in New Issue
Block a user