From b880b9baced5f26a7c687a3619142c6f2321ce1b Mon Sep 17 00:00:00 2001 From: Hide_D Date: Sat, 20 Aug 2022 14:39:51 +0900 Subject: [PATCH] =?UTF-8?q?game:=20NPC=EA=B0=80=20=EC=A1=B0=EA=B8=88=20?= =?UTF-8?q?=EB=8D=94=20=EC=83=81=EC=9C=84=EB=B3=91=EC=A2=85=EC=9D=84=20?= =?UTF-8?q?=EC=8B=9C=EB=8F=84=ED=95=A0=20=ED=99=95=EB=A5=A0=EC=9D=84=20?= =?UTF-8?q?=EB=86=92=EC=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/GameUnitDetail.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hwe/sammo/GameUnitDetail.php b/hwe/sammo/GameUnitDetail.php index 94ca47d6..865df3a9 100644 --- a/hwe/sammo/GameUnitDetail.php +++ b/hwe/sammo/GameUnitDetail.php @@ -27,7 +27,7 @@ class GameUnitDetail implements iAction{ public function __construct( int $id, int $armType, - string $name, + string $name, int $attack, int $defence, int $speed, @@ -110,7 +110,7 @@ class GameUnitDetail implements iAction{ } else if($this->armType == GameUnitConst::T_MISC){ $ratio = $general->getIntel(true, true, true) + - $general->getLeadership(true, true, true) + + $general->getLeadership(true, true, true) + $general->getStrength(true, true, true); $ratio = $ratio*2/3 - 40; } @@ -174,7 +174,7 @@ class GameUnitDetail implements iAction{ $defaultWar *= 1 + $this->speed / 2; $defaultWar /= Util::valueFit(1 - $this->avoid / 100, 0.1); $defaultWar *= 1 + $this->magicCoef / 2; - return sqrt($defaultWar); + return $defaultWar; } public function isValid($ownCities, $ownRegions, $relativeYear, $tech){ @@ -256,6 +256,6 @@ class GameUnitDetail implements iAction{ } } return new WarUnitTriggerCaller(...$triggerList); - + } } \ No newline at end of file