Skip to content
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

Merged

Conversation

VMSolidus
Copy link
Member

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

🆑

  • fix: Glimmer Mites can no longer spawn anywhere other than "THE" Station.

@github-actions github-actions bot added the Changes: C# Changes any cs files label Sep 29, 2024
Copy link
Contributor

@Mnemotechnician Mnemotechnician left a 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)

@FoxxoTrystan FoxxoTrystan requested review from a team, DEATHB4DEFEAT, FoxxoTrystan, Peptide90, Pspritechologist and OldDanceJacket and removed request for a team September 30, 2024 08:47
@github-actions github-actions bot added the Status: Needs Review Someone please review this label Sep 30, 2024
@FoxxoTrystan FoxxoTrystan added Priority: 2-High Needs to be resolved as soon as possible Size: 5-Very Small For especially small issues/PRs and removed Status: Needs Review Someone please review this labels Sep 30, 2024
@github-actions github-actions bot added the Status: Needs Review Someone please review this label Sep 30, 2024
@FoxxoTrystan FoxxoTrystan added Priority: 1-Urgent Must be resolved immediately and removed Priority: 2-High Needs to be resolved as soon as possible labels Oct 7, 2024
@Mnemotechnician
Copy link
Contributor

Mnemotechnician commented Oct 7, 2024

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.

@FoxxoTrystan FoxxoTrystan self-requested a review October 7, 2024 19:11
@VMSolidus
Copy link
Member Author

Alright fine, it no longer assumes only one spawnable station.

@VMSolidus VMSolidus merged commit 87cc149 into Simple-Station:master Oct 9, 2024
11 checks passed
SimpleStation14 added a commit that referenced this pull request Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changes: C# Changes any cs files Priority: 1-Urgent Must be resolved immediately Size: 5-Very Small For especially small issues/PRs Status: Needs Review Someone please review this
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants