예제 #1
0
 public static void Prefix(RanchModel __instance, RanchDirector.PaletteType type, ref RanchDirector.Palette pal)
 {
     if (!((RanchDirector)__instance.participant).paletteDict.ContainsKey(pal))
     {
         pal = ChromaRegistry.GetDefaultPaletteForType(type);
     }
 }
예제 #2
0
 public static void Prefix(RanchModel __instance, RanchDirector.PaletteType type, ref RanchDirector.Palette pal)
 {
     if (!Enum.IsDefined(typeof(RanchDirector.Palette), pal))
     {
         pal = ChromaPackRegistry.GetDefaultPaletteForType(type);
     }
 }