dd
This commit is contained in:
@@ -4,6 +4,7 @@ import { GameEvent } from '../common/config/GameEvent';
|
||||
import { geDebuffNum, getBuffNum, BuffAttr, DebuffAttr } from '../common/config/SkillSet';
|
||||
import { Timer } from 'db://oops-framework/core/common/timer/Timer';
|
||||
import { FightSet } from '../common/config/Mission';
|
||||
import { SuperCards, SuperCardsType } from '../common/config/CardSet';
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@ccclass('FightConComp')
|
||||
@@ -38,6 +39,7 @@ export class FightConComp extends Component {
|
||||
oops.message.on(GameEvent.EquipChange,this.equip_change,this)
|
||||
oops.message.on(GameEvent.FightReady,this.fight_ready,this)
|
||||
oops.message.on(GameEvent.ChangeATK_EQUIP_SPECIAL_ATTR,this.change_equip_special_attr,this)
|
||||
oops.message.on(GameEvent.UseSpecialCard,this.use_special_card,this)
|
||||
|
||||
}
|
||||
protected start(): void {
|
||||
@@ -111,6 +113,24 @@ export class FightConComp extends Component {
|
||||
return obj;
|
||||
}
|
||||
|
||||
private use_special_card(e:GameEvent,data:any){
|
||||
console.log("[FightConComp]:use_special_card:",SuperCards[data.uuid])
|
||||
switch(SuperCards[data.uuid].type){
|
||||
case SuperCardsType.SPECIAL:
|
||||
|
||||
break
|
||||
case SuperCardsType.AOE:
|
||||
|
||||
break
|
||||
case SuperCardsType.BUFF:
|
||||
|
||||
break
|
||||
case SuperCardsType.DEBUFF:
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private clearAlls() {
|
||||
this.hero_buff=getBuffNum()
|
||||
this.friend_buff=getBuffNum()
|
||||
|
||||
Reference in New Issue
Block a user