같은 병종 숙련전환하면 늘어나기만 하는 버그 수정

This commit is contained in:
2019-11-26 18:49:40 +09:00
parent 65aa4c29a4
commit e9b5e4d4d1
+9
View File
@@ -2565,9 +2565,18 @@ function process_58(&$general) {
$cutDex = Util::toInt($fromOrigDex * 0.3);
$fromNewDex = $fromOrigDex - $cutDex;
if($fromDexIdx == $toDexIdx){
$toOrigDex = $fromNewDex;
}
$addDex = Util::toInt($cutDex * 2 / 3);
$toNewDex = $toOrigDex + $addDex;
if($fromDexIdx == $toDexIdx){
$fromNewDex = $toNewDex;
}
$exp = 10;
$exp = CharExperience($exp, $general['personal']);