|
@@ -1,16 +1,8 @@
|
|
|
<?php
|
|
|
-
|
|
|
-/*
|
|
|
- * To change this license header, choose License Headers in Project Properties.
|
|
|
- * To change this template file, choose Tools | Templates
|
|
|
- * and open the template in the editor.
|
|
|
- */
|
|
|
-
|
|
|
namespace loyalsoft;
|
|
|
|
|
|
/**
|
|
|
- * Description of FightProc
|
|
|
- *
|
|
|
+ * 战斗模块
|
|
|
* @author c'y'zhao
|
|
|
*/
|
|
|
class FightProc {
|
|
@@ -325,12 +317,11 @@ class FightProc {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 关卡战斗结算
|
|
|
+ * [6801]关卡战斗结算
|
|
|
* @return type
|
|
|
*/
|
|
|
public static function Settle() {
|
|
|
list($resultType, $gateId, $gold, $curTs, $pickups) = req()->paras;
|
|
|
-
|
|
|
$gateMo = GameConfig::gate_getItem($gateId);
|
|
|
my_Assert($gateMo != null, ErrCode::err_const_no);
|
|
|
my_Assert(StlUtil::dictHasProperty(ctx()->gates->GateList, $gateId), ErrCode::user_Gate_NoUserGateInfo);
|
|
@@ -339,7 +330,6 @@ class FightProc {
|
|
|
if ($curTs >= $ts) {
|
|
|
$gateInfo->MaxSeconds = $curTs;
|
|
|
}
|
|
|
-
|
|
|
if ($resultType) { # 胜利
|
|
|
if (ctx()->gates->GateList->$gateId->pass == 0) {
|
|
|
ctx()->gates->GateList->$gateId->pass = 1;
|
|
@@ -355,14 +345,11 @@ class FightProc {
|
|
|
$gate = new Ins_GateInfo();
|
|
|
$gate->GateId = $id;
|
|
|
ctx()->gates->GateList->$id = $gate;
|
|
|
- }
|
|
|
-
|
|
|
+ }
|
|
|
if($index >= 3){
|
|
|
break;
|
|
|
}
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
+ }
|
|
|
} else {
|
|
|
|
|
|
}
|