怪物根据怪物等级 掉落石头和经验
This commit is contained in:
@@ -11,8 +11,8 @@ import { oops } from "db://oops-framework/core/Oops";
|
||||
import { GameEvent } from "../common/config/GameEvent";
|
||||
import { FightConComp } from "../map/FightConComp";
|
||||
import { EquipSpecialAttr } from "../common/config/Equips";
|
||||
import { FightSet, TooltipTypes } from "../common/config/Mission";
|
||||
import { getApIncrease, getHpIncrease, getUpExp, HeroPos } from "../common/config/heroSet";
|
||||
import { FightSet, getExpDrops, getStoneDrops, TooltipTypes } from "../common/config/Mission";
|
||||
import { getApIncrease, getHpIncrease, getUpExp, HeroInfo, HeroPos } from "../common/config/heroSet";
|
||||
import { FriendModelComp } from "./FriendModel";
|
||||
import { MasterModelComp } from "./MasterModel";
|
||||
import { RandomManager } from "db://oops-framework/core/common/random/RandomManager";
|
||||
@@ -339,16 +339,18 @@ export class HeroViewComp extends CCComp {
|
||||
this.do_dead_trigger()
|
||||
this.Friend_alive_cd=new Timer(this.FIGHTCON.friend_alive_cd)
|
||||
console.log("[HeroViewComp]:角色死亡",this.hero_uuid)
|
||||
if(this.is_kalami){
|
||||
oops.message.dispatchEvent(GameEvent.EXPUP,{exp:50})
|
||||
oops.message.dispatchEvent(GameEvent.SKILL_STONE_UP,10)
|
||||
oops.message.dispatchEvent(GameEvent.EQUIP_STONE_UP,10)
|
||||
|
||||
}
|
||||
if(this.is_boss){
|
||||
oops.message.dispatchEvent(GameEvent.EXPUP,{exp:100})
|
||||
|
||||
|
||||
if(this.fac==FacSet.MON){
|
||||
let exp=getExpDrops(HeroInfo[this.hero_uuid].quality,this.lv)
|
||||
let stone=getStoneDrops(HeroInfo[this.hero_uuid].quality,this.lv)
|
||||
oops.message.dispatchEvent(GameEvent.EXPUP,{exp:exp})
|
||||
if(stone.type=="equip"){
|
||||
oops.message.dispatchEvent(GameEvent.EQUIP_STONE_UP,stone.count)
|
||||
}else{
|
||||
oops.message.dispatchEvent(GameEvent.SKILL_STONE_UP,stone.count)
|
||||
}
|
||||
}
|
||||
|
||||
if(this.is_master){
|
||||
console.log("[HeroViewComp]:英雄死亡")
|
||||
oops.message.dispatchEvent(GameEvent.FightEnd,{victory:false})
|
||||
|
||||
Reference in New Issue
Block a user