외교메시지 수신 기준 변경중

This commit is contained in:
2019-04-07 22:26:50 +09:00
parent f5c833882d
commit 8d51b76ca2
4 changed files with 12 additions and 10 deletions
+2 -6
View File
@@ -181,11 +181,6 @@ function redrawMsg(deferred, addFront){
return true;
}
if(msgType == 'diplomacy'){
//외교는 항상 새로 그린다
$msgBoard.empty();
}
var needRefreshLastContact = (msgType == 'private');
@@ -217,7 +212,7 @@ function redrawMsg(deferred, addFront){
msg.defaultIcon = pathConfig.sharedIcon+'/default.jpg';
if(msgType == 'diplomacy'){
msg.allowButton = myGeneralLevel>4;
msg.allowButton = permissionLevel>=4;
}
else{
msg.allowButton = true;
@@ -465,6 +460,7 @@ function registerGlobal(basicInfo){
window.myGeneralID = basicInfo.generalID;
window.isChief = basicInfo.isChief;
window.myGeneralLevel = basicInfo.generalLevel;
window.permissionLevel = basicInfo.permissionLevel;
}
function activateMessageForm(){