怪物根据怪物等级 掉落石头和经验
This commit is contained in:
@@ -6,7 +6,6 @@ import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/O
|
||||
import { GameEvent } from "../common/config/GameEvent";
|
||||
import { AType, DTType, EType, RType, SkillSet, SType, TGroup } from "../common/config/SkillSet";
|
||||
import { BoxSet, FacSet } from "../common/config/BoxSet";
|
||||
import { HeroFac, HeroSet } from "../common/config/heroSet";
|
||||
import { HeroViewComp } from "../hero/HeroViewComp";
|
||||
import { BezierMove } from "../BezierMove/BezierMove";
|
||||
import { FightConComp } from "../map/FightConComp";
|
||||
|
||||
@@ -2,12 +2,12 @@ import { _decorator, Component, instantiate, Node, Prefab } from 'cc';
|
||||
import { SkillCom } from './SkillCom';
|
||||
import { ecs } from 'db://oops-framework/libs/ecs/ECS';
|
||||
import { Hero } from '../hero/Hero';
|
||||
import { BoxSet } from '../common/config/BoxSet';
|
||||
import { BoxSet, FacSet } from '../common/config/BoxSet';
|
||||
import { Monster } from '../hero/Mon';
|
||||
import { HeroViewComp } from '../hero/HeroViewComp';
|
||||
import { smc } from '../common/SingletonModuleComp';
|
||||
import { HeroInfo } from '../common/config/heroSet';
|
||||
import { oops } from 'db://oops-framework/core/Oops';
|
||||
import { HeroInfo } from '../common/config/heroSet';
|
||||
const { ccclass, property } = _decorator;
|
||||
//这是召唤技能
|
||||
@ccclass('ZhanCom')
|
||||
@@ -23,12 +23,12 @@ export class ZhanCom extends Component {
|
||||
var node = instantiate(prefab);
|
||||
node.parent = this.node.parent;
|
||||
node.setPosition(pos);
|
||||
if(this.base.box_group==BoxSet.HERO) {
|
||||
if(this.base.fac==FacSet.HERO) {
|
||||
hero = ecs.getEntity<Hero>(Hero);
|
||||
let scale = 1
|
||||
hero.load(pos,scale,this.base.hero,true,this.base.lv);
|
||||
hero.load(pos,scale,this.base.hero,true,HeroInfo[this.base.hero].lv);
|
||||
}
|
||||
if(this.base.box_group==BoxSet.MONSTER) {
|
||||
if(this.base.fac==FacSet.MON) {
|
||||
hero = ecs.getEntity<Monster>(Monster);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user