todo 天赋逐个验证 + 掉血改独立

This commit is contained in:
2025-07-30 23:25:06 +08:00
parent 23ef6c3ca0
commit db2acbf52e
6 changed files with 20 additions and 25 deletions

View File

@@ -164,6 +164,7 @@ export class HeroViewComp extends CCComp {
start () {
this.as.idle()
this.BUFFCOMP=this.node.getComponent(BuffComp);
if(this.is_master) this.BUFFCOMP.vmdata_update()
/** 方向 */
this.node.setScale(this.scale,1);
this.node.getChildByName("top").setScale(this.scale,1);
@@ -231,6 +232,11 @@ export class HeroViewComp extends CCComp {
if(this.shield>6) this.shield=6
if(this.shield>0) this.BUFFCOMP.show_shield(true)
}
change_wfuny(wfuny: number){
this.wfuny+=wfuny
if(this.wfuny<0) this.wfuny=0
if(this.is_master) this.BUFFCOMP.vmdata_update()
}
change_puncture(puncture: number){
this.puncture+=puncture
if(this.puncture<1) this.puncture=1