完成 技能选择和英雄选择
This commit is contained in:
@@ -2,6 +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, MissionMons, Missions } from "./config/Mission";
|
||||
|
||||
|
||||
// import { Role } from "../role/Role";
|
||||
@@ -17,13 +18,6 @@ export class SingletonModuleComp extends ecs.Comp {
|
||||
status:0, //0:未开始 1:进行中 2:胜利 3:失败
|
||||
play:false,
|
||||
pause:false,
|
||||
is_victory:false,
|
||||
is_defeat:false,
|
||||
is_battle:false,
|
||||
lv:0,
|
||||
victory:0,
|
||||
mskill:6001,
|
||||
mmskill:6002,
|
||||
};
|
||||
fight_heros=[]
|
||||
mheros:any = [];
|
||||
@@ -41,45 +35,11 @@ export class SingletonModuleComp extends ecs.Comp {
|
||||
game_over:false,
|
||||
game_pause:false,
|
||||
mission_data:{
|
||||
gold:10,//金币
|
||||
refresh_gold:1,//刷新金币
|
||||
refrsh_time:1, //刷新时间
|
||||
call_gold:3,//召唤金币
|
||||
add_gold:1,//金币增加
|
||||
change_gold:1,//金币变化
|
||||
exp:0,//经验
|
||||
skp:0,//技能点
|
||||
box:0,//宝箱
|
||||
energy:0,//能量
|
||||
hp:0,//血量
|
||||
ap:0,//攻击
|
||||
|
||||
},
|
||||
mission:{
|
||||
once:6, //每波刷新怪物数量
|
||||
total:1, //总怪物数
|
||||
exp:0,
|
||||
exp_max:100,
|
||||
mexp:0,
|
||||
mexp_max:100,
|
||||
drop:0,
|
||||
hp:0,
|
||||
ap:0,
|
||||
def:0,
|
||||
crit:0,
|
||||
dodge:0,
|
||||
dead:0,
|
||||
reward_num:0, //怪物死亡数
|
||||
reward_gold:0,
|
||||
reward_exp:0,
|
||||
},
|
||||
gold:{num:999999,x1:0},
|
||||
exp:{num:1000,x1:0},
|
||||
skp:{num:2000,x1:0}, //技能升级点数
|
||||
energy:{num:10,x1:0},
|
||||
box:{num:10,x1:0},
|
||||
|
||||
};
|
||||
vmAdd() {
|
||||
this.vmdata.mission_data=MissionData
|
||||
VM.add(this.vmdata, "data");
|
||||
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ export const MonsetList = {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export const BossList = {
|
||||
1:{
|
||||
1:[5001],
|
||||
@@ -22,8 +23,6 @@ export const Missions = [
|
||||
[5213,5214,5215,5216,5217,5218],
|
||||
[5225,5226,5227],
|
||||
]
|
||||
|
||||
|
||||
export const MissionReward = {
|
||||
1:[1001,1002,1003,1004,1005,1006,1021,1022,1023,1024,1025,1026,1027,1028],
|
||||
2:[1001,1002,1003,1004,1005,1006,1021,1022,1023,1024,1025,1026,1027,1028],
|
||||
@@ -45,11 +44,11 @@ export const MBSet = {
|
||||
crit_cost:2,
|
||||
dodge_cost:2,
|
||||
}
|
||||
export const MissStatus = {
|
||||
export const MissionStatus = {
|
||||
ready:0,
|
||||
playing:1,
|
||||
pause:2,
|
||||
choose:3,
|
||||
ready_skill_select:1,
|
||||
ready_hero_select:2,
|
||||
playing:3,
|
||||
end:4,
|
||||
}
|
||||
export enum FightSet {
|
||||
@@ -66,3 +65,18 @@ export enum FightSet {
|
||||
AP_UPDATE_RATE=100,
|
||||
AP_CHANGE_RATE=0,
|
||||
}
|
||||
export const MissionData = {
|
||||
gold:10,//金币
|
||||
refresh_gold:1,//刷新金币
|
||||
refrsh_time:1, //刷新时间
|
||||
call_gold:3,//召唤金币
|
||||
add_gold:1,//金币增加
|
||||
change_gold:1,//金币变化
|
||||
exp:0,//经验
|
||||
skp:0,//技能点
|
||||
box:0,//宝箱
|
||||
energy:0,//能量
|
||||
hp:0,//血量
|
||||
ap:0,//攻击
|
||||
lv:0,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user