Commit a1a480e5 authored by winddramon's avatar winddramon

baoshi(悲

手贱多提交了一个废弃文件。总之可以用2颗或者3颗宝石进行强化了
parent 1a878e2b
...@@ -498,21 +498,39 @@ function qianghua($itmn = 0) { ...@@ -498,21 +498,39 @@ function qianghua($itmn = 0) {
$zitmlv = $zitmlv[1]; $zitmlv = $zitmlv[1];
//$dengji = substr(${'itm'.$itmn},strpos(${'itm'.$itmn},"[+")+2,strlen(${'itm'.$itmn}) - strpos(${'itm'.$itmn},"]")+1);//北京你自己看着办 //$dengji = substr(${'itm'.$itmn},strpos(${'itm'.$itmn},"[+")+2,strlen(${'itm'.$itmn}) - strpos(${'itm'.$itmn},"]")+1);//北京你自己看着办
//$dengji = str_replace(']','',$dengji); //$dengji = str_replace(']','',$dengji);
if($zitmlv >= 3 && $baoshi != '『灵魂宝石』'){ if($zitmlv >= 4 && $baoshi != '『灵魂宝石』'){
$log .= '你所选的宝石只能强化装备到[+3]哦!DA☆ZE<br>'; $log .= '你所选的宝石只能强化装备到[+4]哦!DA☆ZE<br>';
$mode = 'command'; $mode = 'command';
return; return;
}else{ }else{
if ($zitmlv >= 4){ if ($zitmlv==3 && $baoshi=='『祝福宝石』'){
$gailv = rand(1,$zitmlv-2); if ($baoshis<2)
}elseif ($zitmlv >= 6){ {
$gailv = rand(1,$zitmlv-1); $log .= '你需要至少2颗祝福宝石才能强化装备到[+4]哦!DA☆ZE<br>';
}elseif ($zitmlv >= 10){ $mode = 'command';
$gailv = rand(1,$zitmlv); return;
}
elseif ($baoshis==2) //两颗成功率1/3
{
$baoshis--;
$dice = rand(1,30);
}
else //3颗必定成功
{
$baoshis -= 2;
$dice = 1;
}
}elseif ($zitmlv >= 4){
$dice = rand(1,10*($zitmlv-2));//+5概率10/20,+6概率10/30,+7概率10/40,+8概率10/50与原来相同
// $gailv = rand(1,$zitmlv-2);//原代码因为错误的缘故只能执行这里,概率是1/(当前lv-2),也即冲+5就是1/2,冲+6就是1/3以此类推
// }elseif ($zitmlv >= 6){
// $gailv = rand(1,$zitmlv-1);
// }elseif ($zitmlv >= 10){
// $gailv = rand(1,$zitmlv);
}else{ }else{
$gailv = 1; $dice = 1;
} }
if ($gailv == 1 ){ if ($dice <= 10 ){
$flag = true; $flag = true;
}else{$flag = false;} }else{$flag = false;}
} }
......
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