군량매매 구현

This commit is contained in:
Hide_D committed 2018-10-21 02:36:05 +09:00
1 parent b6db653f41
commit 6e5faa8cc1
4 files changed
+183 -271

No files matched your search

+1 -2
View File
@@ -105,9 +105,8 @@ class che_징병 extends Command\GeneralCommand{
}
public function getCost():array{
if($this->reqCrewType === null || $this->reqCrew){
if(!$this->isArgValid){
return [0, 0];
//throw new \RuntimeException('요구사항 초기화가 이뤄지지 않았음');
}
$reqGold = $this->reqCrewType->costWithTech($this->nation['tech'], $this->reqCrew);
$reqGold = $general->onCalcDomestic('징병', 'cost', $reqGold, ['armType'=>$this->reqCrewType->armType]);