숙련도에 훈련과 사기를 적용 #1
+1
-1
@@ -1085,7 +1085,7 @@ function addGenDex($connect, $no, $atmos, $train, $type, $exp) {
|
|||||||
$dexType = "dex{$type}";
|
$dexType = "dex{$type}";
|
||||||
if($type == 30) { $exp = round($exp * 0.90); } //귀병은 90%효율
|
if($type == 30) { $exp = round($exp * 0.90); } //귀병은 90%효율
|
||||||
elseif($type == 40) { $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'";
|
$query = "update general set {$dexType}={$dexType}+{$exp} where no='$no'";
|
||||||
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect),"");
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
define('DEFAULT_ATMOS', 100)
|
define('DEFAULT_ATMOS', 100);
|
||||||
define('DEFAULT_TRAIN', 100)
|
define('DEFAULT_TRAIN', 100);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 장수의 통솔을 받아옴
|
* 장수의 통솔을 받아옴
|
||||||
|
|||||||
Reference in New Issue
Block a user