aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/misc
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-03-26 18:27:32 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-03-26 18:27:32 +0100
commitbfb75438ed4a82a0c8f66cc8ecfc4ca0fabac4b7 (patch)
treee1560ab73e29cebf65b31ef7d0cb2a329f0cd391 /src/main/java/at/hannibal2/skyhanni/features/misc
parent871d90100ba2cf45f6544220138a3d62433baf43 (diff)
downloadskyhanni-bfb75438ed4a82a0c8f66cc8ecfc4ca0fabac4b7.tar.gz
skyhanni-bfb75438ed4a82a0c8f66cc8ecfc4ca0fabac4b7.tar.bz2
skyhanni-bfb75438ed4a82a0c8f66cc8ecfc4ca0fabac4b7.zip
add comment to speed value (ty alexia)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/misc')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/MovementSpeedDisplay.kt11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/MovementSpeedDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/MovementSpeedDisplay.kt
index 2a984aeed..7f412a0c6 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/MovementSpeedDisplay.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/MovementSpeedDisplay.kt
@@ -22,6 +22,17 @@ class MovementSpeedDisplay {
private val soulsandSpeeds = mutableListOf<Double>()
companion object {
+ /**
+ * This speed value represents the walking speed, not the speed stat.
+ *
+ * It has an absolute speed cap of 500, and items that normally increase the cap do not apply here:
+ * (Black Cat pet, Cactus knife, Racing Helmet or Young Dragon Armor)
+ *
+ * If this information ever gets abstracted away and made available outside this class,
+ * and some features need the actual value of the Speed stat instead,
+ * we can always just have two separate variables, like walkSpeed and speedStat.
+ * But since this change is confined to Garden-specific code, it's fine the way it is for now.
+ */
var speed = 0.0
var usingSoulsandSpeed = false
}