접경 방식 수정. 상업 투자의 접경식도 같이 수정

This commit is contained in:
2018-10-11 00:33:06 +09:00
parent 1067efbbee
commit 804b9a1d71
2 changed files with 7 additions and 7 deletions
+6 -6
View File
@@ -241,20 +241,20 @@ function SetNationFront($nationNo) {
'front'=>0
], 'nation=%i', $nationNo);
if($adj3){
if($adj1){
$db->update('city', [
'front'=>3,
], 'nation=%i and city in %li', $nationNo, array_keys($adj3));
'front'=>1,
], 'nation=%i and city in %li', $nationNo, array_keys($adj1));
}
if($adj2){
$db->update('city', [
'front'=>2,
], 'nation=%i and city in %li', $nationNo, array_keys($adj2));
}
if($adj1){
if($adj3){
$db->update('city', [
'front'=>1,
], 'nation=%i and city in %li', $nationNo, array_keys($adj1));
'front'=>3,
], 'nation=%i and city in %li', $nationNo, array_keys($adj3));
}
}
@@ -148,7 +148,7 @@ class che_상업투자 extends Command\GeneralCommand{
$exp = $general->onPreGeneralStatUpdate($general, 'experience', $exp);
$ded = $general->onPreGeneralStatUpdate($general, 'dedication', $ded);
if($this->city['front'] == 1 && $this->nation['capital'] != $this->city['city']){
if(in_array($this->city['front'], [1, 3]) && $this->nation['capital'] != $this->city['city']){
$score *= static::$debuffFront;
}