game: 계략 방어 확률에 도시 거주 장수 수 반영

- sqrt(장수 수) * 5%p
This commit is contained in:
2022-09-23 21:59:51 +09:00
parent f10289f7b6
commit 2c81be4d12
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -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;