From ed2a2a89757492780b9ba34cc6bf138dd5259546 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sat, 15 Sep 2018 03:44:10 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B8=B0=EC=88=A0=EC=97=B0=EA=B5=AC=EC=9D=98?= =?UTF-8?q?=20calcBaseScore=EB=8A=94=20=EC=83=81=EC=97=85=20=ED=88=AC?= =?UTF-8?q?=EC=9E=90=20=EA=B2=83=EC=9D=84=20=EA=B0=80=EC=A0=B8=EC=98=A4?= =?UTF-8?q?=EA=B8=B0=EB=A1=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/Command/che_기술연구.php | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/hwe/sammo/Command/che_기술연구.php b/hwe/sammo/Command/che_기술연구.php index 2a6f2dea..f0c539f9 100644 --- a/hwe/sammo/Command/che_기술연구.php +++ b/hwe/sammo/Command/che_기술연구.php @@ -17,7 +17,7 @@ use function sammo\uniqueItemEx; use function sammo\getGeneralLeadership; -class che_기술연구 extends BaseCommand{ +class che_기술연구 extends che_상업투자{ static $statKey = 'intel'; static $actionKey = '기술'; static $actionName = '기술 연구'; @@ -43,25 +43,6 @@ class che_기술연구 extends BaseCommand{ $this->reqGold = $reqGold; } - protected function calcBaseScore():float{ - $general = $this->generalObj; - - if(static::$statKey == 'intel'){ - $score = getGeneralIntel($general->getRaw(), true, true, true, false); - } - else{ - throw new \sammo\MustNotBeReachedException(); - } - - $trust = Util::valueFit($this->city['trust'], 50); - $score *= $trust / 100; - $score *= getDomesticExpLevelBonus($general['explevel']); - $score *= Util::randRange(0.8, 1.2); - $score = $general->onCalcDomestic(static::$actionKey, 'score', $score); - - return $score; - } - public function run():bool{ if(!$this->isAvailable()){ throw new \RuntimeException('불가능한 커맨드를 강제로 실행 시도');