mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
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:
parent
6001934e8f
commit
3606490308
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user