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
Jump to: navigation, search
This talk page is for discussing Speed.
  • Sign and date your posts by typing four tildes (~~~~).
  • Put new text below old text.
  • Be polite.
  • Assume good faith.
  • Don't delete discussions.

Speed Values

Here's where the numbers I've added to the article came from:

Running/walking:

  • Farmer::setRunning says that base.speed=5 if running; otherwise base.speed=2

Horse:

  • Farmer::getMovementSpeed says that movementSpeed = base.speed + 4.6 if isRidingHorse() (and there's no cut-scene, etc.)
  • Farmer::setMount sets base.speed=2 when mounting a horse and Farmer::updateMovementAnimation() also sets base.speed=2 if isRidingHorse()
    • At first glance, I thought the base speed when riding was 5, because Farmer::setRunning says that running=true when isRidingHorse(). But in fact, that bit of code in setRunning explicitly prevents base.speed from being changed to the running value of 5.
  • 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 if crop != 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)