외교 서신 수락시, 국메, 외교 둘다 뜨도록 수정
This commit is contained in:
@@ -112,6 +112,17 @@ $msg = new Message(
|
|||||||
);
|
);
|
||||||
$msgID = $msg->send();
|
$msgID = $msg->send();
|
||||||
|
|
||||||
|
$msg = new Message(
|
||||||
|
Message::MSGTYPE_NATIONAL,
|
||||||
|
$src,
|
||||||
|
$dest,
|
||||||
|
$msgText,
|
||||||
|
$now,
|
||||||
|
$unlimited,
|
||||||
|
['invalid' => true]
|
||||||
|
);
|
||||||
|
$msgID = $msg->send();
|
||||||
|
|
||||||
Json::die([
|
Json::die([
|
||||||
'result'=>true,
|
'result'=>true,
|
||||||
'reason'=>'success'
|
'reason'=>'success'
|
||||||
|
|||||||
@@ -345,6 +345,20 @@ class DiplomaticMessage extends Message{
|
|||||||
$this->invalidate();
|
$this->invalidate();
|
||||||
$newMsg->send();
|
$newMsg->send();
|
||||||
|
|
||||||
|
$newMsg = new Message(
|
||||||
|
self::MSGTYPE_DIPLOMACY,
|
||||||
|
$this->dest,
|
||||||
|
$this->src,
|
||||||
|
"【외교】{$year}년 {$month}월: {$this->src->nationName}{$josaYi} {$this->dest->nationName}에게 제안한 {$this->diplomacyDetail}{$this->diplomacyName} 동의.",
|
||||||
|
new \DateTime(),
|
||||||
|
new \DateTime('9999-12-31'),
|
||||||
|
[
|
||||||
|
'delete'=>$this->id,
|
||||||
|
'silence'=>true,
|
||||||
|
]
|
||||||
|
);
|
||||||
|
$newMsg->send();
|
||||||
|
|
||||||
return self::ACCEPTED;
|
return self::ACCEPTED;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user