neutralize 일부 롤백
과거의 나는 다 계획이 있었구나.
This commit is contained in:
@@ -34,8 +34,8 @@ if($title === null || $text === null){
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$title = StringUtil::neutralize($title);
|
$title = trim($title);
|
||||||
$text = StringUtil::neutralize($text);
|
$text = trim($text);
|
||||||
|
|
||||||
if(!$title && !$text){
|
if(!$title && !$text){
|
||||||
Json::die([
|
Json::die([
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ if($articleNo === null || $text === null){
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$text = StringUtil::neutralize($text);
|
$text = trim($text);
|
||||||
|
|
||||||
if(!$text){
|
if(!$text){
|
||||||
Json::die([
|
Json::die([
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ if ($permission < 4) {
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$reason = StringUtil::neutralize($reason);
|
$reason = trim($reason);
|
||||||
|
|
||||||
$letter = $db->queryFirstRow('SELECT * FROM ng_diplomacy WHERE no=%i AND dest_nation_id = %i AND state = \'proposed\'', $letterNo, $me['nation']);
|
$letter = $db->queryFirstRow('SELECT * FROM ng_diplomacy WHERE no=%i AND dest_nation_id = %i AND state = \'proposed\'', $letterNo, $me['nation']);
|
||||||
if(!$letter){
|
if(!$letter){
|
||||||
|
|||||||
@@ -46,8 +46,8 @@ if($textBrief === null || $textDetail === null){
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$textBrief = StringUtil::neutralize($textBrief);
|
$textBrief = trim($textBrief);
|
||||||
$textDetail = StringUtil::neutralize($textDetail);
|
$textDetail = trim($textDetail);
|
||||||
|
|
||||||
if(!$textBrief){
|
if(!$textBrief){
|
||||||
Json::die([
|
Json::die([
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ if(!$v->validate()){
|
|||||||
}
|
}
|
||||||
|
|
||||||
$mailbox = (int)$post['mailbox'];
|
$mailbox = (int)$post['mailbox'];
|
||||||
$text = StringUtil::neutralize(StringUtil::cutStringForWidth($post['text'], 199, ''));
|
$text = trim(StringUtil::cutStringForWidth($post['text'], 199, ''));
|
||||||
|
|
||||||
$session = Session::requireGameLogin([
|
$session = Session::requireGameLogin([
|
||||||
'msgID'=>null
|
'msgID'=>null
|
||||||
|
|||||||
@@ -89,6 +89,9 @@ class che_거병 extends Command\GeneralCommand{
|
|||||||
}
|
}
|
||||||
|
|
||||||
$secretlimit = 3;
|
$secretlimit = 3;
|
||||||
|
if($env['scenario']>=1000){
|
||||||
|
$secretlimit = 1;
|
||||||
|
}
|
||||||
|
|
||||||
DB::db()->insert('nation', [
|
DB::db()->insert('nation', [
|
||||||
'name'=>$nationName,
|
'name'=>$nationName,
|
||||||
|
|||||||
@@ -3424,6 +3424,7 @@ class GeneralAI
|
|||||||
$chief = $this->chiefGenerals[$chiefLevel];
|
$chief = $this->chiefGenerals[$chiefLevel];
|
||||||
if($chief->getVar('npc') < 2 && $chief->getVar('killturn') >= $minUserKillturn){
|
if($chief->getVar('npc') < 2 && $chief->getVar('killturn') >= $minUserKillturn){
|
||||||
$userChiefCnt+=1;
|
$userChiefCnt+=1;
|
||||||
|
$chief->setVar('permission', 'ambassador');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3453,6 +3454,7 @@ class GeneralAI
|
|||||||
$nextChiefs[11] = $general;
|
$nextChiefs[11] = $general;
|
||||||
$general->setVar('officer_level', 11);
|
$general->setVar('officer_level', 11);
|
||||||
$general->setVar('officer_city', 0);
|
$general->setVar('officer_city', 0);
|
||||||
|
$general->setVar('permission', 'ambassador');
|
||||||
$nation['l11set'] = true;
|
$nation['l11set'] = true;
|
||||||
$updatedNationVar['l11set'] = 1;
|
$updatedNationVar['l11set'] = 1;
|
||||||
$userChiefCnt += 1;
|
$userChiefCnt += 1;
|
||||||
@@ -3536,6 +3538,7 @@ class GeneralAI
|
|||||||
|
|
||||||
if($newChief->getVar('npc') < 2){
|
if($newChief->getVar('npc') < 2){
|
||||||
$userChiefCnt += 1;
|
$userChiefCnt += 1;
|
||||||
|
$newChief->setVar('permission', 'ambassador');
|
||||||
}
|
}
|
||||||
|
|
||||||
$nextChiefs[$chiefLevel] = $newChief;
|
$nextChiefs[$chiefLevel] = $newChief;
|
||||||
|
|||||||
Reference in New Issue
Block a user