신규 AI 구현 준비

This commit is contained in:
2020-03-31 02:05:04 +09:00
parent b116741e25
commit e6c37c0d1e
4 changed files with 311 additions and 2 deletions
+6 -1
View File
@@ -10,6 +10,11 @@ class GeneralAI{
protected $nation;
protected $genType;
/** @var AutorunGeneralPolicy */
protected $generalPolicy;
/** @var AutorunNationPolicy */
protected $nationPolicy;
protected $env;
protected $baseDevelCost;
@@ -264,7 +269,7 @@ class GeneralAI{
if($develRate['trust'] < 1){
$commandObj = buildGeneralCommandClass('che_주민선정', $general, $env);
if($commandObj->isRunnable()){
$commandList['che_주민선정'] = power($leadership * 2, 1 / ($develRate['trust'] + 0.001));
$commandList['che_주민선정'] = pow($leadership * 2, 1 / ($develRate['trust'] + 0.001));
}
}
if($develRate['pop'] < 0.99){