기본 커맨드 입력 가능하도록 구현
This commit is contained in:
@@ -84,6 +84,13 @@ class che_상업투자 extends Command\GeneralCommand{
|
||||
|
||||
return [$reqGold, $reqRice];
|
||||
}
|
||||
|
||||
|
||||
public function getCompensationStyle():?int{
|
||||
$develCost = $this->env['develcost'];
|
||||
$reqGold = $this->getCost()[0];
|
||||
return $develCost <=>$reqGold;
|
||||
}
|
||||
|
||||
public function getPreReqTurn():int{
|
||||
return 0;
|
||||
|
||||
@@ -62,6 +62,12 @@ class che_정착장려 extends Command\GeneralCommand{
|
||||
|
||||
return [$reqGold, $reqRice];
|
||||
}
|
||||
|
||||
public function getCompensationStyle():?int{
|
||||
$develCost = $this->env['develcost'] * 2;
|
||||
$reqGold = $this->getCost()[1];
|
||||
return $develCost <=>$reqGold;
|
||||
}
|
||||
|
||||
public function getPreReqTurn():int{
|
||||
return 0;
|
||||
|
||||
@@ -62,6 +62,12 @@ class che_주민선정 extends Command\GeneralCommand{
|
||||
|
||||
return [$reqGold, $reqRice];
|
||||
}
|
||||
|
||||
public function getCompensationStyle():?int{
|
||||
$develCost = $this->env['develcost'] * 2;
|
||||
$reqGold = $this->getCost()[1];
|
||||
return $develCost <=>$reqGold;
|
||||
}
|
||||
|
||||
public function getPreReqTurn():int{
|
||||
return 0;
|
||||
|
||||
@@ -63,7 +63,7 @@ class che_첩보 extends Command\GeneralCommand{
|
||||
|
||||
public function getCost():array{
|
||||
$env = $this->env;
|
||||
return [$env['develcost'], 0];
|
||||
return [$env['develcost'], $env['develcost']];
|
||||
}
|
||||
|
||||
public function getPreReqTurn():int{
|
||||
|
||||
Reference in New Issue
Block a user