From 836adcfe3ccacc3ea9bc64d2119ba1ebd0b35b11 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Sun, 30 Apr 2023 00:15:17 +0900 Subject: [PATCH] =?UTF-8?q?game:=20=EC=A0=84=EB=B0=A9=20=EB=82=B4=EC=A0=95?= =?UTF-8?q?=EC=8B=9C,=20=EC=88=98=EB=8F=84=EA=B0=80=20=EC=A0=84=EB=B0=A9?= =?UTF-8?q?=EC=9D=B4=EC=96=B4=EB=8F=84=20=EA=B0=90=EC=87=A0=EB=90=98?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EC=84=A4=EC=A0=95=20-=20185=EB=85=84?= =?UTF-8?q?=EA=B9=8C=EC=A7=80=EB=8A=94=20=ED=95=B4=EB=8B=B9=20=EC=97=86?= =?UTF-8?q?=EC=9D=8C(=EB=94=94=EB=B2=84=ED=94=84=20*=200%)=20-=20=EC=9D=B4?= =?UTF-8?q?=ED=9B=84=201=EB=85=84=EB=A7=88=EB=8B=A4=20=EC=8B=A4=EC=A0=9C?= =?UTF-8?q?=20=EC=A0=81=EC=9A=A9=EB=9F=89=20=EB=8C=80=EB=B9=84=205%?= =?UTF-8?q?=EC=94=A9=20=EA=B0=80=EC=82=B0=20=EC=A0=81=EC=9A=A9=EB=90=A8=20?= =?UTF-8?q?-=20205=EB=85=84=EC=9D=B4=20=EB=90=98=EB=A9=B4=20=EC=88=98?= =?UTF-8?q?=EB=8F=84=EC=97=AC=EB=8F=84=20=EC=A0=84=EB=B0=A9=20=EB=82=B4?= =?UTF-8?q?=EC=A0=95=20=EA=B0=90=EC=87=A0=EA=B0=80=20=EA=B7=B8=EB=8C=80?= =?UTF-8?q?=EB=A1=9C=20=EC=A0=81=EC=9A=A9=EB=90=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/Command/General/che_상업투자.php | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/hwe/sammo/Command/General/che_상업투자.php b/hwe/sammo/Command/General/che_상업투자.php index 3838ca9a..2efab27c 100644 --- a/hwe/sammo/Command/General/che_상업투자.php +++ b/hwe/sammo/Command/General/che_상업투자.php @@ -185,8 +185,21 @@ class che_상업투자 extends Command\GeneralCommand{ $logger->pushGeneralActionLog(static::$actionName."{$josaUl} 하여 $scoreText 상승했습니다. <1>$date"); } - if(in_array($this->city['front'], [1, 3]) && $this->nation['capital'] != $this->city['city']){ - $score *= static::$debuffFront; + if(in_array($this->city['front'], [1, 3])){ + $debuffFront = static::$debuffFront; + + if($this->nation['capital'] == $this->city['city']){ + $gameStor = \sammo\KVStorage::getStorage($db, 'game_env'); + [$year, $startYear] = $gameStor->getValuesAsArray(['year', 'startyear']); + $relYear = $year - $startYear; + + if($relYear < 25){ + $debuffScale = Util::clamp($relYear - 5, 0, 20) * 0.05; + $debuffFront = ($debuffScale * $debuffFront) + (1 - $debuffScale); + } + } + + $score *= $debuffFront; } //NOTE: 내정량 상승시 초과 가능?