添加了 英雄专门处理 装备加成的文件,接下来 去掉原先的光环类文件 FightCon

This commit is contained in:
2025-07-22 16:16:36 +08:00
parent 508c3b570a
commit e45ebd524b
24 changed files with 557 additions and 2108 deletions

View File

@@ -65,22 +65,7 @@ export class FightConComp extends Component {
private equip_change(e:GameEvent,equip:any){
let old_hero_hp=JSON.parse(JSON.stringify(this.hero_buff.HP))
let new_hero_hp=JSON.parse(JSON.stringify(equip.hero_buff.HP))
this.hero_buff=equip.hero_buff
this.enemy_buff=equip.enemy_buff
let hero_hp_add=new_hero_hp-old_hero_hp
console.log("[FightConComp]:old_hero_hp:"+old_hero_hp+" new_hero_hp:"+new_hero_hp+" hero_hp_add:"+hero_hp_add)
if(hero_hp_add!==0){
oops.message.dispatchEvent(GameEvent.UpdateHP,{hp:hero_hp_add,is_master:true})
}
this.scheduleOnce(()=>{
oops.message.dispatchEvent(GameEvent.UpdateVMData)
},0.1)
}
private fight_ready(e:GameEvent){