|
@@ -149,7 +149,7 @@ class FightProc {
|
|
// isEditor() && $gateInfo = new Ins_GateInfo();
|
|
// isEditor() && $gateInfo = new Ins_GateInfo();
|
|
$gateInfo = ctx()->gates->GateList->$gateId;
|
|
$gateInfo = ctx()->gates->GateList->$gateId;
|
|
my_Assert($gateInfo->pass, ErrCode::gate_GateNoUnlock); # 通关后解锁难度1
|
|
my_Assert($gateInfo->pass, ErrCode::gate_GateNoUnlock); # 通关后解锁难度1
|
|
- my_Assert($gateInfo->tz_state + 1 >= $index, ErrCode::gate_GateNoUnlock); # 通关上一难度解锁当前难度
|
|
|
|
|
|
+// my_Assert($gateInfo->tz_state + 1 >= $index, ErrCode::gate_GateNoUnlock); # 通关上一难度解锁当前难度
|
|
|
|
|
|
FightProc::funUnlock_mainChallengeGate_State(true, $gateId, $index);
|
|
FightProc::funUnlock_mainChallengeGate_State(true, $gateId, $index);
|
|
$gateInfo->tz_state = $index;
|
|
$gateInfo->tz_state = $index;
|
|
@@ -721,11 +721,11 @@ class FightProc {
|
|
$str = "1," . $gold + $waveMo->rewardGold;
|
|
$str = "1," . $gold + $waveMo->rewardGold;
|
|
StoreProc::AddMultiItemInStore($str);
|
|
StoreProc::AddMultiItemInStore($str);
|
|
|
|
|
|
- if($waveMo->rewardItem != null){
|
|
|
|
|
|
+ if ($waveMo->rewardItem != null) {
|
|
$reward = StoreProc::Distribute_Rewards($waveMo->rewardItem);
|
|
$reward = StoreProc::Distribute_Rewards($waveMo->rewardItem);
|
|
StoreProc::AddMultiItemInStore($reward);
|
|
StoreProc::AddMultiItemInStore($reward);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
# 图纸奖励: 数量min-max, 部位随机
|
|
# 图纸奖励: 数量min-max, 部位随机
|
|
if (strlen($waveMo->rewardTuZhi) > 0 && str_contains($waveMo->rewardTuZhi, '-')) {
|
|
if (strlen($waveMo->rewardTuZhi) > 0 && str_contains($waveMo->rewardTuZhi, '-')) {
|
|
list($tz_min, $tz_max) = explode('-', $waveMo->rewardTuZhi); # 图纸数量
|
|
list($tz_min, $tz_max) = explode('-', $waveMo->rewardTuZhi); # 图纸数量
|
|
@@ -800,14 +800,13 @@ class FightProc {
|
|
);
|
|
);
|
|
return Resp::ok($ret);
|
|
return Resp::ok($ret);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 装备概率结算
|
|
* 装备概率结算
|
|
* @param type $equipStr
|
|
* @param type $equipStr
|
|
*/
|
|
*/
|
|
private static function EquipSettle($equipStr) {
|
|
private static function EquipSettle($equipStr) {
|
|
StoreProc::DistributeItemsBox($itemId);
|
|
StoreProc::DistributeItemsBox($itemId);
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
// <editor-fold defaultstate="collapsed" desc="功能解锁">
|
|
// <editor-fold defaultstate="collapsed" desc="功能解锁">
|
|
@@ -1720,7 +1719,7 @@ class FightProc {
|
|
if ($ins_Equip->mo()->position % 2 == 1) {
|
|
if ($ins_Equip->mo()->position % 2 == 1) {
|
|
$attck += GameConfig::equip_levelupgrade_getItem($ins_Equip->mo()->rarity, $ins_Equip->qual, $ins_Equip->mo()->position, $ins_Equip->level)->attckNum;
|
|
$attck += GameConfig::equip_levelupgrade_getItem($ins_Equip->mo()->rarity, $ins_Equip->qual, $ins_Equip->mo()->position, $ins_Equip->level)->attckNum;
|
|
} elseif ($ins_Equip->mo()->position % 2 == 0) {
|
|
} elseif ($ins_Equip->mo()->position % 2 == 0) {
|
|
- $hp += GameConfig::equip_levelupgrade_getItem($ins_Equip->mo()->rarity, $ins_Equip->qual,$ins_Equip->mo()->position, $ins_Equip->level)->hpNum;
|
|
|
|
|
|
+ $hp += GameConfig::equip_levelupgrade_getItem($ins_Equip->mo()->rarity, $ins_Equip->qual, $ins_Equip->mo()->position, $ins_Equip->level)->hpNum;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|