|
@@ -338,9 +338,10 @@ class FightProc {
|
|
if(Ins_GateInfo::GateTypeFromId($gateId) == Enum_GateType::MainStoryGate){
|
|
if(Ins_GateInfo::GateTypeFromId($gateId) == Enum_GateType::MainStoryGate){
|
|
ctx()->gates->UnlockNextPlotGate();
|
|
ctx()->gates->UnlockNextPlotGate();
|
|
$dic = GameConfig::gate();
|
|
$dic = GameConfig::gate();
|
|
- $index = 0;
|
|
|
|
|
|
+ $index = 0; # 挑战关卡解锁逻辑. -gwang 2024年4月15日
|
|
foreach ($dic as $id => $item) {
|
|
foreach ($dic as $id => $item) {
|
|
- if(Ints::Slice($gateId, 0, 1) == 2 && $item->challengeGateId == $gateId){
|
|
|
|
|
|
+ if(Ins_GateInfo::GateTypeFromId($id) == Enum_GateType::MainChallengeGate
|
|
|
|
+ && $item->challengeGateId == $gateId){
|
|
$index += 1;
|
|
$index += 1;
|
|
$gate = new Ins_GateInfo();
|
|
$gate = new Ins_GateInfo();
|
|
$gate->GateId = $id;
|
|
$gate->GateId = $id;
|