From 2c81be4d125adee54fdfdfe0a0c8126dc883f98b Mon Sep 17 00:00:00 2001 From: Hide_D Date: Fri, 23 Sep 2022 21:59:51 +0900 Subject: [PATCH] =?UTF-8?q?game:=20=EA=B3=84=EB=9E=B5=20=EB=B0=A9=EC=96=B4?= =?UTF-8?q?=20=ED=99=95=EB=A5=A0=EC=97=90=20=EB=8F=84=EC=8B=9C=20=EA=B1=B0?= =?UTF-8?q?=EC=A3=BC=20=EC=9E=A5=EC=88=98=20=EC=88=98=20=EB=B0=98=EC=98=81?= =?UTF-8?q?=20-=20sqrt(=EC=9E=A5=EC=88=98=20=EC=88=98)=20*=205%p?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/sammo/Command/General/che_화계.php | 1 + hwe/sammo/GameConstBase.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/hwe/sammo/Command/General/che_화계.php b/hwe/sammo/Command/General/che_화계.php index ce06a2b2..99993fc7 100644 --- a/hwe/sammo/Command/General/che_화계.php +++ b/hwe/sammo/Command/General/che_화계.php @@ -94,6 +94,7 @@ class che_화계 extends Command\GeneralCommand $prob = $maxGenScore / GameConst::$sabotageProbCoefByStat; $prob += $probCorrection; + $prob += sqrt(count($destCityGeneralList)) * GameConst::$sabotageDefenceCoefByGeneralCnt; $prob += $destCity['secu'] / $destCity['secu_max'] / 5; //최대 20%p $prob += $destCity['supply'] ? 0.1 : 0; diff --git a/hwe/sammo/GameConstBase.php b/hwe/sammo/GameConstBase.php index b192a1fa..fa4415a7 100644 --- a/hwe/sammo/GameConstBase.php +++ b/hwe/sammo/GameConstBase.php @@ -46,6 +46,8 @@ class GameConstBase public static $sabotageDefaultProb = 0.35; /** @var int 계략시 확률 가중치(수치가 클수록 변화가 적음 : (지력차/$firing + $basefiring)*/ public static $sabotageProbCoefByStat = 300; + /** @var float 인원수 별 계략 방어 가중치 */ + public static $sabotageDefenceCoefByGeneralCnt = 0.05; /** @var int 계략시 최소 수치 감소량*/ public static $sabotageDamageMin = 100; /** @var int 계략시 최대 수치 감소량*/