fix: 스탯 계산 시에 캐시 사용하는 부분 수정 시도 (#241)

Reviewed-on: https://storage.hided.net/gitea/devsam/core/pulls/241
This commit was merged in pull request #241.
This commit is contained in:
2024-02-17 00:01:49 +09:00
+2 -2
View File
@@ -365,14 +365,14 @@ class General extends GeneralBase implements iAction
}
}
$this->calcCache[$cKey] = $statValue;
$statValue = Util::clamp($statValue, 0, GameConst::$maxLevel);
if ($useFloor) {
return Util::toInt($statValue);
}
$this->calcCache[$cKey] = $statValue;
return $statValue;
}