Browse Source

feat:提交优化与bug修复

zouwuqiang 1 year ago
parent
commit
ea54cb3bbb

File diff suppressed because it is too large
+ 0 - 0
assets/bundle/config/game/CheckpointLevel.json


+ 0 - 1
assets/script/game/checkpoint/bll/CheckpointUpgrade.ts

@@ -31,7 +31,6 @@ export class CheckpointUpgradeSystem extends ecs.ComblockSystem implements ecs.I
             rlm.vm.lv++;                   // 提升一级
         else
             rlm.vm.lv = ru.lv;             // 设置等级
-
         const rnd = Math.floor(Math.random() * 3)
         // 当前等级配置
         rlm.rtluCurrent.init(rlm.vm.lv);

+ 2 - 2
assets/script/game/checkpoint/bll/InitCheckpoint.ts

@@ -75,8 +75,8 @@ export class InitCheckpointSystem extends ecs.ComblockSystem implements ecs.IEnt
                 const colorArr = levelColor as number[]
 
                 let newPeoplePosition = []
-                if (peoplePosition) {
-                    newPeoplePosition = peoplePosition
+                if (peoplePosition&&peoplePosition.length>0) {
+                    newPeoplePosition = [...peoplePosition]
                 } else {
                     e.CheckpointModel.cells?.forEach((v, xIndex) => {
                         v?.forEach((val, yIndex) => {

BIN
excel/CheckpointLevel.xlsx


Some files were not shown because too many files changed in this diff