diff --git a/assets/script/game/hero/Hero.ts b/assets/script/game/hero/Hero.ts index b2891165..b0ac5f89 100644 --- a/assets/script/game/hero/Hero.ts +++ b/assets/script/game/hero/Hero.ts @@ -89,8 +89,9 @@ export class Hero extends ecs.Entity { hv.speed =hv.ospeed = hero.speed; hv.dis = hero.dis; hv.cd = hero.cd - hv.hp= hv.hp_max =hero.hp+info.hp + hv.hp= hv.hp_max = hv.hp_base=hero.hp+info.hp hv.ap = hero.ap+info.ap; + hv.ap_base=hero.ap+info.ap; hero.buff.forEach((buff:any)=>{ switch(buff.buff_type){ case BuffAttr.CRITICAL: diff --git a/assets/script/game/hero/HeroConComp.ts b/assets/script/game/hero/HeroConComp.ts index 80e4d250..e1eaab96 100644 --- a/assets/script/game/hero/HeroConComp.ts +++ b/assets/script/game/hero/HeroConComp.ts @@ -31,6 +31,7 @@ export class HeroConCompComp extends CCComp { let equip=EquipInfo[data.uuid] let buffs=equip.buff let special_attr=equip.special_attr + console.log("[HeroConCompComp]:equip_add",buffs) for(let i=0;i等级HP:${levelHp}, 基础AP:${baseAp}->等级AP:${levelAp}`); hv.cd = hero.cd diff --git a/assets/script/game/skills/SkillCom.ts b/assets/script/game/skills/SkillCom.ts index 254c0133..140ea702 100644 --- a/assets/script/game/skills/SkillCom.ts +++ b/assets/script/game/skills/SkillCom.ts @@ -189,12 +189,12 @@ export class SkillCom extends CCComp { target.add_debuff(debuff.debuff,dev,deC,deR) } this.hit_count++ - console.log("[SkillCom]:碰撞次数:技能次数:穿刺次数",this.hit_count,SkillSet[this.s_uuid].hit,this.puncture) + // console.log("[SkillCom]:碰撞次数:技能次数:穿刺次数",this.hit_count,SkillSet[this.s_uuid].hit,this.puncture) if(this.hit_count>=(SkillSet[this.s_uuid].hit+this.puncture)&&(SkillSet[this.s_uuid].DTType!=DTType.range)) this.is_destroy=true // 技能命中次数 } onBeginContact (seCol: Collider2D, oCol: Collider2D) { - console.log(this.scale+"碰撞开始 ",seCol,oCol); + // console.log(this.scale+"碰撞开始 ",seCol,oCol); if(seCol.node.position.x-oCol.node.position.x > 100 ) return let target = oCol.getComponent(HeroViewComp) if(oCol.group!=this.group){