game: NPC가 조금 더 상위병종을 시도할 확률을 높임

This commit is contained in:
2022-08-20 14:39:51 +09:00
parent 2da374410b
commit b880b9bace
+1 -1
View File
@@ -174,7 +174,7 @@ class GameUnitDetail implements iAction{
$defaultWar *= 1 + $this->speed / 2; $defaultWar *= 1 + $this->speed / 2;
$defaultWar /= Util::valueFit(1 - $this->avoid / 100, 0.1); $defaultWar /= Util::valueFit(1 - $this->avoid / 100, 0.1);
$defaultWar *= 1 + $this->magicCoef / 2; $defaultWar *= 1 + $this->magicCoef / 2;
return sqrt($defaultWar); return $defaultWar;
} }
public function isValid($ownCities, $ownRegions, $relativeYear, $tech){ public function isValid($ownCities, $ownRegions, $relativeYear, $tech){