能量增长完善 下一步 开始设计英雄

This commit is contained in:
2025-07-24 17:06:40 +08:00
parent 054fc0a44a
commit cafd6f4073
24 changed files with 3745 additions and 5249 deletions

View File

@@ -52,7 +52,6 @@ export class Hero extends ecs.Entity {
hv.scale = 1;
hv.is_master=true;
hv.lv=1
console.log("hero load",hv.ATK_TO_POWER,hv.ATKED_TO_POWER,hv.CRIT_TO_POWER,hv.DODGE_TO_POWER)
this.add(hv);
this.addComponents<ecs.Comp>(MasterModelComp)
oops.message.dispatchEvent(GameEvent.MasterCalled,{uuid:uuid})
@@ -94,10 +93,10 @@ export class Hero extends ecs.Entity {
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;
hv.ATK_TO_POWER=FightSet.ATK_TO_POWER
hv.ATKED_TO_POWER=FightSet.ATKED_TO_POWER
hv.CRIT_TO_POWER=FightSet.CRIT_TO_POWER
hv.DODGE_TO_POWER=FightSet.DODGE_TO_POWER
smc.vmdata.hero.ATK_TO_POWER=FightSet.ATK_TO_POWER
smc.vmdata.hero.ATKED_TO_POWER=FightSet.ATKED_TO_POWER
smc.vmdata.hero.CRIT_TO_POWER=FightSet.CRIT_TO_POWER
smc.vmdata.hero.DODGE_TO_POWER=FightSet.DODGE_TO_POWER
hero.buff.forEach((buff:any)=>{
switch(buff.buff_type){
case BuffAttr.CRITICAL:
@@ -155,16 +154,16 @@ export class Hero extends ecs.Entity {
hv.frost_time=buff.value
break
case BuffAttr.ATK_TO_POWER:
hv.ATK_TO_POWER+=buff.value
smc.vmdata.hero.ATK_TO_POWER+=buff.value
break
case BuffAttr.ATKED_TO_POWER:
hv.ATKED_TO_POWER+=buff.value
smc.vmdata.hero.ATKED_TO_POWER+=buff.value
break
case BuffAttr.CRIT_TO_POWER:
hv.CRIT_TO_POWER+=buff.value
smc.vmdata.hero.CRIT_TO_POWER+=buff.value
break
case BuffAttr.DODGE_TO_POWER:
hv.DODGE_TO_POWER+=buff.value
smc.vmdata.hero.DODGE_TO_POWER+=buff.value
break
}
})