TM 서버 밸런스 패치 이식

This commit is contained in:
2018-04-13 03:41:39 +09:00
parent 0b17a289c8
commit 02f90842fe
7 changed files with 72 additions and 71 deletions
+2 -1
View File
@@ -188,7 +188,7 @@ function getGenDex($general, $type) {
return $general["dex{$type}"];
}
function addGenDex($no, $type, $exp) {
function addGenDex($no, $atmos, $train, $type, $exp) {
$db = DB::db();
$connect=$db->get();
@@ -196,6 +196,7 @@ function addGenDex($no, $type, $exp) {
$dexType = "dex{$type}";
if($type == 30) { $exp = Util::round($exp * 0.90); } //귀병은 90%효율
elseif($type == 40) { $exp = Util::round($exp * 0.90); } //차병은 90%효율
$exp = Util::round($exp * ($atmos+$train) / 200); // 사기 + 훈련 / 200
$query = "update general set {$dexType}={$dexType}+{$exp} where no='$no'";
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");