|
@@ -621,16 +621,11 @@ class FightProc {
|
|
|
if ($tag) {
|
|
|
my_Assert(!in_array($mask, $gateInfo->FirstReward), ErrCode::gate_GatePriceHasReceive);
|
|
|
$gateInfo->FirstReward[] = $mask;
|
|
|
-
|
|
|
-// $pStr = explode(';', $prize);
|
|
|
-// foreach ($pStr as $val) {
|
|
|
-// $arr = explode(',', $val);
|
|
|
-// if (GameConfig::item_getItem($arr[0]) == 201 || GameConfig::item_getItem($arr[0]) == 701) {
|
|
|
-// FightProc::funUnlock_Gem();
|
|
|
-// break;
|
|
|
-// }
|
|
|
-// }
|
|
|
StoreProc::AddMultiItemInStore($prize);
|
|
|
+
|
|
|
+ if(count(StoreProc::$reward_equip) > 0){
|
|
|
+ self::funUnlock_equip_firstTime();
|
|
|
+ }
|
|
|
}
|
|
|
ctx()->gates->GateList->$gateId = $gateInfo;
|
|
|
TaskProc::OnReceiveGateBoxReward();
|
|
@@ -724,6 +719,10 @@ class FightProc {
|
|
|
if ($waveMo->rewardItem != null) {
|
|
|
$reward = StoreProc::Distribute_Rewards($waveMo->rewardItem);
|
|
|
StoreProc::AddMultiItemInStore($reward);
|
|
|
+
|
|
|
+ if(count(StoreProc::$reward_equip) > 0){
|
|
|
+ self::funUnlock_equip_firstTime();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
# 图纸奖励: 数量min-max, 部位随机
|
|
@@ -870,18 +869,18 @@ class FightProc {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 初次开启璀璨宝箱 功能解锁
|
|
|
+ * 初次得到装备 功能解锁
|
|
|
*/
|
|
|
- static function funUnlock_shopBox_bright_open() {
|
|
|
+ static function funUnlock_equip_firstTime() {
|
|
|
$dic = GameConfig::fun_unlock();
|
|
|
foreach ($dic as $id => $mo) {
|
|
|
$tag = false;
|
|
|
if ($mo->unlockTip == 1) {//$mo->unlockGateId == $gateId
|
|
|
- if ($mo->unlockType1 != null && $mo->unlockType1 == Enum_FunUnlockType::shopBox_bright_open && ctx()->privateState->buyNum_ShopBoxBright == 0) {
|
|
|
+ if ($mo->unlockType1 != null && $mo->unlockType1 == Enum_FunUnlockType::equip_firstTime && ctx()->store->equip == null) {
|
|
|
$tag = true;
|
|
|
}
|
|
|
|
|
|
- if ($mo->unlockType2 != null && $mo->unlockType2 == Enum_FunUnlockType::shopBox_bright_open && ctx()->privateState->buyNum_ShopBoxBright == 0) {
|
|
|
+ if ($mo->unlockType2 != null && $mo->unlockType2 == Enum_FunUnlockType::equip_firstTime && ctx()->store->equip == null) {
|
|
|
$tag = true;
|
|
|
}
|
|
|
}
|
|
@@ -990,8 +989,8 @@ class FightProc {
|
|
|
}
|
|
|
|
|
|
break;
|
|
|
- case Enum_FunUnlockType::funUnlock_shopBox_bright_open:
|
|
|
- if (ctx()->privateState->buyNum_ShopBoxBright > 0) {
|
|
|
+ case Enum_FunUnlockType::equip_firstTime:
|
|
|
+ if (ctx()->store->equip != null) {
|
|
|
$funUnlock = true;
|
|
|
}
|
|
|
|