示例#1
0
        public override Color GetColor(IntVec3 cell, Map map, Rot4 rot, CellPattern cellPattern)
        {
            var col = base.GetColor(cell, map, rot, cellPattern);

            if (cell.GetPlantable(map).HasValue)
            {
                col = Color.green;
                if (cellPattern == CellPattern.BlurprintMax)
                {
                    col = col.A(0.5f);
                }
            }
            return(col);
        }