Commit cec0a976 authored by hisuinohoshi's avatar hisuinohoshi

fix wep2

parent 0948bb98
...@@ -115,7 +115,7 @@ function findcorpse(&$w_pdata){ ...@@ -115,7 +115,7 @@ function findcorpse(&$w_pdata){
$log .= '你发现了<span class="red">'.$w_name.'</span>的尸体!<br>'; $log .= '你发现了<span class="red">'.$w_name.'</span>的尸体!<br>';
// 初始化尸体tooltip // 初始化尸体tooltip
foreach (Array('wep','arb','arh','ara','arf','art','itm0','itm1','itm2','itm3','itm4','itm5','itm6') as $value) foreach (Array('wep','wep2','arb','arh','ara','arf','art','itm0','itm1','itm2','itm3','itm4','itm5','itm6') as $value)
{ {
$value = 'w_'.$value; $value = 'w_'.$value;
if(strpos($value,'itm')!==false) if(strpos($value,'itm')!==false)
......
...@@ -1358,14 +1358,14 @@ function getcorpse($item,&$data=NULL) ...@@ -1358,14 +1358,14 @@ function getcorpse($item,&$data=NULL)
return; return;
} }
if($item == 'wep') { if($item == 'wep' || $item == 'wep2') {
$itm0 = $edata['wep']; $itm0 = $edata[$item];
$itmk0 = $edata['wepk']; $itmk0 = $edata[$item.'k'];
$itme0 = $edata['wepe']; $itme0 = $edata[$item.'e'];
$itms0 = $edata['weps']; $itms0 = $edata[$item.'s'];
$itmsk0 = $edata['wepsk']; $itmsk0 = $edata[$item.'sk'];
$edata['wep'] = $edata['wepk'] = $edata['wepsk'] = ''; $edata[$item] = $edata[$item.'k'] = $edata[$item.'sk'] = '';
$edata['wepe'] = $edata['weps'] = 0; $edata[$item.'e'] = $edata[$item.'s'] = 0;
} elseif(strpos($item,'ar') === 0) { } elseif(strpos($item,'ar') === 0) {
$itm0 = $edata[$item]; $itm0 = $edata[$item];
$itmk0 = $edata[$item.'k']; $itmk0 = $edata[$item.'k'];
......
...@@ -651,7 +651,7 @@ function discover($schmode = 0,&$data=NULL) ...@@ -651,7 +651,7 @@ function discover($schmode = 0,&$data=NULL)
//直接略过无效尸体 //直接略过无效尸体
if($gamestate>=40) continue; if($gamestate>=40) continue;
$ret = false; $ret = false;
foreach(array('money','arhs','aras','arfs','arts','itms1','itms2','itms3','itms4','itms5','itms6') as $chkval) foreach(array('weps','wep2s','money','arhs','aras','arfs','arts','itms1','itms2','itms3','itms4','itms5','itms6') as $chkval)
{ {
if($edata[$chkval]) if($edata[$chkval])
{ {
......
...@@ -9,7 +9,7 @@ if(!defined('IN_GAME')) { ...@@ -9,7 +9,7 @@ if(!defined('IN_GAME')) {
function get_equip_list($mode=0) function get_equip_list($mode=0)
{ {
//装备列表 //装备列表
$equip_list = Array('wep','arb','arh','ara','arf','art'); $equip_list = Array('wep','wep2','arb','arh','ara','arf','art');
$equip_list2 = Array $equip_list2 = Array
( (
'W' => 'wep', 'W' => 'wep',
......
...@@ -19,6 +19,9 @@ ...@@ -19,6 +19,9 @@
<!--{if $w_weps && $w_wepe}--> <!--{if $w_weps && $w_wepe}-->
<input type="radio" name="command" id="wep" value="wep"><a onclick=sl('wep'); href="javascript:void(0);" >$w_wep/$w_wepk_words/$w_wepe/$w_weps<!--{if $w_wepsk_words}-->/$w_wepsk_words<!--{/if}--></a><br> <input type="radio" name="command" id="wep" value="wep"><a onclick=sl('wep'); href="javascript:void(0);" >$w_wep/$w_wepk_words/$w_wepe/$w_weps<!--{if $w_wepsk_words}-->/$w_wepsk_words<!--{/if}--></a><br>
<!--{/if}--> <!--{/if}-->
<!--{if $w_wep2s && $w_wep2e}-->
<input type="radio" name="command" id="wep2" value="wep2"><a onclick=sl('wep2'); href="javascript:void(0);" >$w_wep2/$w_wep2k_words/$w_wep2e/$w_wep2s<!--{if $w_wep2sk_words}-->/$w_wep2sk_words<!--{/if}--></a><br>
<!--{/if}-->
<!--{if $w_arbs && $w_arbe}--> <!--{if $w_arbs && $w_arbe}-->
<input type="radio" name="command" id="arb" value="arb"><a onclick=sl('arb'); href="javascript:void(0);" >$w_arb/$w_arbk_words/$w_arbe/$w_arbs<!--{if $w_arbsk_words}-->/$w_arbsk_words<!--{/if}--></a><br> <input type="radio" name="command" id="arb" value="arb"><a onclick=sl('arb'); href="javascript:void(0);" >$w_arb/$w_arbk_words/$w_arbe/$w_arbs<!--{if $w_arbsk_words}-->/$w_arbsk_words<!--{/if}--></a><br>
<!--{/if}--> <!--{/if}-->
......
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