game: 반계도구 제거, 도구 밸런스 조정

This commit is contained in:
2022-02-22 00:14:20 +09:00
parent 90a71ba75d
commit 0807f9912c
17 changed files with 56 additions and 38 deletions
+3 -1
View File
@@ -2415,7 +2415,9 @@ function SabotageInjury(array $cityGeneralList, string $reason): int
foreach ($cityGeneralList as $general) {
/** @var General $general */
if (!Util::randBool(0.3)) {
$injuryProb = 0.3;
$injuryProb = $general->onCalcStat($general, 'injuryProb', $injuryProb);
if (!Util::randBool($injuryProb)) {
continue;
}
$general->getLogger()->pushGeneralActionLog($text);