Commit ce108f05 authored by hisuinohoshi's avatar hisuinohoshi

fix elementmix

修正:
- 元素大师使用『C.H.A.O.S』后无法进一步合成『G.A.M.E.O.V.E.R』的问题;
parent a34d0e9d
...@@ -172,6 +172,11 @@ if($hp > 0){ ...@@ -172,6 +172,11 @@ if($hp > 0){
if($club == 20){ if($club == 20){
include_once GAME_ROOT.'./include/game/elementmix.calc.php'; include_once GAME_ROOT.'./include/game/elementmix.calc.php';
$emax = emix_calc_maxenum(); $emax = emix_calc_maxenum();
if($clbstatusa)
{
$log .= "你习惯性摸了摸腰间,但那里已经没有元素口袋了……呼,至少元素们还没有离开你。<br>";
$main = ''; $itemcmd = 'command';
}
} }
$mode = $itemcmd; $mode = $itemcmd;
} }
......
...@@ -1061,7 +1061,7 @@ $itemspkinfo = Array( ...@@ -1061,7 +1061,7 @@ $itemspkinfo = Array(
'P' => '防殴', 'P' => '防殴',
'p' => '带毒', 'p' => '带毒',
'q' => '防毒', 'q' => '防毒',
'R' => '混沌伤害', 'R' => '混沌',
'r' => '连击', 'r' => '连击',
'S' => '消音', 'S' => '消音',
's' => '调整', 's' => '调整',
......
...@@ -171,7 +171,7 @@ $vn_itemspkinfo = Array ...@@ -171,7 +171,7 @@ $vn_itemspkinfo = Array
'P' => '防殴', 'P' => '防殴',
'p' => '带毒', 'p' => '带毒',
'q' => '防毒', 'q' => '防毒',
'R' => '混沌伤害', 'R' => '混沌',
'r' => '连击', 'r' => '连击',
'S' => '消音', 'S' => '消音',
's' => '调整', 's' => '调整',
......
...@@ -387,6 +387,13 @@ ...@@ -387,6 +387,13 @@
$log .= "你思考了一会儿,还是没明白你到底想要干什么……<br>"; $log .= "你思考了一会儿,还是没明白你到底想要干什么……<br>";
return; return;
} }
if($clbstatusa)
{
$log .= "你习惯性摸了摸腰间,但那里已经没有元素口袋了……呼,至少元素们还没有离开你。<br>";
return;
}
# 打散队列 # 打散队列
$list = explode('+',$list); $list = explode('+',$list);
$nums = explode('+',$nums); $nums = explode('+',$nums);
......
...@@ -1346,6 +1346,7 @@ function itemuse($itmn,&$data=NULL) { ...@@ -1346,6 +1346,7 @@ function itemuse($itmn,&$data=NULL) {
$itme = & ${'itme'.$i}; $itme = & ${'itme'.$i};
$itms = & ${'itms'.$i}; $itms = & ${'itms'.$i};
$itmsk = & ${'itmsk'.$i}; $itmsk = & ${'itmsk'.$i};
# ventus
if ($itm=='黑色发卡') {$flag=true;} if ($itm=='黑色发卡') {$flag=true;}
$itm = ''; $itm = '';
$itmk = ''; $itmk = '';
...@@ -1356,36 +1357,66 @@ function itemuse($itmn,&$data=NULL) { ...@@ -1356,36 +1357,66 @@ function itemuse($itmn,&$data=NULL) {
//global $itm0,$itmk0,$itme0,$itms0,$itmsk0; //global $itm0,$itmk0,$itme0,$itms0,$itmsk0;
$karma=$rp*$killnum-$def+$att; $karma=$rp*$killnum-$def+$att;
$f1=false; $f1=false;
//『G.A.M.E.O.V.E.R』itmk:Y itme:1 itms:1 itmsk:zxZ //『G.A.M.E.O.V.E.R』itmk:Y itme:1 itms:1 itmsk:zxZ
if (($ss>=600)&&($killnum<=15)){
$itm0='『T.E.R.R.A』'; # terra
$tflag = (($ss>=600)&&($killnum<=15)) ? 1 : 0;
# aqua
$hflag = $karma<=2000 ? 1 : 0;
# 元素大师使用chaos时,不再需要进一步合成,但是会失去元素合成功能
if($club == 20)
{
$log .= "系在你腰间的口袋剧烈颤动着,下一刻,你的直觉被某物触动了。<br>
在你的视界里,浮现出了难以描绘、似真似幻的独特“元素”:<br><br>";
if($tflag) $log .= "有生命的热火、有逝者的悲怆;<br>";
if($hflag) $log .= "有命运的尾迹、有因缘的蟠结;<br>";
if($flag) $log .= "有衬出影子的光、有糅在光里的影。<br>";
$log .= "<br>然后,你的<span class='sparkle'>{$sparkle}元素口袋{$sparkle}</span>飞了出去——<br><br>";
# 失去元素口袋
$clbstatusa = 1;
# 直接获得gameover
$itm0='『G.A.M.E.O.V.E.R』';
$itmk0='Y'; $itmk0='Y';
$itme0=1; $itme0=1;
$itms0=1; $itms0=1;
$itmsk0='z'; $itmsk0='zv';
include_once GAME_ROOT . './include/game/itemmain.func.php';
itemget($data);
$f1=true; $f1=true;
}
if ($karma<=2000){
$itm0='『A.Q.U.A』';
$itmk0='Y';
$itme0=1;
$itms0=1;
$itmsk0='x';
include_once GAME_ROOT . './include/game/itemmain.func.php';
itemget($data); itemget($data);
$f1=true;
} }
if ($flag==true){ else
$itm0='『V.E.N.T.U.S』'; {
$itmk0='Y'; if ($tflag){
$itme0=1; $itm0='『T.E.R.R.A』';
$itms0=1; $itmk0='Y';
$itmsk0='Z'; $itme0=1;
include_once GAME_ROOT . './include/game/itemmain.func.php'; $itms0=1;
itemget($data); $itmsk0='z';
$f1=true; include_once GAME_ROOT . './include/game/itemmain.func.php';
itemget($data);
$f1=true;
}
if ($hflag){
$itm0='『A.Q.U.A』';
$itmk0='Y';
$itme0=1;
$itms0=1;
$itmsk0='x';
include_once GAME_ROOT . './include/game/itemmain.func.php';
itemget($data);
$f1=true;
}
if ($flag==true){
$itm0='『V.E.N.T.U.S』';
$itmk0='Y';
$itme0=1;
$itms0=1;
$itmsk0='Z';
include_once GAME_ROOT . './include/game/itemmain.func.php';
itemget($data);
$f1=true;
}
} }
if ($f1==false){ if ($f1==false){
$itm0='『S.C.R.A.P』'; $itm0='『S.C.R.A.P』';
......
...@@ -56,7 +56,11 @@ ...@@ -56,7 +56,11 @@
<!-- 第 1 行 : 包裹相关--> <!-- 第 1 行 : 包裹相关-->
<!--{if $club==20}--> <!--{if $club==20}-->
<input type="button" class="cmdbutton" id="elementmix" name="elementmix" value="元素口袋" onclick="$('command').value='itemmain';$('subcmd').name='itemcmd';$('subcmd').value='elementmix';postCmd('gamecmd','command.php');this.disabled=true;"> <!--{if $clbstatusa}-->
<input type="button" class="cmdbutton" id="elementmix" name="elementmix" value="■■■■" onclick="$('command').value='itemmain';$('subcmd').name='itemcmd';$('subcmd').value='elementmix';postCmd('gamecmd','command.php');this.disabled=true;">
<!--{else}-->
<input type="button" class="cmdbutton" id="elementmix" name="elementmix" value="元素口袋" onclick="$('command').value='itemmain';$('subcmd').name='itemcmd';$('subcmd').value='elementmix';postCmd('gamecmd','command.php');this.disabled=true;">
<!--{/if}-->
<!--{else}--> <!--{else}-->
<input type="button" class="cmdbutton" id="itemmix" name="itemmix" value="道具合成" onclick="$('command').value='itemmain';$('subcmd').name='itemcmd';$('subcmd').value='itemmix';postCmd('gamecmd','command.php');this.disabled=true;"> <input type="button" class="cmdbutton" id="itemmix" name="itemmix" value="道具合成" onclick="$('command').value='itemmain';$('subcmd').name='itemcmd';$('subcmd').value='itemmix';postCmd('gamecmd','command.php');this.disabled=true;">
<!--{/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