[BOUNTY] Adds random mutations to DNA disk maints loot #5690
+106
−1
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.
About The Pull Request
Coded for a bounty.
This makes it so DNA data disks that spawn in maints will always have a single random mutation.
The mutation quality (positive/neutral/negative) will be picked first, so there won't be any bias based on how many mutations of a given quality exist.
However, the weight for positive mutations is slightly higher than neutral or negative mutations (5 vs 3)
There is a 70% chance that a random, applicable non-stabilizer chromosome will be applied to the mutation. If one was not applied, then there's a 15% chance that a stabilizer chromosome will be applied.
Almost any mutation can spawn, with a few specific exceptions:
Why It's Good For The Game
Encourages interaction with the geneticists, as you'll need a dna console to actually check and use the mutations, and perhaps makes things more interesting overall.
Changelog
🆑
add: DNA data disks that spawn in maints will now have a single random mutation on them, sometimes with a chromosome applied.
qol: Saving a mutation from a disk to DNA console will now properly mark that mutation as discovered if it hasn't already been discovered.
/:cl: