添加 升级系统

This commit is contained in:
2025-06-27 16:26:12 +08:00
parent dde29136fa
commit 2ec530d881
9 changed files with 6013 additions and 5091 deletions

View File

@@ -2,7 +2,7 @@ import { VM } from "../../../../extensions/oops-plugin-framework/assets/libs/mod
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
import { Initialize } from "../initialize/Initialize";
import { GameMap } from "../map/GameMap";
import { MissionData } from "./config/Mission";
import { MissionData, VmInfo } from "./config/Mission";
// import { Role } from "../role/Role";
@@ -40,69 +40,18 @@ export class SingletonModuleComp extends ecs.Comp {
},
hero:{
hp:0,
hp_max:0,
hp_buff:0,
cd:3,
damage:0,
ap:0,
equip_ap:0,
buff_ap:0,
debuff_ap:0,
def:0,
crit:0,
crit_d:99,
dod:99,
dod_no:false,
crit_no:false,
wind:0,
thorns:0,
lifesteal:0,
},
friend:{
hp:0,
hp_max:0,
hp_buff:0,
cd:3,
damage:0,
ap:0,
equip_ap:0,
buff_ap:0,
debuff_ap:0,
def:0,
crit:0,
crit_d:99,
dod:99,
dod_no:false,
crit_no:false,
wind:0,
thorns:0,
lifesteal:0,
},
boss:{
hp:0,
hp_max:0,
hp_buff:0,
cd:3,
damage:0,
ap:0,
equip_ap:0,
buff_ap:0,
debuff_ap:0,
def:0,
crit:0,
crit_d:99,
dod:99,
dod_no:false,
crit_no:false,
wind:0,
thorns:0,
lifesteal:0,
},
};
vmAdd() {
this.vmdata.mission_data=MissionData
this.vmdata.mission_data=JSON.parse(JSON.stringify(MissionData))
this.vmdata.hero=JSON.parse(JSON.stringify(VmInfo))
this.vmdata.friend=JSON.parse(JSON.stringify(VmInfo))
this.vmdata.boss=JSON.parse(JSON.stringify(VmInfo))
VM.add(this.vmdata, "data");
}