This commit is contained in:
panw
2025-05-28 16:59:59 +08:00
parent ba05b59f4d
commit 6a185a2361
12 changed files with 1824 additions and 9 deletions

View File

@@ -12,6 +12,8 @@ import { HeroSet } from "../common/config/heroSet";
import { BuffComp } from "./BuffComp";
import { getMonsterDrops, MonsterType } from "../common/config/RewardSet";
import { HeroSkillsComp } from "../skill/heroSkillsComp";
import { oops } from "db://oops-framework/core/Oops";
import { GameEvent } from "../common/config/GameEvent";
const { ccclass, property } = _decorator;
@@ -287,6 +289,9 @@ export class HeroViewComp extends CCComp {
dead(){
this.BUFFCOMP.dead()
this.to_drop()
if(this.hero_uuid == 9999){
oops.message.dispatchEvent(GameEvent.MissionLoss,this)
}
}
//掉落物品