천도 버그 수정
This commit is contained in:
@@ -74,7 +74,7 @@ class che_감축 extends Command\NationCommand{
|
||||
|
||||
[$reqGold, $reqRice] = array_map('number_format', $this->getCost());
|
||||
$amount = number_format($this->env['develcost'] * 5);
|
||||
$reqTurn = $this->getPostReqTurn()+1;
|
||||
$reqTurn = $this->getPreReqTurn()+1;
|
||||
|
||||
return "{$name}/{$reqTurn}턴(금 {$reqGold}, 쌀 {$reqRice} 회수)";
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ class che_증축 extends Command\NationCommand{
|
||||
|
||||
[$reqGold, $reqRice] = array_map('number_format', $this->getCost());
|
||||
$amount = number_format($this->env['develcost'] * 5);
|
||||
$reqTurn = $this->getPostReqTurn()+1;
|
||||
$reqTurn = $this->getPreReqTurn()+1;
|
||||
|
||||
return "{$name}/{$reqTurn}턴(금 {$reqGold}, 쌀 {$reqRice})";
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ class che_천도 extends Command\NationCommand{
|
||||
ConstraintHelper::BeChief(),
|
||||
ConstraintHelper::SuppliedCity(),
|
||||
ConstraintHelper::SuppliedDestCity(),
|
||||
ConstraintHelper::NotSameDestCity(),
|
||||
ConstraintHelper::ReqNationValue('capital', '수도', '!=', $this->destCity['city'], '이미 수도입니다.'),
|
||||
ConstraintHelper::ReqNationGold(GameConst::$basegold+$reqGold),
|
||||
ConstraintHelper::ReqNationRice(GameConst::$baserice+$reqRice),
|
||||
];
|
||||
@@ -110,7 +110,7 @@ class che_천도 extends Command\NationCommand{
|
||||
}
|
||||
|
||||
public function getPreReqTurn():int{
|
||||
return 1 + $this->getDistance()*2;
|
||||
return $this->getDistance()*2;
|
||||
}
|
||||
|
||||
public function getPostReqTurn():int{
|
||||
|
||||
Reference in New Issue
Block a user