risk-of-thunder / R2API

A modding API for Risk of Rain 2
https://thunderstore.io/package/tristanmcpherson/R2API/
MIT License
136 stars 55 forks source link

Skin-specific DisplayGroupRule overrides #521

Closed KingEnderBrine closed 4 months ago

KingEnderBrine commented 4 months ago

Made AddGroupOverrided method which allows item developers to add skin-speific item displays without requiring to make full IDRS, because that's too much and wouldn't work if multiple mods tried to do that. If there was added skin-spercific idrs the override will go on top of it, otherwise a clone of idrs from body prefab will be used as a base. Also now storing idrs for each skin, to fix the issue where if you first applied a skin with idrs and then a skin without idrs and characterModel would keep using first skin idrs instead of default one (probably never comes up anywhere outside of IDRS helper, but it was annoying me).