$_basegold, $_baserice를 GameConst로 변경

This commit is contained in:
2018-03-03 18:22:48 +09:00
parent d1026aae0f
commit 9903f5b624
7 changed files with 34 additions and 60 deletions
+4 -4
View File
@@ -159,8 +159,8 @@ if($isgen == "장수공격" || $isgen == "성벽공격" || $isgen == "장수평
$cityDef = getCityDef($city);
// 감소할 병사 수
$cityCrew = $_armperphase + $myAtt - $cityDef;
$myCrew = $_armperphase + $cityAtt - $myDef;
$cityCrew = GameConst::armperphase + $myAtt - $cityDef;
$myCrew = GameConst::armperphase + $cityAtt - $myDef;
$cityweight = $myAtt - $cityDef;
$myweight = $cityAtt - $myDef;
@@ -349,8 +349,8 @@ if($isgen == "장수공격" || $isgen == "성벽공격" || $isgen == "장수평
$opAtt = getAtt($game, $oppose, $tech2, 0);
$opDef = getDef($game, $oppose, $tech2);
// 감소할 병사 수
$myCrew = $_armperphase + $opAtt - $myDef;
$opCrew = $_armperphase + $myAtt - $opDef;
$myCrew = GameConst::armperphase + $opAtt - $myDef;
$opCrew = GameConst::armperphase + $myAtt - $opDef;
//훈련 사기따라
$myCrew = getCrew($myCrew, $oppose['atmos'], $general['train']);
$opCrew = getCrew($opCrew, $general['atmos'], $oppose['train']);