턴 표기 '드디어' 추가
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -139,6 +139,7 @@ class che_거병 extends Command\GeneralCommand{
|
||||
'turn_idx'=>$turnIdx,
|
||||
'action'=>'휴식',
|
||||
'arg'=>null,
|
||||
'brief'=>'휴식',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
){
|
||||
|
||||
@@ -278,6 +278,7 @@ class ResetHelper{
|
||||
'turn_idx'=>$turnIdx,
|
||||
'action'=>'휴식',
|
||||
'arg'=>null,
|
||||
'brief'=>'휴식'
|
||||
];
|
||||
}
|
||||
$db->insert('general_turn', $turnRows);
|
||||
|
||||
@@ -346,6 +346,7 @@ class NPC{
|
||||
'turn_idx'=>$turnIdx,
|
||||
'action'=>'휴식',
|
||||
'arg'=>null,
|
||||
'brief'=>'휴식',
|
||||
];
|
||||
}
|
||||
$db->insert('general_turn', $turnRows);
|
||||
|
||||
@@ -158,6 +158,7 @@ class Nation{
|
||||
'turn_idx'=>$turnIdx,
|
||||
'action'=>'휴식',
|
||||
'arg'=>'{}',
|
||||
'brief'=>'휴식',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user