fix: 조사 관련 문제 수정

This commit is contained in:
2022-08-28 15:40:52 +09:00
parent b28ca864f9
commit 8a987cc55e
5 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -100,7 +100,7 @@ if(in_array($stateOpt, ['try_destroy_src', 'try_destroy_dest'])){
'reason'=>'파기' 'reason'=>'파기'
]; ];
} }
$msgText = "외교 서신 #{$letterNo} 파기했습니다."; $msgText = "외교 서신(#{$letterNo})을 파기했습니다.";
$lastState = 'cancelled'; $lastState = 'cancelled';
} }
else{ else{
@@ -114,7 +114,7 @@ else{
'aux'=>Json::encode($aux) 'aux'=>Json::encode($aux)
], 'no=%i', $letterNo); ], 'no=%i', $letterNo);
$msgText = "외교 서신 #{$letterNo} 파기 요청합니다."; $msgText = "외교 서신(#{$letterNo})을 파기 요청합니다.";
$lastState = 'activated'; $lastState = 'activated';
} }
+2 -2
View File
@@ -85,7 +85,7 @@ if($isAgree){
], 'no=%i', $prevLetterNo); ], 'no=%i', $prevLetterNo);
$prevLetterNo = $db->queryFirstField('SELECT prev_no FROM ng_diplomacy WHERE state != \'cancelled\' AND no = %i', $prevLetterNo); $prevLetterNo = $db->queryFirstField('SELECT prev_no FROM ng_diplomacy WHERE state != \'cancelled\' AND no = %i', $prevLetterNo);
} }
$msgText = "외교 서신 #{$letterNo} 승인되었습니다."; $msgText = "외교 서신( #{$letterNo})이 승인되었습니다.";
} }
else{ else{
$aux['reason'] = [ $aux['reason'] = [
@@ -97,7 +97,7 @@ else{
'state'=>'cancelled', 'state'=>'cancelled',
'aux'=>Json::encode($aux) 'aux'=>Json::encode($aux)
], 'no=%i', $letterNo); ], 'no=%i', $letterNo);
$msgText = "외교 서신 #{$letterNo} 거부되었습니다."; $msgText = "외교 서신(#{$letterNo})이 거부되었습니다.";
if($reason){ if($reason){
$msgText .= ' 이유 : '.$reason; $msgText .= ' 이유 : '.$reason;
} }
+1 -1
View File
@@ -70,7 +70,7 @@ $db->update('ng_diplomacy', [
'state'=>'cancelled', 'state'=>'cancelled',
'aux'=>Json::encode($aux) 'aux'=>Json::encode($aux)
], 'no=%i', $letterNo); ], 'no=%i', $letterNo);
$msgText = "외교 서신 #{$letterNo} 회수되었습니다."; $msgText = "외교 서신(#{$letterNo})이 회수되었습니다.";
$msg = new Message( $msg = new Message(
Message::MSGTYPE_DIPLOMACY, Message::MSGTYPE_DIPLOMACY,
+1 -1
View File
@@ -82,7 +82,7 @@ function applyNationPolicy($policy, $nationID, $generalName): ?string
return "{$troopID}는 국가의 부대가 아닙니다."; return "{$troopID}는 국가의 부대가 아닙니다.";
} }
if ($troopCache[$troopID] != 'Neutral') { if ($troopCache[$troopID] != 'Neutral') {
return "부대({$troopID}는 하나의 역할만 지정할 수 있습니다."; return "부대({$troopID})는 하나의 역할만 지정할 수 있습니다.";
} }
if (!is_array($troopTarget) || count($troopTarget) != 2) { if (!is_array($troopTarget) || count($troopTarget) != 2) {
return "{$troopID}의 입력양식이 올바르지 않습니다."; return "{$troopID}의 입력양식이 올바르지 않습니다.";
+1 -1
View File
@@ -500,7 +500,7 @@ async function submitPolicy() {
function calcPolicyValue(title: keyof NationPolicy): number { function calcPolicyValue(title: keyof NationPolicy): number {
if (!(title in nationPolicy.value)) { if (!(title in nationPolicy.value)) {
throw `${title}이 NationPolicy key가 아님`; throw `${title}이 NationPolicy key가 아님`;
} }
const policyValue = nationPolicy.value[title]; const policyValue = nationPolicy.value[title];
if (!isNumber(policyValue)) { if (!isNumber(policyValue)) {