턴 표기 '드디어' 추가

This commit is contained in:
2019-10-06 19:01:46 +09:00
parent 4e988db50f
commit a47905541c
19 changed files with 186 additions and 53 deletions
+4
View File
@@ -215,6 +215,10 @@ abstract class BaseCommand{
return static::getName();
}
public function getRawClassName():string{
return static::class;
}
public function getCompensationStyle():?int{
//1 : Positive
//0 : Neutral
+1
View File
@@ -139,6 +139,7 @@ class che_거병 extends Command\GeneralCommand{
'turn_idx'=>$turnIdx,
'action'=>'휴식',
'arg'=>null,
'brief'=>'휴식',
];
}
+3 -1
View File
@@ -1177,7 +1177,8 @@ class GeneralAI{
//NOTE: 부대 편성에 보여야 하므로 이것만 DB에 직접 접근함.
$db->update('general_turn', [
'action'=>'che_집합',
'arg'=>'{}'
'arg'=>'{}',
'brief'=>'집합'
], 'general_ID=%i AND turn_idx < 6', $general->getID());
}
@@ -1402,6 +1403,7 @@ class GeneralAI{
$sumLeadershipInCity = $db->queryFirstField('SELECT sum(leadership) FROM general WHERE nation = %i AND city = %i AND leadership > 40', $nationID, $cityID);
if(
$sumLeadershipInCity > 0 &&
$city['pop'] > 30000 + $general->getLeadership(false) * 100 * 1.3 &&
Util::randBool(($city['pop'] - 30000) / $sumLeadershipInCity * 100)
){
+1
View File
@@ -278,6 +278,7 @@ class ResetHelper{
'turn_idx'=>$turnIdx,
'action'=>'휴식',
'arg'=>null,
'brief'=>'휴식'
];
}
$db->insert('general_turn', $turnRows);
+1
View File
@@ -346,6 +346,7 @@ class NPC{
'turn_idx'=>$turnIdx,
'action'=>'휴식',
'arg'=>null,
'brief'=>'휴식',
];
}
$db->insert('general_turn', $turnRows);
+1
View File
@@ -158,6 +158,7 @@ class Nation{
'turn_idx'=>$turnIdx,
'action'=>'휴식',
'arg'=>'{}',
'brief'=>'휴식',
];
}
}