|
@@ -622,14 +622,14 @@ class FightProc {
|
|
my_Assert(!in_array($mask, $gateInfo->FirstReward), ErrCode::gate_GatePriceHasReceive);
|
|
my_Assert(!in_array($mask, $gateInfo->FirstReward), ErrCode::gate_GatePriceHasReceive);
|
|
$gateInfo->FirstReward[] = $mask;
|
|
$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;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+// $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);
|
|
StoreProc::AddMultiItemInStore($prize);
|
|
}
|
|
}
|
|
ctx()->gates->GateList->$gateId = $gateInfo;
|
|
ctx()->gates->GateList->$gateId = $gateInfo;
|
|
@@ -739,7 +739,7 @@ class FightProc {
|
|
}
|
|
}
|
|
# 宝石奖励: 数量min-max;品质:权重,品质:权重...
|
|
# 宝石奖励: 数量min-max;品质:权重,品质:权重...
|
|
if (strlen($waveMo->rewardGem) > 0) {
|
|
if (strlen($waveMo->rewardGem) > 0) {
|
|
- self::funUnlock_Gem();
|
|
|
|
|
|
+ //self::funUnlock_Gem();
|
|
|
|
|
|
list($gs_num, $gs_props) = explode(';', $waveMo->rewardGem);
|
|
list($gs_num, $gs_props) = explode(';', $waveMo->rewardGem);
|
|
list($gem_min, $gem_max) = explode('-', $gs_num); # 宝石数量
|
|
list($gem_min, $gem_max) = explode('-', $gs_num); # 宝石数量
|
|
@@ -870,18 +870,18 @@ class FightProc {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 初次得到宝石 功能解锁
|
|
|
|
|
|
+ * 初次开启璀璨宝箱 功能解锁
|
|
*/
|
|
*/
|
|
- static function funUnlock_Gem() {
|
|
|
|
|
|
+ static function funUnlock_shopBox_bright_open() {
|
|
$dic = GameConfig::fun_unlock();
|
|
$dic = GameConfig::fun_unlock();
|
|
foreach ($dic as $id => $mo) {
|
|
foreach ($dic as $id => $mo) {
|
|
$tag = false;
|
|
$tag = false;
|
|
if ($mo->unlockTip == 1) {//$mo->unlockGateId == $gateId
|
|
if ($mo->unlockTip == 1) {//$mo->unlockGateId == $gateId
|
|
- if ($mo->unlockType1 != null && $mo->unlockType1 == Enum_FunUnlockType::getGem && ctx()->store->gemStore == null) {
|
|
|
|
|
|
+ if ($mo->unlockType1 != null && $mo->unlockType1 == Enum_FunUnlockType::shopBox_bright_open && ctx()->privateState->buyNum_ShopBoxBright == 0) {
|
|
$tag = true;
|
|
$tag = true;
|
|
}
|
|
}
|
|
|
|
|
|
- if ($mo->unlockType2 != null && $mo->unlockType2 == Enum_FunUnlockType::getGem && ctx()->store->gemStore == null) {
|
|
|
|
|
|
+ if ($mo->unlockType2 != null && $mo->unlockType2 == Enum_FunUnlockType::shopBox_bright_open && ctx()->privateState->buyNum_ShopBoxBright == 0) {
|
|
$tag = true;
|
|
$tag = true;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -990,8 +990,8 @@ class FightProc {
|
|
}
|
|
}
|
|
|
|
|
|
break;
|
|
break;
|
|
- case Enum_FunUnlockType::getGem:
|
|
|
|
- if (ctx()->store->gemStore != null) {
|
|
|
|
|
|
+ case Enum_FunUnlockType::funUnlock_shopBox_bright_open:
|
|
|
|
+ if (ctx()->privateState->buyNum_ShopBoxBright > 0) {
|
|
$funUnlock = true;
|
|
$funUnlock = true;
|
|
}
|
|
}
|
|
|
|
|