关卡大致以 怪物的种类和等级不同而区别, todo 英雄设定

This commit is contained in:
2024-12-25 10:43:56 +08:00
parent c3a17689bf
commit 8e17c17278
14 changed files with 4874 additions and 78 deletions

View File

@@ -16,7 +16,7 @@ import { HeroSpine } from "./HeroSpine";
import { HeroViewComp } from "./HeroViewComp";
import { BoxSet } from "../common/config/BoxSet";
import { RandomManager } from "../../../../extensions/oops-plugin-framework/assets/core/common/random/RandomManager";
import { HeroInfo,MonSet } from "../common/config/heroSet";
import { HeroInfo } from "../common/config/heroSet";
import { MoveToComp } from "../common/ecs/position/MoveTo";
import { Talents } from "../common/config/TalentSet";
import { MonModelComp } from "./MonModelComp";
@@ -68,7 +68,6 @@ export class Monster extends ecs.Entity {
hv.box_group = box_group;
hv.hero_uuid= uuid;
hv.hero_name= hero.name;
hv.hero_type= hero.type;
hv.speed =hv.ospeed = hero.speed;
hv.dis = hero.dis;
hv.pw = hero.pw;
@@ -80,21 +79,24 @@ export class Monster extends ecs.Entity {
hv.dpw=hero.dpw;
hv.dopw=hero.dopw;
hv.lv = 1;
hv.slv = 0;
hv.type = hero.type;
hv.sk1 = hero.sk1[hv.slv];
hv.sk2 = hero.sk2[hv.slv];
hv.sk3 = hero.sk3[hv.slv];
hv.akc = hero.akc[hv.slv];
hv.uac = hero.uac[hv.slv];
hv.crc = hero.crc[hv.slv];
hv.dgc = hero.dgc[hv.slv];
hv.akr = hero.akr[hv.slv];
hv.uar = hero.uar[hv.slv];
hv.crr = hero.crr[hv.slv];
hv.dgr = hero.dgr[hv.slv];
let slv=0
if (hero.slv >= 5) slv=1
if (hero.slv >= 10) slv=2
if (hero.slv >= 15) slv=3
if (hero.slv >= 20) slv=4
if (hero.slv >= 25) slv=5
hv.type = hero.type;
hv.sk1 = hero.sk1[slv];
hv.sk2 = hero.sk2[slv];
hv.sk3 = hero.sk3[slv];
hv.akc = hero.akc[slv];
hv.uac = hero.uac[slv];
hv.crc = hero.crc[slv];
hv.dgc = hero.dgc[slv];
hv.akr = hero.akr[slv];
hv.uar = hero.uar[slv];
hv.crr = hero.crr[slv];
hv.dgr = hero.dgr[slv];
hv.hp= hv.hp_max =hero.hp+hero.hp_up*hv.lv ;
hv.ap = hero.ap+hero.ap_up*hv.lv ;
hv.def= hero.def+hero.def_up*hv.lv;