Open chaosvolt opened 3 years ago
@chaosvolt https://github.com/cataclysmbnteam/Cataclysm-BN/pull/4637 Please close if fixed by this.
NC_EVAC_SHOPKEEP_misc
to appear 100% of the time.The list DOES seem to be a lot better-populated than I remember it being however, so we can potentially close this since it's possible the issue fixed by that PR may have been the bigger problem than the early termination. It's also possible that Coolthlhu's earlier solution of removing that function might actually work now that the itemgroup actually generates correctly on game start.
Describe the bug
Per discussion in https://github.com/cataclysmbnteam/Cataclysm-BN/pull/553 it was discovered that shopkeeper NPCs have a hardcoded function in their inventory generation, that gives it a chance of giving early which every spawn roll after the 10th item.
Steps To Reproduce
prob
.Expected behavior
Shopkeepers have what the JSON author intends them to have, and at the desired rates, making balance of inventory spawns easier to ascertain and control.
Screenshots
Versions and configuration
Additional context
Relevant section of code noticed by Coolthuhlu during discussion in that PR:
I tried at one point testing what would happen if I changed it to this:
And found the issue still persisted.