숙련도에 훈련과 사기를 적용 #1

Merged
Hide_D merged 1 commits from sars into devel 2018-02-20 15:08:12 +09:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 9b724cd3e8 - Show all commits
+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);
/**
* 장수의 통솔을 받아옴