syntax cleanup
This commit is contained in:
+12
-17
@@ -6,28 +6,23 @@ Finds experience from level, and vice-versa
|
||||
|
||||
|
||||
function level($mode,$input) {
|
||||
if($mode==1) {
|
||||
$a=pow($input, 2) * 14;
|
||||
return $a;
|
||||
}
|
||||
|
||||
if($mode==1) {
|
||||
$a=pow($input, 2) * 14;
|
||||
return $a;
|
||||
}
|
||||
if($mode==2) {
|
||||
|
||||
if($mode==2) {
|
||||
$val=$input/14;
|
||||
|
||||
$val=sqrt($val);
|
||||
|
||||
$val=$input/14;
|
||||
$val=round($val-.499);
|
||||
|
||||
$val=sqrt($val);
|
||||
|
||||
$val=round($val-.499);
|
||||
|
||||
//$val=$val-.499;
|
||||
|
||||
return(abs($val));
|
||||
//$val=$val-.499;
|
||||
|
||||
return(abs($val));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user