dd 56卡牌栏 为role 专有物品,不在有针对小兵的 卡牌技能, 小兵的强化靠role,没有驻场 技能,role 修改为多技能

This commit is contained in:
pan@work
2024-09-12 17:19:14 +08:00
parent 5f1b081374
commit f80115e251
47 changed files with 1191 additions and 1524 deletions

View File

@@ -16,9 +16,7 @@ import { MonSpine } from "./MonSpine";
import { MonViewComp } from "./MonViewComp";
import { BoxSet } from "../common/config/BoxSet";
import { RandomManager } from "../../../../extensions/oops-plugin-framework/assets/core/common/random/RandomManager";
import { MonBuffComp } from "./MonBuffComp";
import { HeroSet } from "../common/config/heroSet";
import { MonSet } from "../common/config/MonSet";
import { HeroSet,MonSet } from "../common/config/heroSet";
/** 角色实体 */
@ecs.register(`Mon`)
export class Mon extends ecs.Entity {
@@ -26,7 +24,6 @@ export class Mon extends ecs.Entity {
MonModel!: MonModelComp;
// 视图层
MonView!: MonViewComp;
MonBuff!: MonBuffComp; // 移动
protected init() {
this.addComponents<ecs.Comp>( MonModelComp);
@@ -35,7 +32,6 @@ export class Mon extends ecs.Entity {
destroy(): void {
this.remove(MonViewComp);
this.remove(MonBuffComp);
super.destroy();
}
@@ -74,23 +70,22 @@ export class Mon extends ecs.Entity {
}
hero_init(uuid:number=1001,node:Node,pos:Vec3=v3(0,0,0)){
var mv = node.getComponent(MonViewComp)!;
var buff =node.getComponent(MonBuffComp)!;
// console.log("hero_init",buff)
mv.speed =mv.ospeed = smc.monsters[uuid].speed;
mv.hero_name= smc.monsters[uuid].name;
buff.group=mv.box_group= BoxSet.MONSTER;
mv.hp= mv.hp_max = smc.monsters[uuid].hp;
mv.level = smc.monsters[uuid].level;
mv.atk = smc.monsters[uuid].atk;
mv.atk_cd = smc.monsters[uuid].atk_cd;
mv.atk_dis = smc.monsters[uuid].atk_dis;
mv.power = smc.monsters[uuid].power;
mv.power_max = smc.monsters[uuid].power_max;
mv.type = smc.monsters[uuid].type;
mv.skill_uuid = 9001;
mv.skill_uuid = smc.monsters[uuid].skill_uuid;
mv.max_skill_uuid = smc.monsters[uuid].max_skill_uuid;
mv.scale = -1;
mv.Tpos = v3(0,0,0);
this.add(mv);
this.add(buff);
}
}