추방 몰수 선포 등 상황에서 메시지 안 나타나는 버그 수정

This commit is contained in:
2018-04-18 22:34:13 +09:00
parent df26c511b5
commit 5187ebbf52
4 changed files with 76 additions and 25 deletions
+41 -3
View File
@@ -173,7 +173,23 @@ function process_24(&$general) {
case 4: $str = "몰수로 인한 사기 저하는 몰수로 얻은 물자보다 더 손해란걸 모른단 말인가!"; break;
}
PushMsg(1, 0, $gen['picture'], $gen['imgsvr'], "{$gen['name']}:", $nation['color'], $nation['name'], $nation['color'], $str);
$src = new MessageTarget(
$gen['no'],
$gen['name'],
$gen['nation'],
$nation['name'],
$nation['color'],
GetImageURL($gen['imgsvr'], $gen['picture'])
);
$msg = new Message(
Message::MSGTYPE_PUBLIC,
$src,
$src,
$str,
new \DateTime(),
new \DateTime('9999-12-31')
);
$msg->send();
}
$genlog[] = "<C>●</>$dtype {$amount}을 몰수 당했습니다.";
@@ -759,8 +775,30 @@ function process_62(&$general) {
$msg = "【외교】{$admin['year']}{$admin['month']}월:{$younation['name']}에 선전포고";
$youmsg = "【외교】{$admin['year']}{$admin['month']}월:{$nation['name']}에서 선전포고";
PushMsg(2, $nation['nation'], $general['picture'], $general['imgsvr'], "{$general['name']}:{$nation['name']}", $nation['color'], $younation['name'], $younation['color'], $msg);
PushMsg(3, $younation['nation'], $general['picture'], $general['imgsvr'], "{$general['name']}:{$nation['name']}", $nation['color'], $younation['name'], $younation['color'], $youmsg);
$src = new MessageTarget(
$general['no'],
$general['name'],
$general['nation'],
$nation['name'],
$nation['color'],
GetImageURL($general['imgsvr'], $general['picture'])
);
$dest = new MessageTarget(
0,
'',
$younation['nation'],
$younation['name'],
$younation['color']
);
$msg = new Message(
Message::MSGTYPE_NATIONAL,
$src,
$dest,
$str,
new \DateTime($general['turntime']),
new \DateTime('9999-12-31')
);
$msg->send(true);
}
pushWorldHistory($history, $admin['year'], $admin['month']);