装备特殊加成 继续完善
This commit is contained in:
@@ -25,7 +25,13 @@ export class FightConComp extends Component {
|
||||
temp_friend_debuff = this.getInitTempDebuff();
|
||||
temp_enemy_debuff = this.getInitTempDebuff();
|
||||
atk_type:number=0;
|
||||
Friend_alive_cd:number=FightSet.FRIEND_LIVE_CD
|
||||
|
||||
friend_alive_cd:number=FightSet.FRIEND_LIVE_CD
|
||||
atk_add_friend_atk:number=0
|
||||
atk_add_friend_hp:number=0
|
||||
atk_add_glod:number=0
|
||||
atk_add_master_atk:number=0
|
||||
atk_add_master_hp:number=0
|
||||
|
||||
onLoad(){
|
||||
// console.log("fight con start")
|
||||
@@ -35,17 +41,20 @@ export class FightConComp extends Component {
|
||||
|
||||
}
|
||||
protected start(): void {
|
||||
this.Friend_alive_cd=FightSet.FRIEND_LIVE_CD
|
||||
this.friend_alive_cd=FightSet.FRIEND_LIVE_CD
|
||||
|
||||
}
|
||||
change_equip_special_attr(e:GameEvent,data:any){
|
||||
console.log("[FightConComp]:change_equip_special_attr",data)
|
||||
this.up_friend_alive_cd(data.friend_live_cd_less)
|
||||
this.atk_add_friend_atk=data.atk_add_friend_atk
|
||||
this.atk_add_friend_hp=data.atk_add_friend_hp
|
||||
this.atk_add_glod=data.atk_add_glod
|
||||
this.atk_add_master_atk=data.atk_add_master_atk
|
||||
this.atk_add_master_hp=data.atk_add_master_hp
|
||||
this.friend_alive_cd=FightSet.FRIEND_LIVE_CD-data.friend_live_cd_less
|
||||
}
|
||||
|
||||
up_friend_alive_cd(less:number){
|
||||
this.Friend_alive_cd=FightSet.FRIEND_LIVE_CD-less
|
||||
}
|
||||
|
||||
|
||||
private equip_change(e:GameEvent,equip:any){
|
||||
this.hero_buff=equip.hero_buff
|
||||
|
||||
Reference in New Issue
Block a user