$arisen = 200; $main_pawn_present = "Y"; $weal = "N"; $pawn1_level = 200; $pawn2_level = 200; $difficulty = "N"; $enemy="Daimon1"; $cmd=$_GET['cmd']; if ($cmd == "calculate"): $enemy = $_POST["enemy"]; $arisen = $_POST["arisen_level"]; $main_pawn_present = $_POST["main_pawn_present"]; $pawn1_level = $_POST["pawn1_level"]; $pawn2_level = $_POST["pawn2_level"]; $difficulty = $_POST["difficulty"]; $weal = $_POST["weal"]; if ($enemy == "Daimon1"): $base_xp = 160000; elseif ($enemy == "Daimon2"): $base_xp = 200000; elseif ($enemy == "Daimon3"): $base_xp = 360000; elseif ($enemy == "GorecyclopC"): $base_xp = 57000; elseif ($enemy == "Death"): $base_xp = 420000; elseif ($enemy == "CursedDragon"): $base_xp = 66000; elseif ($enemy == "Frostwyrm"): $base_xp = 62000; elseif ($enemy == "Firedrake"): $base_xp = 65000; elseif ($enemy == "Thunderwyvern"): $base_xp = 60000; elseif ($enemy == "LivingArmor"): $base_xp = 35000; elseif ($enemy == "Eliminator"): $base_xp = 24000; elseif ($enemy == "ElderOgre"): $base_xp = 32000; elseif ($enemy == "DarkBishop"): $base_xp = 66000; elseif ($enemy == "Gazer"): $base_xp = 72000; elseif ($enemy == "Garm"): $base_xp = 29000; elseif ($enemy == "UrDragon"): $base_xp = 150000; endif; if ($weal == "Y"): $weal_effect = 2.0; else: $weal_effect = 1.0; endif; if ($difficulty == "H"): $mode_effect = 2.0; else: $mode_effect = 1.0; endif; if ($main_pawn_present == "Y"): $main_pawn_level = $arisen; else: $main_pawn_level = -24; endif; $main_diff = $main_pawn_level - $arisen; $supp1_diff = $pawn1_level - $arisen; $supp2_diff = $pawn2_level - $arisen; if ( $main_diff < -25 ): $main_diff = -25; endif; if ( $supp1_diff < -25 ): $supp1_diff = -25; elseif ( $supp1_diff > 25 ): $supp1_diff = 25; endif; if ( $supp2_diff < -25 ): $supp2_diff = -25; elseif ( $supp2_diff > 25 ): $supp2_diff = 25; endif; $arisen_m = 1.0; $main_m = 1.0 + ($main_diff/100); $supp1_m = 1.0 + ($supp1_diff/100); $supp2_m = 1.0 + ($supp2_diff/100); $total_m = $arisen_m * $main_m * $supp1_m * $supp2_m; $supp1_xp = ( 1.0 - ($arisen_m - $supp1_m) ) * (1.0 - ($main_m - $supp1_m) ) * (1.0 - ($supp1_m - $supp1_m) ) * (1.0 - ($supp2_m - $supp1_m) ); $supp2_xp = ( 1.0 - ($arisen_m - $supp2_m) ) * (1.0 - ($main_m - $supp2_m) ) * (1.0 - ($supp1_m - $supp2_m) ) * (1.0 - ($supp2_m - $supp2_m) ); $arisen_xp_m = ( 1.0 - ($arisen_m - $arisen_m) ) * (1.0 - ($main_m - $arisen_m) ) * (1.0 - ($supp1_m - $arisen_m) ) * (1.0 - ($supp2_m - $arisen_m) ); $arisen_xp = ( $arisen_xp_m * $base_xp ) * $weal_effect * $mode_effect; $supp1_rc = ( $base_xp * $supp1_xp * 0.1 ) * $weal_effect * $mode_effect; $supp2_rc = ( $base_xp * $supp2_xp * 0.1 ) * $weal_effect * $mode_effect; if ( $pawn1_level == "0" || $pawn1_level == "" ): $supp1_rc = 0; endif; if ( $pawn2_level == "0" || $pawn2_level == "" ): $supp2_rc = 0; endif; endif?>
![]()
if ($cmd == "calculate"): ?>
Found an issue or just wanna give feedback? PM paasky in GameFAQ's.
|