game: 계략 성공률 한도를 50%로 제한

This commit is contained in:
2022-03-27 16:55:47 +09:00
parent 65e1495b44
commit 2b2a328062
+1
View File
@@ -281,6 +281,7 @@ class che_화계 extends Command\GeneralCommand
$prob = GameConst::$sabotageDefaultProb + $this->calcSabotageAttackProb() - $this->calcSabotageDefenceProb($destCityGeneralList);
$prob /= $dist;
$prob = Util::valueFit($prob, 0, 0.5);
if (!Util::randBool($prob)) {
$josaYi = JosaUtil::pick($commandName, '이');