技能系统还要,伤害逻辑交给碰撞系统处理

This commit is contained in:
2025-03-26 13:49:11 +08:00
parent ae30a865c7
commit 4335a8500b
4 changed files with 35 additions and 121 deletions

View File

@@ -55,22 +55,10 @@ export class Hero extends ecs.Entity {
hv.hero_name= hero.name;
hv.speed =hv.ospeed = hero.speed;
hv.dis = hero.dis;
hv.pw = hero.pw;
hv.pwm= hero.pwm;
hv.pws= hero.pws
hv.apw=hero.apw;
hv.uapw=hero.uapw;
hv.cpw=hero.cpw;
hv.dpw=hero.dpw;
hv.dopw=hero.dopw;
let slv= Math.floor(( hv.lv) / 5);
hv.hp= hv.hp_max =hero.hp;
hv.ap = hero.ap;
hv.def= hero.def;
hv.cd = hero.a_cd
hv.crit = hero.crit; //暴击率
hv.crit_add = hero.crit_add;//暴击伤害加成
hv.dodge = hero.dodge; //闪避率
hv.atk_skill=hero.skills[0]
this.add(hv);
// 初始化多个技能组件