怪物 不变,添加boss

This commit is contained in:
2025-07-13 20:32:17 +08:00
parent c6b017d5fe
commit e6c3eefbcb
15 changed files with 17 additions and 5685 deletions

View File

@@ -17,13 +17,11 @@ export class TalentComp extends CCComp {
let info =this.node.getChildByName("info")
let icon =this.node.getChildByName("icon")
let cost =this.node.getChildByName("cost")
let lv =this.node.getChildByName("lv")
let talent= Talents[this.t_uuid]
let role_talents = smc.vmdata.talent[talent.uuid]
cost.getComponent(Label).string = (talent.cost*(1+role_talents.lv)).toString()
name.getComponent(Label).string = talent.name
info.getComponent(Label).string = talent.info
lv.getComponent(Label).string = role_talents.lv.toString()
if (talent.type == 1){
this.node.getChildByName("role").active=true
}

View File

@@ -47,16 +47,8 @@ export class BuffComp extends Component {
this.HeroView=this.node.getComponent(HeroViewComp)
this.FIGHTCON=this.node.parent.getComponent(FightConComp)
this.top_node = this.node.getChildByName("top");
this.top_node.getChildByName("lv").active=false
// this.top_node.getChildByName("hp").active=(this.node.getComponent(HeroViewComp).fac == 1 ? true : false)
this.top_node.getChildByName("sboss").active= this.HeroView.is_boss
this.top_node.getChildByName("lv").getChildByName("lv").getComponent(Label)!.string = this.HeroView.lv.toFixed(0)
this.top_node.getChildByName("ihp").getChildByName("num").getComponent(Label)!.string = this.HeroView.hp.toFixed(0)
this.top_node.getChildByName("iap").getChildByName("num").getComponent(Label)!.string = this.HeroView.ap.toFixed(0)
this.top_node.getChildByName("ihp").active=false
this.top_node.getChildByName("iap").active=false
this.vmdata_update()
}
to_update_vmdata(){
@@ -140,8 +132,7 @@ export class BuffComp extends Component {
update_info_lv(){
let lv_node = this.top_node.getChildByName("lv");
lv_node.getChildByName("lv").getComponent(Label)!.string = this.HeroView.lv.toFixed(0)
}
show_wind(t:number=1){

View File

@@ -179,8 +179,7 @@ export class HeroViewComp extends CCComp {
hide_info(){
this.node.getChildByName("top").getChildByName("ihp").active = false;
this.node.getChildByName("top").getChildByName("iap").active = false;
}
//状态切换
status_change(type:string){