必杀技 与卡牌技能类似 的触发机制
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { _decorator, Component, Node, Vec3 } from 'cc';
|
||||
import { oops } from 'db://oops-framework/core/Oops';
|
||||
import { GameEvent } from '../common/config/GameEvent';
|
||||
import { geDebuffNum, getBuffNum, BuffAttr, DebuffAttr } from '../common/config/SkillSet';
|
||||
import { geDebuffNum, getBuffNum, BuffAttr, DebuffAttr, SkillSet } 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';
|
||||
@@ -57,6 +57,7 @@ export class FightConComp extends Component {
|
||||
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)
|
||||
oops.message.on(GameEvent.MaxSkill,this.use_max_skill,this)
|
||||
|
||||
}
|
||||
protected start(): void {
|
||||
@@ -146,7 +147,17 @@ export class FightConComp extends Component {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
use_max_skill(e:GameEvent,data:any){
|
||||
console.log("[FightConComp]:use_max_skill:",data)
|
||||
this.skill_id_counter++;
|
||||
this.aoe_queues.push({
|
||||
id: this.skill_id_counter,
|
||||
s_uuid:data.uuid,
|
||||
count:SkillSet[data.uuid].maxC,
|
||||
damage:0})
|
||||
// 初始化该技能的计时器
|
||||
this.aoe_timers.set(this.skill_id_counter, 0);
|
||||
}
|
||||
private aoe_skill_execute(data:any){
|
||||
let skill=ecs.getEntity<Skill>(Skill)
|
||||
let master = ecs.query(ecs.allOf(MasterModelComp))
|
||||
|
||||
Reference in New Issue
Block a user