mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-21 13:05:36 +01:00
[NO GBP] the random spawner loot weight config is not an integer (#84814)
## About The Pull Request Sets `integer` to false. Also a tidbit about the `skew_loot_weight` proc, though loot lists with uneven weights all tend to add a value to all entries so it isn't an issue. ## Why It's Good For The Game The config isn't an integer. ## Changelog N/A
This commit is contained in:
@@ -103,7 +103,7 @@
|
||||
var/loot_weight = loot_list[loot_type]
|
||||
if(loot_weight <= 1)
|
||||
if(exponent < 1)
|
||||
loot_list[loot_type] *= precision
|
||||
loot_list[loot_type] = precision
|
||||
continue
|
||||
loot_list[loot_type] = round(loot_weight ** exponent * precision, 1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user