Enums are hardcoded and make modding harder. Please consider replacing this enum with a def-based system. I do realize that this might be a performance-sensitive area, but perhaps something smart could be done. For example, generating a bitmask from defs at game start should be possible?
Added to todo, thanks.