$_basegold, $_baserice를 GameConst로 변경
This commit is contained in:
1 parent
d1026aae0f
commit
9903f5b624
7 files changed
+34
-60
No files matched your search
+4
-4
@@ -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']);
|
||||
|
||||
Reference in new issue
Block a user