Fix missing RC->GC colour mapping

This commit is contained in:
NGnius (Graham) 2020-06-14 12:49:10 -04:00
parent 5acd445361
commit 523baec814
2 changed files with 8 additions and 5 deletions

View file

@ -246,11 +246,11 @@ namespace Pixi.Common
botColorMap[18] = new BlockColor { Color = BlockColors.Purple, Darkness = 9 }; botColorMap[18] = new BlockColor { Color = BlockColors.Purple, Darkness = 9 };
botColorMap[19] = new BlockColor { Color = BlockColors.Pink, Darkness = 9 }; botColorMap[19] = new BlockColor { Color = BlockColors.Pink, Darkness = 9 };
botColorMap[20] = new BlockColor { Color = BlockColors.Orange, Darkness = 5 }; botColorMap[20] = new BlockColor { Color = BlockColors.Orange, Darkness = 5 };
botColorMap[20] = new BlockColor { Color = BlockColors.Yellow, Darkness = 3 }; botColorMap[14] = new BlockColor { Color = BlockColors.Yellow, Darkness = 3 };
botColorMap[14] = new BlockColor { Color = BlockColors.Green, Darkness = 7 }; botColorMap[21] = new BlockColor { Color = BlockColors.Green, Darkness = 7 };
botColorMap[21] = new BlockColor { Color = BlockColors.Lime, Darkness = 8 }; botColorMap[22] = new BlockColor { Color = BlockColors.Lime, Darkness = 8 };
botColorMap[22] = new BlockColor { Color = BlockColors.Green, Darkness = 6 }; botColorMap[13] = new BlockColor { Color = BlockColors.Green, Darkness = 6 };
botColorMap[13] = new BlockColor { Color = BlockColors.Lime, Darkness = 5 }; botColorMap[12] = new BlockColor { Color = BlockColors.Lime, Darkness = 5 };
// blue gang // blue gang
botColorMap[23] = new BlockColor { Color = BlockColors.Blue, Darkness = 8 }; botColorMap[23] = new BlockColor { Color = BlockColors.Blue, Darkness = 8 };
botColorMap[24] = new BlockColor { Color = BlockColors.Aqua, Darkness = 8 }; botColorMap[24] = new BlockColor { Color = BlockColors.Aqua, Darkness = 8 };

View file

@ -188,6 +188,9 @@ namespace Pixi.Robots
{ {
// I hope these colours are accurate, I just guessed // I hope these colours are accurate, I just guessed
// TODO colour accuracy (lol that won't ever happen) // TODO colour accuracy (lol that won't ever happen)
#if DEBUG
Logging.MetaLog($"Cube colour {colour}");
#endif
BlockColor c = ColorSpaceUtility.QuantizeToBlockColor(colour); BlockColor c = ColorSpaceUtility.QuantizeToBlockColor(colour);
result.color = c.Color; result.color = c.Color;
result.darkness = c.Darkness; result.darkness = c.Darkness;