turntime 관련 조정중

This commit is contained in:
2019-10-05 10:52:31 +09:00
parent 01d3e6c03d
commit 969306822f
53 changed files with 156 additions and 66 deletions
+6
View File
@@ -116,6 +116,12 @@ class GeneralAI{
$nationID = $this->general->getNationID();
$env = $this->env;
if(Util::joinYearMonth($env['year'], $env['month']) <= Util::joinYearMonth($env['startyear']+2, 5)){
$this->dipState = self::d평화;
$this->attackable = false;
return;
}
$frontStatus = $db->queryFirstField('SELECT max(front) FROM city WHERE nation=%i AND supply=1', $nationID);
// 공격가능도시 있으면
$this->attackable = ($frontStatus !== null)?$frontStatus:false;