A13 - LookList( x, x, LookMode.Undefined ) doesn't handle Unity.Color

Started by Fluffy (l2032), May 02, 2016, 01:56:05 AM

Previous topic - Next topic

Fluffy (l2032)

In my latest mod, I'm trying to map colors to relationshipdefs. This works fine with a DefMap<PawnRelationDef, Color>, until I want to scribe the DefMap. The DefMap uses Scribe_Collections.LookList( x, x, LookMode.Undefined ) to automatically resolve to the correct mode, but for colors it erroneously picks LookMode.Deep.

Expected behaviour: LookMode.Undefined resolves to LookMode.Value for Color objects.