|
@@ -65,7 +65,8 @@ class FightProc {
|
|
|
|
|
|
$passGateId = ctx()->gates->maxPassGateId();
|
|
|
my_Assert($passGateId != 0, ErrCode::gate_NoSweep);
|
|
|
- //$mo = GameConfig::gate_getItem(ctx()->gates->UnlockedGatesMaxId);
|
|
|
+ $mo = GameConfig::gate_getItem($passGateId);
|
|
|
+ $gateName = $mo->gateName;
|
|
|
$costTili = glc()->sweep_cost_tili;
|
|
|
$curTili = ctx()->baseInfo->CurTili();
|
|
|
my_Assert($curTili >= $costTili, ErrCode::notenough_tili);
|
|
@@ -117,6 +118,8 @@ class FightProc {
|
|
|
foreach ($dic as $key => $gemMo) {
|
|
|
if ($gemMo->qual == $qual && $gemMo->position == $posId) {
|
|
|
$prizeArr[] = $gemMo->typeId . ',' . $list[1];
|
|
|
+
|
|
|
+ SystemProc::GetGem_GreaterOrangeQual_SweepMainGateIndex(req()->zoneid, ctx()->baseInfo->name, Ins_GateInfo::gateNum($passGateId), $gateName, $gemMo->typeId);
|
|
|
StoreProc::PutGemInStore($gemMo->typeId, $list[1]);
|
|
|
break;
|
|
|
}
|
|
@@ -492,6 +495,7 @@ class FightProc {
|
|
|
foreach ($pool as $item) {
|
|
|
if ($r <= ($l + $item['p'])) {
|
|
|
$gemId = $item['q'] * 100000 + rand(1, 6) * 1000;
|
|
|
+ SystemProc::GetGem_GreaterOrangeQual_MainGate(req()->zoneid, ctx()->baseInfo->name,Ins_GateInfo::gateNum($gateId), $gateMo->gateName, $gemId);//广播
|
|
|
StoreProc::PutGemInStore($gemId); # 发放宝石并退出本次投色子
|
|
|
$pickups .= ";$gemId,1";
|
|
|
break;
|