Change the speed floor to 0.1 (avoiding a division by zero in modular weapons accidentally buffed the Twitching Root).

This commit is contained in:
Avi Weinstock 2021-02-20 19:19:26 -05:00
parent 6001934e8f
commit 3606490308

View File

@ -93,8 +93,8 @@ impl StatKind {
// TODO: add stats from enhancement slots
}
// if an item has 0.0 speed, that panics due to being infinite duration, so
// enforce speed >= 0.5
stats.speed = stats.speed.max(0.5);
// enforce speed >= 0.1
stats.speed = stats.speed.max(0.1);
stats
}
}