This wiki is a read-only version of the Stardew Valley Wiki. The official editable wiki maintained by ConcernedApe can be found at stardewvalleywiki.com
Talk:Speed
From Stardew Valley Wiki
This talk page is for discussing Speed. | |
---|---|
|
|
Speed Values
Here's where the numbers I've added to the article came from:
Running/walking:
- Farmer::setRunning says that
base.speed=5
ifrunning
; otherwisebase.speed=2
Horse:
- Farmer::getMovementSpeed says that
movementSpeed = base.speed + 4.6
ifisRidingHorse()
(and there's no cut-scene, etc.) - Farmer::setMount sets
base.speed=2
when mounting a horse and Farmer::updateMovementAnimation() also setsbase.speed=2
ifisRidingHorse()
- At first glance, I thought the base speed when riding was 5, because Farmer::setRunning says that
running=true
whenisRidingHorse()
. But in fact, that bit of code in setRunning explicitly prevents base.speed from being changed to the running value of 5.
- At first glance, I thought the base speed when riding was 5, because Farmer::setRunning says that
- This implies that horse-riding is 32% faster than running (6.6/5=1.32), which is similar to the (as far as I can tell undocumented) 30% increase stated at Horse
- One quick in-game check confirmed this value: running across the screen took 10 seconds, whereas riding across the exact same distance took 7.5 seconds (versus expected value of [10 seconds] * [running speed of 5] / [riding speed of 6.6] = 7.58).
Terrain:
- Grass:doCollisionAction sets
(who as Farmer).temporarySpeedBuff = -1f
- HoeDirt::doCollisionAction sets
(who as Farmer).temporarySpeedBuff = -1f
, but only ifcrop != null && (int)crop.currentPhase != 0 && who is Farmer && (who as Farmer).running)
- Flooring::doCollisionAction sets
(who as Farmer).temporarySpeedBuff = 0.1f;
, but only if location is Farm.
I had always noticed the first two slowdowns in game, but the flooring speed-up seems too small to be clearly detectable.
Nebulous Maestress (talk) 18:25, 5 April 2020 (UTC)