护盾改为 护甲值
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user