|
@@ -68,14 +68,14 @@ class FightProc {
|
|
|
$mo = GameConfig::gate_getItem($passGateId);
|
|
|
$gateName = $mo->gateName;
|
|
|
$costTili = glc()->sweep_cost_tili;
|
|
|
- $curTili = ctx()->baseInfo->CurTili();
|
|
|
+ $curTili = ctx()->baseInfo->CurTili();
|
|
|
my_Assert($curTili >= $costTili, ErrCode::notenough_tili);
|
|
|
$max = glc()->sweepMaxNum;
|
|
|
my_Assert(ctx()->gates->fightSweepNum < $max, ErrCode::gate_SweepMaxNum_limit);
|
|
|
ctx()->gates->fightSweepNum += 1;
|
|
|
ctx()->baseInfo->Consume_tili($costTili);
|
|
|
$prizeArr = array();
|
|
|
-
|
|
|
+
|
|
|
$wavesArr = GameConfig::waves_getItemArray($passGateId);
|
|
|
$count = count($wavesArr);
|
|
|
$wavesMo = $wavesArr[$count - 1];
|
|
@@ -118,7 +118,7 @@ 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;
|
|
@@ -412,6 +412,7 @@ class FightProc {
|
|
|
'store' => ctx()->store,
|
|
|
'task' => ctx()->task,
|
|
|
'gold' => ctx()->baseInfo->gold,
|
|
|
+ 'cash' => ctx()->baseInfo->cash,
|
|
|
'reward' => StoreProc::$reward,
|
|
|
);
|
|
|
return Resp::ok($ret);
|
|
@@ -495,7 +496,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);//广播
|
|
|
+ SystemProc::GetGem_GreaterOrangeQual_MainGate(req()->zoneid, ctx()->baseInfo->name, Ins_GateInfo::gateNum($gateId), $gateMo->gateName, $gemId); //广播
|
|
|
StoreProc::PutGemInStore($gemId); # 发放宝石并退出本次投色子
|
|
|
$pickups .= ";$gemId,1";
|
|
|
break;
|