Commit 1f5fc613 authored by Nemo Ma's avatar Nemo Ma

Fixes

FIX: Mtkkk avatar
FIX: D100 calculation
parent acfdc624
img/n_109.gif

26.9 KB | W: | H:

img/n_109.gif

9.5 KB | W: | H:

img/n_109.gif
img/n_109.gif
img/n_109.gif
img/n_109.gif
  • 2-up
  • Swipe
  • Onion skin
...@@ -1413,7 +1413,7 @@ function itemuse($itmn,&$data=NULL) { ...@@ -1413,7 +1413,7 @@ function itemuse($itmn,&$data=NULL) {
} }
//Generate a random number based on player's 1st Yume Value. //Generate a random number based on player's 1st Yume Value.
$dicebreak = diceroll($clbpara['randver1']); $dicebreak = diceroll($clbpara['randver1']);
if($dicebreak > $clbpara['randver1'] / 3){ if($dicebreak > $clbpara['randver1'] / 4){
$log .= '骰子落了下来,令人惊奇的是,它竟然没有被摔坏,还可以继续使用!<br>'; $log .= '骰子落了下来,令人惊奇的是,它竟然没有被摔坏,还可以继续使用!<br>';
$itm0 = '[D40]'; $itm0 = '[D40]';
$itmk0 = '🎲'; $itmk0 = '🎲';
...@@ -1438,20 +1438,20 @@ function itemuse($itmn,&$data=NULL) { ...@@ -1438,20 +1438,20 @@ function itemuse($itmn,&$data=NULL) {
//Then, we calculate your new values: //Then, we calculate your new values:
$log .= '你突然觉得头晕目眩!<br>'; $log .= '你突然觉得头晕目眩!<br>';
//->mhp and msp //->mhp and msp
$tvalue = $mhp + $msp + $mss; $tvalue = round(($mhp + $msp + $mss) / 2);
//Make sure you don't die from this. //Make sure you don't die from this.
$hp = $mhp = (diceroll($tvalue) + 1) * $chosenone; $hp = $mhp = (diceroll($tvalue) + 1) * $chosenone;
$sp = $msp = (diceroll($tvalue) + 1) * $chosenone; $sp = $msp = (diceroll($tvalue) + 1) * $chosenone;
$mss = (diceroll($tvalue) + 1) * $chosenone; $mss = (diceroll($tvalue) + 1) * $chosenone;
$ss = $mss / 2; $ss = round($mss / 2);
$log .= '你的最大生命,最大体力值与歌魂发生了变化!<br>'; $log .= '你的最大生命,最大体力值与歌魂发生了变化!<br>';
//->atk and def //->atk and def
$avalue = $att + $def; $avalue = round(($att + $def) / 1.5);
$att = (diceroll($avalue) + 1) * $chosenone; $att = (diceroll($avalue) + 1) * $chosenone;
$def = (diceroll($avalue) + 1) * $chosenone; $def = (diceroll($avalue) + 1) * $chosenone;
$log .= '你的攻击力与防御力发生了变化!<br>'; $log .= '你的攻击力与防御力发生了变化!<br>';
//->w values //->w values
$wvalue = round(($wp + $wk + $wd + $wc + $wg + $wf) / 2); $wvalue = round(($wp + $wk + $wd + $wc + $wg + $wf) / 4);
$wp = (diceroll($wvalue) + 1) * $chosenone; $wp = (diceroll($wvalue) + 1) * $chosenone;
$wk = (diceroll($wvalue) + 1) * $chosenone; $wk = (diceroll($wvalue) + 1) * $chosenone;
$wd = (diceroll($wvalue) + 1) * $chosenone; $wd = (diceroll($wvalue) + 1) * $chosenone;
...@@ -1461,9 +1461,9 @@ function itemuse($itmn,&$data=NULL) { ...@@ -1461,9 +1461,9 @@ function itemuse($itmn,&$data=NULL) {
$log .= '你的武器熟练度发生了变化!<br>'; $log .= '你的武器熟练度发生了变化!<br>';
//Generate a random number based on player's 1st Yume Value. //Generate a random number based on player's 1st Yume Value.
$dicebreak = diceroll($clbpara['randver1']); $dicebreak = diceroll($clbpara['randver2']);
//check if this value is greater than half of player's 1st Yume Value, if so, we do not destroy the item. //check if this value is greater than player's 1st Yume Value, if so, we do not destroy the item.
if($dicebreak > $clbpara['randver1'] / 3){ if($dicebreak > $clbpara['randver1']){
$log .= '骰子落了下来,令人惊奇的是,它竟然没有被摔坏,还可以继续使用!<br>'; $log .= '骰子落了下来,令人惊奇的是,它竟然没有被摔坏,还可以继续使用!<br>';
}else{ }else{
//destroy the dice item. //destroy the dice item.
...@@ -1632,7 +1632,7 @@ function itemuse($itmn,&$data=NULL) { ...@@ -1632,7 +1632,7 @@ function itemuse($itmn,&$data=NULL) {
$hp = $mhp = (diceroll($tvalue) + 1) * $chosenone; $hp = $mhp = (diceroll($tvalue) + 1) * $chosenone;
$sp = $msp = (diceroll($tvalue) + 1) * $chosenone; $sp = $msp = (diceroll($tvalue) + 1) * $chosenone;
$mss = (diceroll($tvalue) + 1) * $chosenone; $mss = (diceroll($tvalue) + 1) * $chosenone;
$ss = $mss / 2; $ss = round($mss / 2);
$log .= '你的最大生命,最大体力值与歌魂发生了变化!<br>'; $log .= '你的最大生命,最大体力值与歌魂发生了变化!<br>';
//->atk and def //->atk and def
$avalue = $att + $def; $avalue = $att + $def;
......
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