changing lower bounds of encumbered jump debuff

This commit is contained in:
minjaesong
2023-09-12 18:31:00 +09:00
parent 53060fc90c
commit 4fbb5f4828

View File

@@ -656,8 +656,8 @@ open class ActorHumanoid : ActorWithBody, Controllable, Pocketed, Factionable, L
get() = actorValue.getAsDouble(AVKey.JUMPPOWER)!! * // base stat
(actorValue.getAsDouble(AVKey.JUMPPOWERBUFF) ?: 1.0) * // buffed stat
jumpMultByTile * // tile-specific
scale.pow(0.25)
// ((encumberment / avStrengthNormalised).pow(-1.0/3.0)).coerceIn(0.1, 1.0) // encumbered actors move slower
scale.pow(0.25) *
// ((encumberment / avStrengthNormalised).pow(-1.0/3.0)).coerceIn(0.48, 1.0) // encumbered actors move slower
private fun jumpFunc(len: Int, counter: Int): Double {
// linear time mode