加入 等级系统 开始
This commit is contained in:
@@ -562,7 +562,13 @@ export class HeroViewComp extends CCComp {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
exp_up(e:any,data:any){
|
||||
console.log("[HeroViewComp]:exp_up",data)
|
||||
this.lv+=1
|
||||
this.ap=this.ap*this.lv
|
||||
this.BUFFCOMP.vmdata_update(true)
|
||||
}
|
||||
|
||||
to_update(){
|
||||
this.ap=this.ap*this.lv
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user