[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:
Ghom
2024-07-11 06:59:05 +02:00
committed by GitHub
parent e2151818ec
commit 9032f8ccff
2 changed files with 2 additions and 1 deletions
@@ -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)