Skip to content

don't give players multiple custom roles during spawnwave#5

Merged
SlejmUr merged 1 commit into
KadavasKingdom:mainfrom
cg-223:patch-2
May 4, 2026
Merged

don't give players multiple custom roles during spawnwave#5
SlejmUr merged 1 commit into
KadavasKingdom:mainfrom
cg-223:patch-2

Conversation

@cg-223

@cg-223 cg-223 commented May 4, 2026

Copy link
Copy Markdown
Member

certified goob moment?

players can (attempt) to be given multiple custom roles during a spawnwave, this visibly does nothing but it prevents custom roles from spawning if you get unlucky and like 5 get given to the same person (they'll only get the first one obvi)

@SlejmUr

SlejmUr commented May 4, 2026

Copy link
Copy Markdown
Contributor

isnt there a "HasCustomRole" or something

@cg-223

cg-223 commented May 4, 2026

Copy link
Copy Markdown
Member Author

there is a Contains, but it is pretty much just the same thing as I wrote

    public static bool Contains(Player player)
    {
        return TryGetCustomRole(player, out _);
    }

@SlejmUr

SlejmUr commented May 4, 2026

Copy link
Copy Markdown
Contributor

lel okay then

@SlejmUr
SlejmUr merged commit 1981f28 into KadavasKingdom:main May 4, 2026
2 checks passed
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