Allow fuel_glow_color for non-fuels

I made DiscoScience, which makes labs light up with the colour of the items they are consuming. The main source of requests for the mod are to support ingredients from other mods. At the moment, this involves putting new ingredient colours in a giant compatibility table.

I would like other mod authors to be able to provide colours for DiscoScience. I saw that Prototype/Item has a fuel_glow_color, which is actually conceptually identical to what I want. The only problem is that it is not valid if the item is not a fuel, which means you can't attach this data to arbitrary items.

Would allowing fuel_glow_color without an item being a fuel be too much of a hack? Is there any more appropriate and generic way of decorating existing data types?
Statistics: Posted by danielbrauer — Mon Feb 03, 2020 2:05 pm