Possible Dupe Spawn Fix: CreatureSpawns-Subnautica.cs #11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I looked in the code and all the reports. I noticed all the main creature dupe reports were of the ones with count before the probability. I will admit I am no programmer however logically I believe that the probability of the spawns checks for each count. while having count above probability it checks count first so an an example. count is 12 and probability is .01f idk the f I assume its % so a 1% chance of spawning 12 of the creature. while having probability first would seem to be like a 1% chance of spawning 1 of them and that triggers 12 times. idk makes sense to me could be complete nonsense. I will use my updated file and see if I get the dupe bug. I haven't played with it before. it will be a clean save and Ill give a update if it happens, and if u dont hear from me chances it worked.