Commit e2c06f2a authored by Nemo Ma's avatar Nemo Ma Committed by GitHub

Merge pull request #170 from clean-master/fix/itmsk

修复club21插入
parents 091821bb ddd2e673
...@@ -608,7 +608,7 @@ function item_extract_trait($which, $item_position) ...@@ -608,7 +608,7 @@ function item_extract_trait($which, $item_position)
} }
$itmk = ''; $itmk = '';
$itme = '0'; $itme = '0';
$itms = '1'; $itms = '0';
$itmsk = ''; $itmsk = '';
${$which . $item_position} = $tmp_trait; ${$which . $item_position} = $tmp_trait;
$itms += 1; $itms += 1;
...@@ -624,7 +624,7 @@ function item_extract_trait($which, $item_position) ...@@ -624,7 +624,7 @@ function item_extract_trait($which, $item_position)
//合并代码片段逻辑 //合并代码片段逻辑
function item_add_trait($choice1, $choice2) function item_add_trait($choice1, $choice2)
{ {
global $log, $mode, $club, $sp, $rage; global $log, $mode, $club, $sp, $rage, $pdata;
if ($club != 21) { if ($club != 21) {
$log .= '你的称号不能使用该技能。'; $log .= '你的称号不能使用该技能。';
$mode = 'command'; $mode = 'command';
...@@ -697,10 +697,8 @@ function item_add_trait($choice1, $choice2) ...@@ -697,10 +697,8 @@ function item_add_trait($choice1, $choice2)
} }
$itmsk2 = $itmsk1 . $itmsk2; $itmsk2 = $itmsk1 . $itmsk2;
//清空itm1 //清空itm1
$itm1 = ''; destory_single_item($pdata, $choice1);
$itmk1 = '';
$itme1 = '0';
$itms1 = '0';
$itmk2 = str_replace('🥚', '', $itmk2); $itmk2 = str_replace('🥚', '', $itmk2);
return; return;
} }
...@@ -715,10 +713,7 @@ function item_add_trait($choice1, $choice2) ...@@ -715,10 +713,7 @@ function item_add_trait($choice1, $choice2)
} }
$itmsk2 = $itmsk1 . $itmsk2; $itmsk2 = $itmsk1 . $itmsk2;
//清空itm1 //清空itm1
$itm1 = ''; destory_single_item($pdata, $choice1);
$itmk1 = '';
$itme1 = '0';
$itms1 = '0';
//去除itm2重复的属性 //去除itm2重复的属性
$itmsk2 = implode(array_unique(str_split($itmsk2))); $itmsk2 = implode(array_unique(str_split($itmsk2)));
//去除itm2属性里的🥚 //去除itm2属性里的🥚
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment