One of the things I use Extra Loot for is to give a chance for a custom skinned item to appear in 2 of the loot crates. This item is a "VPN" that is part of the Drug Business plugin. It's a reskinned small battery. I had set the chances for it to spawn to 5% but it was still spawning way too much in the loot crates, so I set the minimum to 0 and maximum to 1, so even if it hit's the 5% chance, there's still a chance it won't spawn. I don't understand why it's spawning so often at 5% in the first place. Anyway, I get this error in my console when it picks the minimum:
Creating item with less than 1 amount! (Battery - Small)
I don't think this is really a concern, I don't believe it's causing any issues with the server, but I guess my real question is, does the % chance for an item spawn work correctly? This item spawns WAAAAAY too much for 5%. For reference, here's my config:
{
"ShortName -> Items": {
"crate_elite": [
{
"1. ShortName": "hat.gas.mask",
"2. Chance": 5.0,
"3. Minimal amount": 1,
"4. Maximal Amount": 1,
"5. Skin Id": 0,
"6. Display Name": "Gas Mask",
"7. Blueprint": false
}
],
"crate_normal": [
{
"1. ShortName": "battery.small",
"2. Chance": 2.0,
"3. Minimal amount": 0,
"4. Maximal Amount": 1,
"5. Skin Id": 2645299478,
"6. Display Name": "VPN Flash Drive",
"7. Blueprint": false
}
],
"crate_normal_2": [
{
"1. ShortName": "battery.small",
"2. Chance": 2.0,
"3. Minimal amount": 0,
"4. Maximal Amount": 1,
"5. Skin Id": 2645299478,
"6. Display Name": "VPN Flash Drive",
"7. Blueprint": false
}
]
}
}