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:
@@ -365,14 +365,14 @@ class General extends GeneralBase implements iAction
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->calcCache[$cKey] = $statValue;
|
|
||||||
|
|
||||||
$statValue = Util::clamp($statValue, 0, GameConst::$maxLevel);
|
$statValue = Util::clamp($statValue, 0, GameConst::$maxLevel);
|
||||||
|
|
||||||
if ($useFloor) {
|
if ($useFloor) {
|
||||||
return Util::toInt($statValue);
|
return Util::toInt($statValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->calcCache[$cKey] = $statValue;
|
||||||
|
|
||||||
return $statValue;
|
return $statValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user