mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-21 04:57:57 +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:
@@ -471,5 +471,6 @@
|
||||
* If higher than 1, it'll lean toward common spawns even more.
|
||||
*/
|
||||
/datum/config_entry/number/random_loot_weight_modifier
|
||||
integer = FALSE
|
||||
default = 1
|
||||
min_val = 0.05
|
||||
|
||||
@@ -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