수식수정, 세미콜론 추가

This commit was merged in pull request #1.
This commit is contained in:
Lee
2018-02-20 14:05:35 +09:00
parent 337fcdf85c
commit 9b724cd3e8
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1085,7 +1085,7 @@ function addGenDex($connect, $no, $atmos, $train, $type, $exp) {
$dexType = "dex{$type}";
if($type == 30) { $exp = round($exp * 0.90); } //귀병은 90%효율
elseif($type == 40) { $exp = round($exp * 0.90); } //차병은 90%효율
$exp = $exp * $atmos/100 * $train/100;
$exp = $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),"");
+2 -2
View File
@@ -1,7 +1,7 @@
<?php
define('DEFAULT_ATMOS', 100)
define('DEFAULT_TRAIN', 100)
define('DEFAULT_ATMOS', 100);
define('DEFAULT_TRAIN', 100);
/**
* 장수의 통솔을 받아옴