modded demolisher map colors
modded demolisher map colors
I am writing a mod to introduce a leviathan enemy, and I'm deriving it from the demolisher. However, I've run into a modding api snag. There seems to be a single global coloring for all demolisher-like territories (the hatch and outline). If I override it for my aquilo leviathan to use blues, this recolors the demolisher territories on vulkanus, which is really not good. I could draw my territories for my leviathans manually perhaps. But I think what we really need is a property on the demolisher-monsters themselves that state their territory color pallette. The next best thing would be a per-surface pallette, but this then would make it impossible to support multiple kinds of segmented monsters with different territory colors on the same surface which would be sad. Having the colors on the prototype for a kind of enemy lets us color different levels of demolishers different colors e.g. different strengths of red by size. Having it on the individual demolisher would let us do things like change the color of the hatching for a demolisher that is enraged, for example. But my minimal requirement is to be able to use blues for my leviathans while not overriding the reds for demolishers.
- _CodeGreen
- Fast Inserter

- Posts: 107
- Joined: Sat Mar 05, 2022 11:30 am
- Contact:
Re: modded demolisher map colors
+1, this seems like a useful addition, I can see something like LuaTerritory::color working quite well, as well as LuaSurface::create_territory.color
My Mods | If you can't make it perfect, make it adjustable
- FluidNatalie
- Inserter

- Posts: 20
- Joined: Tue Oct 14, 2025 7:52 pm
- Contact: