I wanted stacks of items to appear with a single declaration on my json map character. So in the terrain json I put
"items": {
"z": { "item": "jacket_stack", "chance": 80 }
}
Then in a items_groups.json I put
{
"type" : "item_group",
"id" : "jacket_stack",
"subtype": "collection",
"groups":[
["jackets", 30],
["jackets", 30],
["jackets", 30]
]
}
“jackets” is a core item group. I expected 0 to 3 jackets to appear on each “z” in my map, but I got as many as 20. Changing the chance to 100 in my terrain json makes it work as I expected. Also, if I do the same sort of thing with a distribution, everything works correctly.
Finally if I remove the chance from my declaration it behaves as though I gave it a 0 chance. Seems like it should be 100 by default.
I’m posting here instead of the github because it’s possible it’s mearly my understanding collections that is buggy.
win10, tiles, 0.C-19846-gebe6fa5