턴 계산 수정
This commit is contained in:
@@ -2214,15 +2214,9 @@ class GeneralAI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//NOTE: 훈련과 사기진작은 '금만 사용한다'는 가정을 하고 있음
|
//XXX: 훈련, 사기진작 금액을 하드코딩으로 계산중
|
||||||
$obj훈련 = buildGeneralCommandClass('che_훈련', $general, $env);
|
|
||||||
$obj사기진작 = buildGeneralCommandClass('che_사기진작', $general, $env);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$gold = $general->getVar('gold');
|
$gold = $general->getVar('gold');
|
||||||
$gold -= $obj훈련->getCost()[0] * 2;
|
$gold -= $this->fullLeadership * 3;
|
||||||
$gold -= $obj사기진작->getCost()[0] * 2;
|
|
||||||
|
|
||||||
if($gold <= 0){
|
if($gold <= 0){
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user