Though, I have another question; how do you make a planetary condition that appears on a specific planet after it's been decivilized and changes if it is recolonized? I understand that there is Decivilized/Deciv Subpop and a ColonyDecivListener but checking the Deciv/Deciv Subpop java files doesn't seem to yield anything special and I don't really know how to use the listener.
Hmm - for how listeners work, you generally want to do something like:
Global.getSector().getListenerManager().addListener()
And then your object will get the listener interface methods called when appropriate. You also want to .removeListener() when your object no longer needs to exist; having listeners stick around if they're not removed can be an easy way to have a memory leak.
And a little bonus to the above: How do you make it not spawn if the colony is colonized by a specific faction?
That'd just be up to whatever code you write to have that logic in it!
Is there a "proper" way to get a system to render a glow (specifically, like a phase coil / weapon glow)?
As far as I can tell my best option is to use magiclib's singleframe render function and basically do it myself, but that seems like an unwieldy solution- has anyone come up with a better one?
Phase coils are iirc hardcoded to only work with phase-cloak type ship systems?
For weapon glows, though, there's:
ShipAPI.setWeaponGlow()
WeaponAPI.setGlowAmount() (not 100% sure this one is in the release, but the other one is.)