Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src: Eliminate randomness from sprinting distance
Stamina regen: Use std::ceil instead of roll_remainder in update_stamina. This ensures that the floating-point value is always rounded up (instead of only randomly being rounded up), and should give at most 1 extra point of stamina regen. Getting winded: Before, there was a random chance to become winded below 20% of maximum stamina, meaning total running distance could be cut short by 8-12 steps or more (effectively capping maximum stamina at 80%, at random). Now, becoming winded is more predictable, occurring only upon reaching 0 stamina.
- Loading branch information