Skip to content

Re-enable MAIL#1769

Open
NotLivyathan wants to merge 4 commits into
HardLightSector:masterfrom
NotLivyathan:Re-enable-MAIL
Open

Re-enable MAIL#1769
NotLivyathan wants to merge 4 commits into
HardLightSector:masterfrom
NotLivyathan:Re-enable-MAIL

Conversation

@NotLivyathan
Copy link
Copy Markdown
Collaborator

About the PR

Does as it says. Also comes with some slight theoretical improvements to the mail system to hopefully mitigate any potential substantial lag it could cause.

Why / Balance

Mail Carriers literally have no reason to exist right now, and despite being an MRP server, people can't really figure out how to do mail on their own without this.

Technical details

Restored sector-wide player mail by re-adding SectorMail to the mail sector service, which reactivates the existing mail teleporter spawn loop. Adjusted recipient selection so each mail wave shuffles the active recipient pool and hands out deliveries without replacement before any repeat can happen, preventing one player from getting most or all of a wave by chance.

Also cleaned up the mail path a bit as part of that work: reduced per-wave allocation churn in parcel selection, simplified the undelivered-parcel count check, and throttled the “no valid teleporters” / “no candidates” logs so they only fire on state transitions instead of every mail interval.

Breaking changes

Mail. Maybe.

Changelog

🆑

  • add: Colonial Command once again forwards personal mail to station mail teleporters.
  • tweak: Made theoretical improvements to the mailing system to minimize performance impact.

@NotLivyathan
Copy link
Copy Markdown
Collaborator Author

Oops.

@fenndragon
Copy link
Copy Markdown
Collaborator

Oops.

what do you mean oops

@NotLivyathan
Copy link
Copy Markdown
Collaborator Author

Oops.

what do you mean oops

Accidental commits to the wrong branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants