Fractal Softworks Forum

Starsector => Mods => Modding => Topic started by: Harmful Mechanic on May 14, 2019, 07:02:17 PM

Title: Minor 0.9.1 campaign stuff
Post by: Harmful Mechanic on May 14, 2019, 07:02:17 PM
I haven't found anything on:
- adding faction leaders to markets (Baikal Daud on Chicomoztoc, Artemisia Sun on Eochu Bres, etc)
- adding danger level text to custom warning beacons (would be slightly annoyed if this turns out to be a non-starter)

And I've done some looking.
Title: Re: Minor 0.9.1 campaign stuff
Post by: Alex on May 14, 2019, 07:07:13 PM
Admins: see CoreLifecyclePluginImpl.assignCustomAdmins()

Warning beacon stuff: see WarningBeaconEntityPlugin.appendToCampaignTooltip() (so, for something custom, you'd probably want to extend that class and override that method).
Title: Re: Minor 0.9.1 campaign stuff
Post by: Harmful Mechanic on May 14, 2019, 07:13:09 PM
Thanks! Just that little bit more obscure than I was prepared for.

I already implement a custom beacon plugin, so I'll just append the new code to that.
Title: Re: Minor 0.9.1 campaign stuff
Post by: Alex on May 14, 2019, 07:22:04 PM
Yep, makes sense.