국적 변경시 permission 초기화
This commit is contained in:
@@ -150,6 +150,7 @@ if($btn == "추방") {
|
|||||||
'level'=>0,
|
'level'=>0,
|
||||||
'nation'=>0,
|
'nation'=>0,
|
||||||
'belong'=>0,
|
'belong'=>0,
|
||||||
|
'permission'=>'normal',
|
||||||
], 'no=%i', $general['no']);
|
], 'no=%i', $general['no']);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|||||||
+3
-1
@@ -12,7 +12,9 @@ $gameStor = KVStorage::getStorage($db, 'game_env');
|
|||||||
|
|
||||||
$killturn = $gameStor->killturn;
|
$killturn = $gameStor->killturn;
|
||||||
|
|
||||||
$db->update('general', ['killturn'=>$killturn*3], 'owner=%i', $userID);
|
$db->update('general', [
|
||||||
|
'killturn'=>$killturn*3,
|
||||||
|
], 'owner=%i', $userID);
|
||||||
|
|
||||||
|
|
||||||
header('location:b_myPage.php');
|
header('location:b_myPage.php');
|
||||||
|
|||||||
@@ -1953,6 +1953,7 @@ function updateTurntime($no) {
|
|||||||
'npc'=>$general['npc_org'],
|
'npc'=>$general['npc_org'],
|
||||||
'killturn'=>$general['killturn'],
|
'killturn'=>$general['killturn'],
|
||||||
'mode'=>2,
|
'mode'=>2,
|
||||||
|
'permission'=>'normal',
|
||||||
'name2'=>null
|
'name2'=>null
|
||||||
], 'no=%i',$no);
|
], 'no=%i',$no);
|
||||||
|
|
||||||
|
|||||||
@@ -776,6 +776,7 @@ function checkMerge() {
|
|||||||
|
|
||||||
$db->update('general', [
|
$db->update('general', [
|
||||||
'nation'=>0,
|
'nation'=>0,
|
||||||
|
'permission'=>'normal',
|
||||||
], 'nation=%i AND npc = 5', $me['nation']);
|
], 'nation=%i AND npc = 5', $me['nation']);
|
||||||
|
|
||||||
$query = "delete from nation where nation='{$me['nation']}'";
|
$query = "delete from nation where nation='{$me['nation']}'";
|
||||||
@@ -922,6 +923,7 @@ function checkSurrender() {
|
|||||||
|
|
||||||
$db->update('general', [
|
$db->update('general', [
|
||||||
'nation'=>0,
|
'nation'=>0,
|
||||||
|
'permission'=>'normal',
|
||||||
], 'nation=%i AND npc = 5', $me['nation']);
|
], 'nation=%i AND npc = 5', $me['nation']);
|
||||||
|
|
||||||
$query = "delete from nation where nation='{$me['nation']}'";
|
$query = "delete from nation where nation='{$me['nation']}'";
|
||||||
|
|||||||
@@ -77,6 +77,7 @@ $db->update('general', [
|
|||||||
'npc'=>1,
|
'npc'=>1,
|
||||||
'killturn'=>6,
|
'killturn'=>6,
|
||||||
'mode'=>2,
|
'mode'=>2,
|
||||||
|
'permission'=>'normal',
|
||||||
'owner'=>$userID,
|
'owner'=>$userID,
|
||||||
], 'owner <= 0 AND npc = 2 AND no = %i', $pick);
|
], 'owner <= 0 AND npc = 2 AND no = %i', $pick);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user