护盾改为 护甲值
This commit is contained in:
@@ -59,7 +59,7 @@ export class SingletonModuleComp extends ecs.Comp {
|
||||
mission:1,//关卡
|
||||
chapter:1,//章节
|
||||
level:1,//关卡等级
|
||||
max_mission:10,//最大关卡
|
||||
max_mission:4,//最大关卡
|
||||
meat:0,//肉
|
||||
mon_num:0,//怪物数量
|
||||
hero_num:0,//英雄数量
|
||||
@@ -418,10 +418,10 @@ export class SingletonModuleComp extends ecs.Comp {
|
||||
this.vmdata.mission_data.mission=this.getGameProperty("mission", 1)
|
||||
this.vmdata.mission_data.score=this.getGameProperty("score", 0)
|
||||
this.vmdata.mission_data.exp=this.getGameProperty("exp", 0)
|
||||
// 计算章节和关卡等级
|
||||
const currentMission = this.getGameProperty("mission", 1)
|
||||
this.vmdata.mission_data.chapter = Math.floor((currentMission - 1) / 10) + 1
|
||||
this.vmdata.mission_data.level = ((currentMission - 1) % 10) + 1
|
||||
// // 计算章节和关卡等级
|
||||
// const currentMission = this.getGameProperty("mission", 1)
|
||||
// this.vmdata.mission_data.chapter = Math.floor((currentMission - 1) / 10) + 1
|
||||
// this.vmdata.mission_data.level = ((currentMission - 1) % 10) + 1
|
||||
}
|
||||
initReward(){
|
||||
this.vmdata.reward.gold=0
|
||||
@@ -507,8 +507,8 @@ export class SingletonModuleComp extends ecs.Comp {
|
||||
this.setGameProperty("mission", newMission, autoSave);
|
||||
console.log(`[SMC]: 关卡进度增加: ${currentMission} -> ${newMission} (+${amount})`);
|
||||
// 计算章节和关卡等级
|
||||
this.vmdata.mission_data.chapter = Math.floor((newMission - 1) / 10) + 1
|
||||
this.vmdata.mission_data.level = ((newMission - 1) % 10) + 1
|
||||
// this.vmdata.mission_data.chapter = Math.floor((newMission - 1) / 10) + 1
|
||||
// this.vmdata.mission_data.level = ((newMission - 1) % 10) + 1
|
||||
return newMission;
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ export var UIConfigData: { [key: number]: UIConfig } = {
|
||||
// [UIID.Window]: { layer: LayerType.Dialog, prefab: "common/prefab/window" },
|
||||
[UIID.Role_Controller]: { layer: LayerType.UI, prefab: "gui/role_controller" },
|
||||
[UIID.HeroInfo]: { layer: LayerType.UI, prefab: "gui/Hinfo" },
|
||||
[UIID.Victory]: { layer: LayerType.UI, prefab: "gui/victory" },
|
||||
[UIID.Victory]: { layer: LayerType.UI, prefab: "gui/element/victory" },
|
||||
// [UIID.Shop_Page]: { layer: LayerType.UI, prefab: "gui/shop_page" },
|
||||
// [UIID.Hero_Page]: { layer: LayerType.UI, prefab: "gui/heros_page" },
|
||||
// [UIID.Toast]: { layer: LayerType.PopUp, prefab: "common/prefab/toast" },
|
||||
|
||||
@@ -25,6 +25,9 @@ export enum TType {
|
||||
/** 随机目标 */
|
||||
Random =8 // 随机目标
|
||||
}
|
||||
export enum SKILL_CONST {
|
||||
POWER_UP = 60,
|
||||
}
|
||||
|
||||
export enum DTType {
|
||||
single = 0,
|
||||
@@ -140,6 +143,7 @@ export enum BuffAttr {
|
||||
DIS = 33, //距离
|
||||
SPEED = 34, //速度
|
||||
SHIELD = 35, //护盾
|
||||
POWER_MAX = 36, //最大能量
|
||||
}
|
||||
export const getBuffNum=()=>{
|
||||
return {
|
||||
@@ -179,6 +183,7 @@ export const getBuffNum=()=>{
|
||||
[BuffAttr.DIS]:0,//距离
|
||||
[BuffAttr.SPEED]:0,//速度
|
||||
[BuffAttr.SHIELD]:0,//护盾
|
||||
[BuffAttr.POWER_MAX]:0,//最大能量
|
||||
}
|
||||
}
|
||||
export const geDebuffNum=()=>{
|
||||
|
||||
@@ -44,19 +44,20 @@ export const getMonList = (quality:number=0)=>{
|
||||
}).map(item=>item.uuid)
|
||||
}
|
||||
|
||||
|
||||
export const HeroPos={
|
||||
0:{pos:v3(-290,0,0)},
|
||||
1:{pos:v3(0,0,0)},
|
||||
2:{pos:v3(-100,0,0)},
|
||||
}
|
||||
export const MonSet = {
|
||||
0:{pos:v3(160,0,0)},
|
||||
1:{pos:v3(220,0,0)},
|
||||
2:{pos:v3(280,0,0)},
|
||||
3:{pos:v3(340,0,0)},
|
||||
4:{pos:v3(400,0,0)},
|
||||
5:{pos:v3(460,0,0)},
|
||||
0:{pos:v3(240,0,0)},
|
||||
1:{pos:v3(320,0,0)},
|
||||
2:{pos:v3(360,0,0)},
|
||||
3:{pos:v3(400,0,0)},
|
||||
4:{pos:v3(440,0,0)},
|
||||
5:{pos:v3(480,0,0)},
|
||||
6:{pos:v3(520,0,0)},
|
||||
7:{pos:v3(560,0,0)},
|
||||
}
|
||||
|
||||
export const HQuality = {
|
||||
@@ -75,11 +76,11 @@ export const HQuality = {
|
||||
export const HeroInfo = {
|
||||
//主将
|
||||
5001:{uuid:5001,name:"火焰骑士",path:"hk1", fac:FacSet.HERO, quality:HQuality.GREEN,lv:1,kind:1,
|
||||
type:HType.warrior,hp:100,ap:15,dis:100,cd:1,speed:150,skills:[6001],
|
||||
type:HType.warrior,hp:100,ap:15,dis:100,cd:1,speed:150,skills:[6001,6001],
|
||||
buff:[],info:"剑类专精,穿刺伤害额外+10%"},
|
||||
|
||||
5002:{uuid:5002,name:"hk1",path:"hk1", fac:FacSet.HERO, quality:HQuality.BLUE,lv:1,kind:1,
|
||||
type:HType.warrior,hp:100,ap:15,dis:100,cd:1,speed:150,skills:[6001],
|
||||
type:HType.warrior,hp:100,ap:15,dis:100,cd:1,speed:150,skills:[6001,6001],
|
||||
buff:[],info:"斧类专精,风怒概率增加10%"},
|
||||
|
||||
// 5003:{uuid:5003,name:"碎颅.赫克托",path:"k4", quality:HQuality.BLUE,lv:1,kind:1,
|
||||
@@ -91,7 +92,7 @@ export const HeroInfo = {
|
||||
// buff:[],info:"刀类专精,易伤效果额外持续1次"},
|
||||
|
||||
5005:{uuid:5005,name:"ha1",path:"ha1", fac:FacSet.HERO, quality:HQuality.BLUE,lv:1,kind:2,
|
||||
type:HType.remote,hp:100,ap:15,dis:400,cd:1,speed:100,skills:[6003],
|
||||
type:HType.remote,hp:100,ap:15,dis:400,cd:1,speed:100,skills:[6003,6003],
|
||||
buff:[],info:"说明"},
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user