|
@@ -638,6 +638,10 @@ class FightProc {
|
|
|
if ($tag) {
|
|
|
my_Assert(!in_array($mask, $gateInfo->FirstReward), ErrCode::gate_GatePriceHasReceive);
|
|
|
$gateInfo->FirstReward[] = $mask;
|
|
|
+ if ($gateId == GameConfig::glc2()->guide_equipLevel_triggerGateId && $index == GameConfig::glc2()->guide_equipLevel_triggerGateBoxIndex) {
|
|
|
+ ctx()->privateData(true)->funUnlockRecord_3[] = 5;
|
|
|
+ }
|
|
|
+
|
|
|
StoreProc::AddMultiItemInStore($prize);
|
|
|
}
|
|
|
ctx()->gates->GateList->$gateId = $gateInfo;
|
|
@@ -655,6 +659,7 @@ class FightProc {
|
|
|
'reward_equip' => StoreProc::$reward_equip,
|
|
|
'funUnlockRecord' => ctx()->privateState->funUnlockRecord,
|
|
|
'funUnlockRecord_2' => ctx()->privateState->funUnlockRecord_2,
|
|
|
+ 'funUnlockRecord_3' => ctx()->privateState->funUnlockRecord_3,
|
|
|
);
|
|
|
return Resp::ok($ret);
|
|
|
}
|
|
@@ -876,13 +881,32 @@ class FightProc {
|
|
|
ctx()->privateData(true)->funUnlockRecord[] = $id;
|
|
|
ctx()->privateData(true)->funUnlockRecord_2[] = $id;
|
|
|
if ($id == 13 || $id == 16 || $id == 14) {
|
|
|
- ctx()->privateData(true)->funUnlockRecord_3[] = $id;
|
|
|
+ ctx()->privateData(true)->funUnlockRecord_3[] = self::unlockGuideType($id);
|
|
|
}
|
|
|
self::SubFunDateInit_FunUnlock($id);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ public static function unlockGuideType($id) {
|
|
|
+ $type = 0;
|
|
|
+ switch ($id) {
|
|
|
+ case 13://坊市
|
|
|
+ $type = 1;
|
|
|
+ break;
|
|
|
+ case 16://启灵
|
|
|
+ $type = 1;
|
|
|
+ break;
|
|
|
+ case 14://装备
|
|
|
+ $type = 2;
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+ return $type;
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 初次得到装备 功能解锁
|
|
@@ -906,7 +930,7 @@ class FightProc {
|
|
|
ctx()->privateData(true)->funUnlockRecord_2[] = $id;
|
|
|
|
|
|
if ($id == 13 || $id == 16 || $id == 14) {
|
|
|
- ctx()->privateData(true)->funUnlockRecord_3[] = $id;
|
|
|
+ ctx()->privateData(true)->funUnlockRecord_3[] = self::unlockGuideType($id);
|
|
|
}
|
|
|
self::SubFunDateInit_FunUnlock($id);
|
|
|
}
|
|
@@ -933,7 +957,7 @@ class FightProc {
|
|
|
ctx()->privateData(true)->funUnlockRecord[] = $id;
|
|
|
ctx()->privateData(true)->funUnlockRecord_2[] = $id;
|
|
|
if ($id == 13 || $id == 16 || $id == 14) {
|
|
|
- ctx()->privateData(true)->funUnlockRecord_3[] = $id;
|
|
|
+ ctx()->privateData(true)->funUnlockRecord_3[] = self::unlockGuideType($id);
|
|
|
}
|
|
|
self::SubFunDateInit_FunUnlock($id);
|
|
|
}
|
|
@@ -972,7 +996,7 @@ class FightProc {
|
|
|
ctx()->privateData(true)->funUnlockRecord[] = $id;
|
|
|
ctx()->privateData(true)->funUnlockRecord_2[] = $id;
|
|
|
if ($id == 13 || $id == 16 || $id == 14) {
|
|
|
- ctx()->privateData(true)->funUnlockRecord_3[] = $id;
|
|
|
+ ctx()->privateData(true)->funUnlockRecord_3[] = self::unlockGuideType($id);
|
|
|
}
|
|
|
self::SubFunDateInit_FunUnlock($id);
|
|
|
}
|