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){
if($club == 20){
include_once GAME_ROOT.'./include/game/elementmix.calc.php';
$emax = emix_calc_maxenum();
if($clbstatusa)
{
$log .= "你习惯性摸了摸腰间,但那里已经没有元素口袋了……呼,至少元素们还没有离开你。<br>";
$main = ''; $itemcmd = 'command';
}
}
$mode = $itemcmd;
}
......
......@@ -1061,7 +1061,7 @@ $itemspkinfo = Array(
'P' => '防殴',
'p' => '带毒',
'q' => '防毒',
'R' => '混沌伤害',
'R' => '混沌',
'r' => '连击',
'S' => '消音',
's' => '调整',
......
......@@ -171,7 +171,7 @@ $vn_itemspkinfo = Array
'P' => '防殴',
'p' => '带毒',
'q' => '防毒',
'R' => '混沌伤害',
'R' => '混沌',
'r' => '连击',
'S' => '消音',
's' => '调整',
......
......@@ -387,6 +387,13 @@
$log .= "你思考了一会儿,还是没明白你到底想要干什么……<br>";
return;
}
if($clbstatusa)
{
$log .= "你习惯性摸了摸腰间,但那里已经没有元素口袋了……呼,至少元素们还没有离开你。<br>";
return;
}
# 打散队列
$list = explode('+',$list);
$nums = explode('+',$nums);
......
......@@ -1346,6 +1346,7 @@ function itemuse($itmn,&$data=NULL) {
$itme = & ${'itme'.$i};
$itms = & ${'itms'.$i};
$itmsk = & ${'itmsk'.$i};
# ventus
if ($itm=='黑色发卡') {$flag=true;}
$itm = '';
$itmk = '';
......@@ -1356,8 +1357,37 @@ function itemuse($itmn,&$data=NULL) {
//global $itm0,$itmk0,$itme0,$itms0,$itmsk0;
$karma=$rp*$killnum-$def+$att;
$f1=false;
//『G.A.M.E.O.V.E.R』itmk:Y itme:1 itms:1 itmsk:zxZ
if (($ss>=600)&&($killnum<=15)){
# 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';
$itme0=1;
$itms0=1;
$itmsk0='zv';
$f1=true;
itemget($data);
}
else
{
if ($tflag){
$itm0='『T.E.R.R.A』';
$itmk0='Y';
$itme0=1;
......@@ -1367,7 +1397,7 @@ function itemuse($itmn,&$data=NULL) {
itemget($data);
$f1=true;
}
if ($karma<=2000){
if ($hflag){
$itm0='『A.Q.U.A』';
$itmk0='Y';
$itme0=1;
......@@ -1387,6 +1417,7 @@ function itemuse($itmn,&$data=NULL) {
itemget($data);
$f1=true;
}
}
if ($f1==false){
$itm0='『S.C.R.A.P』';
$itmk0='Y';
......
......@@ -56,7 +56,11 @@
<!-- 第 1 行 : 包裹相关-->
<!--{if $club==20}-->
<!--{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}-->
<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}-->
......
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