기본 커맨드 입력 가능하도록 구현

This commit is contained in:
2019-10-06 22:39:13 +09:00
parent 07317b86a2
commit da205c09f9
13 changed files with 183 additions and 55 deletions
@@ -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;
+1 -1
View File
@@ -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{