Skip to content

Implement rank catchup system | Improve Help command#35

Open
jmarmstrong1207 wants to merge 9 commits intoMaxWasUnavailable:feature/dedicated_reworkfrom
jmarmstrong1207:catchup-rank
Open

Implement rank catchup system | Improve Help command#35
jmarmstrong1207 wants to merge 9 commits intoMaxWasUnavailable:feature/dedicated_reworkfrom
jmarmstrong1207:catchup-rank

Conversation

@jmarmstrong1207
Copy link
Copy Markdown

@jmarmstrong1207 jmarmstrong1207 commented Dec 29, 2025

Requires #28

This is simple. As mission time passes, players that join will get a head start in rank and funds based on the % of max mission time.

Help command now doesn't cut out due to char limit

TODO: Be able to toggle via config file - ✅ Done

View https://github.com/jmarmstrong1207/Nuclei/tree/merge-test branch for implementation of all these PRs

@jmarmstrong1207 jmarmstrong1207 marked this pull request as draft December 29, 2025 20:30
@jmarmstrong1207 jmarmstrong1207 changed the title Implement rank catchup system Implement rank catchup system Dec 31, 2025
@jmarmstrong1207 jmarmstrong1207 changed the title Implement rank catchup system Implement rank catchup system | Improve Help command Dec 31, 2025
@jmarmstrong1207 jmarmstrong1207 marked this pull request as ready for review January 4, 2026 21:59
@jmarmstrong1207
Copy link
Copy Markdown
Author

Also for help command: it currently doesn't send command.Usage. Added commit so that it tells you how exactly to use it

internal static void OnPlayerJoined(Player e)
{
PlayerJoined?.Invoke(e);
if (NucleiConfig.RankCatchUp!.Value) RankCatchUpService.CatchUpPlayer(e);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should never perform functionality in the events. Should instead subscribe to the event somewhere and trigger through that.

The event invocations should be isolated like that.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you edit the file to show me? I'm unfamiliar with doing this myself

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'd subscribe to the PlayerJoined event and run a method on that, see Nuclei.cs for an example of this.

# Conflicts:
#	Nuclei/Features/NucleiConfig.cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants