risk-of-thunder / RoR2BepInExPack

RoR2BepInExPack
MIT License
1 stars 10 forks source link

ModCompatibility: New Namespace + Multi-Corrupt Fix #2

Closed yekoc closed 2 years ago

yekoc commented 2 years ago

Fixes the issue where multiple corruption targets for an item are present,provides the following methods via config to determine how to decide who gets the new stack: Random -> (Default Option) picks randomly First -> Oldest Target Picked Up Last -> Newest Target Picked Up Rarest -> Rarest Target Picked Up ( falls back to Newest on ambiguity) Alternate -> All targets get a turn in acquisition order

Put under ModCompatibility because discussion pointed out that it wasn't actually 'fixing' any vanilla issues(due to vanilla not containing any multiple target corruptions). Pluripotent Larva prefers results you already have and applies the same selection method over the full list of possible corruptions instead if you don't have any.