Commit ad5ee77b authored by satsuki8's avatar satsuki8

修正了元素大师的部分机制,添加了水果子属性

parent 6c12fb45
...@@ -364,13 +364,13 @@ ...@@ -364,13 +364,13 @@
0,16,2,香菇,PS,35,1,, 0,16,2,香菇,PS,35,1,,
0,16,5,松茸,HS,50,1,, 0,16,5,松茸,HS,50,1,,
0,16,5,松茸,PS,50,1,, 0,16,5,松茸,PS,50,1,,
0,16,5,香蕉,HB,25,1,, 0,16,5,香蕉,HB,25,1,🍎,
0,16,5,苹果,HB,45,1,, 0,16,5,苹果,HB,45,1,🍎,
99,16,6,香蕉,HB,25,1,, 99,16,6,香蕉,HB,25,1,🍎,
99,16,6,苹果,HB,45,1,, 99,16,6,苹果,HB,45,1,🍎,
99,16,3,香蕉,PB,25,1,, 99,16,3,香蕉,PB,25,1,🍎,
99,16,3,苹果,PB,45,1,, 99,16,3,苹果,PB,45,1,🍎,
99,16,5,烂苹果,PB2,90,1,, 99,16,5,烂苹果,PB2,90,1,🍎,
99,16,10,捕兽器,TN,240,1,, 99,16,10,捕兽器,TN,240,1,,
99,16,10,捕兽器,TO,240,1,, 99,16,10,捕兽器,TO,240,1,,
0,16,7,《小黄的草帽》,DH,50,70,, 0,16,7,《小黄的草帽》,DH,50,70,,
...@@ -604,9 +604,9 @@ ...@@ -604,9 +604,9 @@
0,29,10,水,HS,60,1,, 0,29,10,水,HS,60,1,,
0,29,5,水,PS,60,1,, 0,29,5,水,PS,60,1,,
0,29,40,天然水,HS,55,3,z, 0,29,40,天然水,HS,55,3,z,
0,29,2,香蕉,HB,25,1,, 0,29,2,香蕉,HB,25,1,🍎,
0,29,4,西瓜,HB,60,1,, 0,29,4,西瓜,HB,60,1,🍎,
0,29,2,苹果,HB,45,1,, 0,29,2,苹果,HB,45,1,🍎,
0,29,1,甜生姜,HB,42,5,, 0,29,1,甜生姜,HB,42,5,,
0,29,4,甜生姜,PB2,42,5,, 0,29,4,甜生姜,PB2,42,5,,
99,29,5,绳索,TN,120,1,, 99,29,5,绳索,TN,120,1,,
...@@ -616,20 +616,20 @@ ...@@ -616,20 +616,20 @@
99,29,5,圣石之种,TO,240,1,, 99,29,5,圣石之种,TO,240,1,,
99,29,5,走失的猫咪,PH,400,1,, 99,29,5,走失的猫咪,PH,400,1,,
99,29,5,轮椅,DF,99,∞,, 99,29,5,轮椅,DF,99,∞,,
99,29,4,香蕉,HB,25,1,, 99,29,4,香蕉,HB,25,1,🍎,
99,29,6,西瓜,HB,60,1,, 99,29,6,西瓜,HB,60,1,🍎,
99,29,4,苹果,HB,45,1,, 99,29,4,苹果,HB,45,1,🍎,
99,29,1,香蕉,PB,25,1,, 99,29,1,香蕉,PB,25,1,🍎,
99,29,2,西瓜,PB,60,1,, 99,29,2,西瓜,PB,60,1,🍎,
99,29,1,苹果,PB,45,1,, 99,29,1,苹果,PB,45,1,🍎,
99,29,5,烂苹果,PB2,90,1,, 99,29,5,烂苹果,PB2,90,1,🍎,
99,29,20,空白符卡,X,1,1,, 99,29,20,空白符卡,X,1,1,,
0,30,10,杯装水,HS,60,1,, 0,30,10,杯装水,HS,60,1,,
0,30,5,杯装水,PS,60,1,, 0,30,5,杯装水,PS,60,1,,
0,30,40,蒸馏水,HS,55,3,z, 0,30,40,蒸馏水,HS,55,3,z,
0,30,2,香蕉,HB,25,1,, 0,30,2,香蕉,HB,25,1,🍎,
0,30,4,西瓜,HB,60,1,, 0,30,4,西瓜,HB,60,1,🍎,
0,30,2,苹果,HB,45,1,, 0,30,2,苹果,HB,45,1,🍎,
0,30,7,原型武器P,WP,60,1,, 0,30,7,原型武器P,WP,60,1,,
0,30,7,原型武器K,WK,60,1,, 0,30,7,原型武器K,WK,60,1,,
0,30,7,原型武器G,WG,60,1,, 0,30,7,原型武器G,WG,60,1,,
...@@ -1151,14 +1151,14 @@ ...@@ -1151,14 +1151,14 @@
0,99,4,被遗忘的伞,WP,20,1,, 0,99,4,被遗忘的伞,WP,20,1,,
0,99,1,☆博丽护符☆,WF,60,1,d, 0,99,1,☆博丽护符☆,WF,60,1,d,
0,99,1,☆山蘑菇粉☆,WC,60,1,p, 0,99,1,☆山蘑菇粉☆,WC,60,1,p,
99,99,5,香蕉,HB,25,1,, 99,99,5,香蕉,HB,25,1,🍎,
99,99,5,西瓜,HB,60,1,, 99,99,5,西瓜,HB,60,1,🍎,
99,99,5,苹果,HB,45,1,, 99,99,5,苹果,HB,45,1,🍎,
99,99,1,香蕉,PB,25,1,, 99,99,1,香蕉,PB,25,1,🍎,
99,99,1,西瓜,PB,60,1,, 99,99,1,西瓜,PB,60,1,🍎,
99,99,1,苹果,PB,45,1,, 99,99,1,苹果,PB,45,1,🍎,
99,99,5,烂苹果,PB2,90,1,, 99,99,5,烂苹果,PB2,90,1,🍎,
0,99,1,★全图不唯一的野生巨大香蕉★,HB,2400,1,, 0,99,1,★全图不唯一的野生巨大香蕉★,HB,2400,1,🍎,
0,99,2,水果刀,Z,1,1,, 0,99,2,水果刀,Z,1,1,,
0,99,5,天然气,PB2,55,3,z, 0,99,5,天然气,PB2,55,3,z,
1,99,2,☆黄金麦克风☆,WP,256,5,w, 1,99,2,☆黄金麦克风☆,WP,256,5,w,
......
...@@ -49,12 +49,12 @@ ...@@ -49,12 +49,12 @@
,DA,1,1,, ,DA,1,1,,
,DF,1,1,, ,DF,1,1,,
,A,1,1,, ,A,1,1,,
,HH,1,1,, ,HH,1,1,🍎,
,HS,1,1,, ,HS,1,1,🍎,
,HB,1,1,, ,HB,1,1,🍎,
,PH,1,1,, ,PH,1,1,🍎,
,PS,1,1,, ,PS,1,1,🍎,
,PB,1,1,, ,PB,1,1,🍎,
,X,1,1,, ,X,1,1,,
,Y,1,1,, ,Y,1,1,,
,Z,1,1,, ,Z,1,1,,
...@@ -202,8 +202,8 @@ SSS团长的半身像,WP,55,2,, ...@@ -202,8 +202,8 @@ SSS团长的半身像,WP,55,2,,
奇怪的液体,HB,265,11,, 奇怪的液体,HB,265,11,,
奇怪的液体,HB,265,11,, 奇怪的液体,HB,265,11,,
最强-バカ⑨制冰块,HB,99,99,, 最强-バカ⑨制冰块,HB,99,99,,
黑白色的烂苹果,HS,999,1,, 黑白色的烂苹果,HS,999,1,🍎,
小得奇怪的香蕉,HB,3600,1,, 小得奇怪的香蕉,HB,3600,1,🍎,
奇迹-白魔法,HB,1232,1,, 奇迹-白魔法,HB,1232,1,,
奇迹-幻想,HB,2343,2,, 奇迹-幻想,HB,2343,2,,
奇迹-永恒,HB,3454,3,, 奇迹-永恒,HB,3454,3,,
...@@ -221,10 +221,10 @@ SSS团长的半身像,WP,55,2,, ...@@ -221,10 +221,10 @@ SSS团长的半身像,WP,55,2,,
龙卷风发生器,EW,1,1,11, 龙卷风发生器,EW,1,1,11,
暴风雪发生器,EW,1,1,12, 暴风雪发生器,EW,1,1,12,
冰雹发生器,EW,1,1,13, 冰雹发生器,EW,1,1,13,
生命探测器,R,1,1,, 生命探测器,ER,1,1,,
生命探测器,R,3,1,, 生命探测器,ER,3,1,,
生命探测器,R,5,1,, 生命探测器,ER,5,1,,
生命探测器,R,7,1,, 生命探测器,ER,7,1,,
广域生命探测器,ER,5,1,2, 广域生命探测器,ER,5,1,2,
水果刀,Z,1,1,, 水果刀,Z,1,1,,
水果刀,Z,1,1,, 水果刀,Z,1,1,,
......
...@@ -1106,6 +1106,7 @@ $itemspkinfo = Array( ...@@ -1106,6 +1106,7 @@ $itemspkinfo = Array(
'+' => '技能抽取', '+' => '技能抽取',
'^' => '背包', '^' => '背包',
'🧰' => '工具', '🧰' => '工具',
'🍎' => '水果',
); );
//club20 元素大师: //club20 元素大师:
......
...@@ -488,10 +488,11 @@ ...@@ -488,10 +488,11 @@
{ {
$eitms = '∞'; $eitms = '∞';
} }
# 大成功时防具耐久等于防具效果 # 大成功时防具效果和耐久等于两者中的较大值
if($emix_flag == 4) if($emix_flag == 4)
{ {
$eitms = $eitme; $eitms = max($eitme, $eitms);
$eitme = $eitms;
} }
} }
# 强化药物、技能书籍效耐调整:效果最大不能超过角色等级、耐久最大不超过角色等级的平方根,且向下调整 # 强化药物、技能书籍效耐调整:效果最大不能超过角色等级、耐久最大不超过角色等级的平方根,且向下调整
...@@ -583,25 +584,25 @@ ...@@ -583,25 +584,25 @@
if(is_array($obbs)) $obbs = isset($obbs[$itmk]) ? $obbs[$itmk] : $obbs['default']; if(is_array($obbs)) $obbs = isset($obbs[$itmk]) ? $obbs[$itmk] : $obbs['default'];
if(rand(0,100) > $obbs) continue; if(rand(0,100) > $obbs) continue;
} }
# 配对成功!消除素材特征
//18th fix: kudos to 低维生物 //18th fix: kudos to 低维生物
$delsub = $minfo['stuff']; //$delsub = $minfo['stuff'];
//$count_delsub = count($mnifo['stuff']); //$count_delsub = count($minfo['stuff']);
$count_delsub = 0; $count_delsub = 0;
if(!empty($mnifo['stuff'])) if(!empty($minfo['stuff']))
{ {
$count_delsub = $mnifo['stuff']; $count_delsub = count($minfo['stuff']);
} }
for ($i = 0; $i < count($subtags); $i++){ for ($i = 0; $i < count($subtags); $i++){
if (in_array($subtags[$i], $minfo['stuff'])){ if (in_array($subtags[$i], $minfo['stuff'])){
unset($subtags[$i]); unset($subtags[$i]);
$count_delsub -= 1; $count_delsub -= 1;
if ($count_delsub == 0) break; if ($count_delsub <= 0) break;
} }
} }
if(array_search($delsub, $subtags)!== false){ //? //if(array_search($delsub, $subtags)!== false){ //?
# 配对成功!消除素材特征 //foreach($minfo['stuff'] as $delsub) unset($subtags[array_search($delsub,$subtags)]);}
foreach($minfo['stuff'] as $delsub) unset($subtags[array_search($delsub,$subtags)]);}
//Alternative Fix: This will consume all properties in $subtags that matches $delsub. //Alternative Fix: This will consume all properties in $subtags that matches $delsub.
//But stacking is better anyways. - comment out the above FOR loop then uncomment this to use //But stacking is better anyways. - comment out the above FOR loop then uncomment this to use
//$subtags = array_diff($subtags, $delsub); //$subtags = array_diff($subtags, $delsub);
......
...@@ -2240,26 +2240,31 @@ function itemuse($itmn,&$data=NULL) { ...@@ -2240,26 +2240,31 @@ function itemuse($itmn,&$data=NULL) {
for($i = 1; $i <= 6; $i ++) { for($i = 1; $i <= 6; $i ++) {
//global ${'itm' . $i}, ${'itmk' . $i},${'itms' . $i},${'itme' . $i},$wk; //global ${'itm' . $i}, ${'itmk' . $i},${'itms' . $i},${'itme' . $i},$wk;
foreach(Array('香蕉','苹果','西瓜') as $fruit){ /* 括号;
去除括号; */
if ( strpos ( ${'itm' . $i} , $fruit ) !== false && strpos ( ${'itm' . $i} , '皮' ) === false && strpos ( ${'itm' . $i} , '■' ) === false && (strpos ( ${'itmk' . $i} , 'H' ) === 0 || strpos ( ${'itmk' . $i} , 'P' ) === 0 )) { if (strpos(${'itmsk' . $i}, '🍎') !== false) {
if($wk >= 120){ if($wk >= 120){
$log .= "练过刀就是好啊。你娴熟地削着果皮。<br><span class=\"yellow\">{${'itm'.$i}}</span>变成了<span class=\"yellow\">★残骸★</span>!<br>咦为什么会出来这种东西?算了还是不要吐槽了。<br>"; $log .= "练过刀就是好啊。你娴熟地削着果皮。<br><span class=\"yellow\">{${'itm'.$i}}</span>变成了<span class=\"yellow\">★残骸★</span>!<br>咦为什么会出来这种东西?算了还是不要吐槽了。<br>";
${'itm' . $i} = '★残骸★'; ${'itm' . $i} = '★残骸★';
${'itme' . $i} *= rand(2,4); ${'itme' . $i} *= rand(2,4);
${'itms' . $i} *= rand(3,5); ${'itms' . $i} *= rand(3,5);
$flag = true; ${'itmsk' . $i} = '';
$wk++; $flag = true;
$wk++;
}else{
$log .= "想削皮吃<span class=\"yellow\">{${'itm'.$i}}</span>,没想到削完发现只剩下一堆果皮……<br>手太笨拙了啊。<br>";
if ((mb_substr(${'itm' . $i}, 0, 1) === '★') && (mb_substr(${'itm' . $i}, -1) === '★')){
${'itm' . $i} = mb_substr(${'itm' . $i}, 0, -1).'皮★';
}else{ }else{
$log .= "想削皮吃<span class=\"yellow\">{${'itm'.$i}}</span>,没想到削完发现只剩下一堆果皮……<br>手太笨拙了啊。<br>"; ${'itm' . $i} = ${'itm' . $i}.'皮';
${'itm' . $i} = str_replace($fruit, $fruit.'皮',${'itm' . $i} );
${'itmk' . $i} = 'TN';
${'itms' . $i} *= rand(2,4);
$flag = true;
$wk++;
} }
break; ${'itmk' . $i} = 'TN';
${'itms' . $i} *= rand(2,4);
${'itmsk' . $i} = '';
$flag = true;
$wk++;
} }
break;
} }
if($flag == true) {break;}; if($flag == true) {break;};
} }
......
...@@ -236,13 +236,15 @@ ...@@ -236,13 +236,15 @@
return 0; return 0;
} }
$numbers = array_fill(0, 6, 14); $numbers = array_fill(0, 6, 14);
# 生成5个随机数,使它们的和等于15 # 生成6个随机数,使它们的和等于16
$t = 16; $t = 16;
for ($i = 0; $i < 6; $i++) for ($i = 0; $i < 5; $i++)
{ {
$at = rand(1,$t); $t -= $at; $at = rand(1,5);
$t -= $at;
$numbers[$i] += $at; $numbers[$i] += $at;
} }
$numbers[5] += $t;
$log .= "你把口袋中的元素搅混在一起……然后满怀期待得等着它们自己把自己整理好……<br>"; $log .= "你把口袋中的元素搅混在一起……然后满怀期待得等着它们自己把自己整理好……<br>";
foreach($elements_info as $key => $info) foreach($elements_info as $key => $info)
{ {
...@@ -260,8 +262,8 @@ ...@@ -260,8 +262,8 @@
{ {
foreach($elements_info as $key => $info) foreach($elements_info as $key => $info)
{ {
# 不足3000的,补足到3000 # 不足1000的,补足到3000
if(${'element'.$key} < 3000) if(${'element'.$key} < 1000)
{ {
${'element'.$key} = 3000; ${'element'.$key} = 3000;
continue; continue;
......
...@@ -172,7 +172,7 @@ function adtsk(){ ...@@ -172,7 +172,7 @@ function adtsk(){
$log .= '<span class="red">武器已经带有电击属性,不用改造!</span><br />'; $log .= '<span class="red">武器已经带有电击属性,不用改造!</span><br />';
$mode = 'command'; $mode = 'command';
return; return;
}elseif(strlen($wepsk)>=5){ }elseif(strlen($wepsk)>=40){
$log .= '<span class="red">武器属性数目达到上限,无法改造!</span><br />'; $log .= '<span class="red">武器属性数目达到上限,无法改造!</span><br />';
$mode = 'command'; $mode = 'command';
return; return;
...@@ -210,7 +210,7 @@ function adtsk(){ ...@@ -210,7 +210,7 @@ function adtsk(){
$log .= '<span class="red">武器已经带毒,不用改造!</span><br />'; $log .= '<span class="red">武器已经带毒,不用改造!</span><br />';
$mode = 'command'; $mode = 'command';
return; return;
}elseif(strlen($wepsk)>=5){ }elseif(strlen($wepsk)>=40){
$log .= '<span class="red">武器属性数目达到上限,无法改造!</span><br />'; $log .= '<span class="red">武器属性数目达到上限,无法改造!</span><br />';
$mode = 'command'; $mode = 'command';
return; return;
......
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