game: 숙련도로 얻는 유산 포인트 감소

This commit is contained in:
2022-02-23 00:21:02 +09:00
parent c77e89ca0d
commit 15453d0704
2 changed files with 8 additions and 2 deletions
+7 -1
View File
@@ -1384,9 +1384,15 @@ class General implements iAction
switch ($key) {
case 'dex':
$extractFn = function () use ($multiplier) {
$dexLimit = Util::array_last(getDexLevelList())[0];
$totalDex = 0;
foreach (array_keys(GameUnitConst::allType()) as $armType) {
$totalDex += $this->getVar("dex{$armType}");
$subDex = $this->getVar("dex{$armType}");
if($subDex > $dexLimit){
$totalDex += ($subDex - $dexLimit) / 3;
$subDex = $dexLimit;
}
$totalDex += $subDex;
}
return [$totalDex * $multiplier, null];
};