-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Station Only Glimmer Mites #976
Station Only Glimmer Mites #976
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(The suggestions are done with LINQ, you will have to add a using
directive for it if your IDE doesn't add it automatically)
Content.Server/DeltaV/StationEvents/Events/GlimmerMobSpawnRule.cs
Outdated
Show resolved
Hide resolved
Content.Server/DeltaV/StationEvents/Events/GlimmerMobSpawnRule.cs
Outdated
Show resolved
Hide resolved
Content.Server/DeltaV/StationEvents/Events/GlimmerMobSpawnRule.cs
Outdated
Show resolved
Hide resolved
As suggested above (but ignored by VM), stations should never be hardcoded. This WILL break if someone adds more than 1 station to a map (which is perfectly possible and fine, see: frontier; or the new wizden map which evidently contains 2 stations), or if the original station loses its station status, or under many other different conditions. |
Alright fine, it no longer assumes only one spawnable station. |
Description
This PR makes it so that Glimmer Mites can only spawn on "The Main Station", as defined by GetSpawnableStations. Yes this is seemingly pretty hardcodey, but because on our codebase it's simply not possible for GetSpawnableStations to ever return anything other than a list with an index of 0, we can extremely reliably count on GetSpawnableStations()[0] to be "THE Station".
This fixes an issue whereby Glimmer Mites can spawn in places where it is simply not possible for players to reach them. Such as random asteroids in space, CENTCOMM, Nukie World, or the Syndicate Listening Outpost.
Changelog
🆑