解锁区域增加

master
chenanghui 4 days ago
parent ddcb581ab3
commit e225d0daf6
  1. 4
      assets/bundles/battleGame/prefab/BattleGame.prefab
  2. 11
      assets/script/battle/map/legacy/MapAreaUnlock.ts

@ -18270,8 +18270,8 @@
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 7.825, "x": 243.189,
"y": -801.177, "y": -942.231,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {

@ -58,7 +58,7 @@ interface CampUnlockTrack {
/** /**
* 地图解锁区域。 * 地图解锁区域。
* 区域 ID 从小到大依次解锁;进度与条件按 CampAreaID 隔离(镜像图双方互不影响)。 * 区域 ID 从小到大依次解锁;进度与条件按 CampAreaID 隔离(镜像图双方互不影响)。
* 当前区域从关卡 unlockland1-6 按权重随机一条条件,等级加上该阵营段位 levelvalue。 * 当前区域从关卡 unlockland1-11 按权重随机一条条件,等级加上该阵营段位 levelvalue。
*/ */
export class MapAreaUnlock { export class MapAreaUnlock {
/** 地图上出现过的区域 ID(双方共享序号,进度按阵营分轨) */ /** 地图上出现过的区域 ID(双方共享序号,进度按阵营分轨) */
@ -515,7 +515,7 @@ export class MapAreaUnlock {
} }
/** /**
* 按区域 ID 取 unlockland1-6。超出 1-6 时警告。 * 按区域 ID 取 unlockland1-11。超出 1-11 时警告。
* @param level 关卡行 * @param level 关卡行
* @param areaId 解锁区域 ID * @param areaId 解锁区域 ID
*/ */
@ -527,8 +527,13 @@ export class MapAreaUnlock {
case 4: return level.unlockland4; case 4: return level.unlockland4;
case 5: return level.unlockland5; case 5: return level.unlockland5;
case 6: return level.unlockland6; case 6: return level.unlockland6;
case 7: return level.unlockland7;
case 8: return level.unlockland8;
case 9: return level.unlockland9;
case 10: return level.unlockland10;
case 11: return level.unlockland11;
default: default:
console.warn('[MapAreaUnlock] 解锁区域ID只支持 1-6', areaId); console.warn('[MapAreaUnlock] 解锁区域ID只支持 1-11', areaId);
return null; return null;
} }
} }

Loading…
Cancel
Save