Skip to content

Allow sending DeathLinks with a cause#37

Merged
N00byKing merged 4 commits into
N00byKing:mainfrom
KScl:deathlink_cause
Mar 18, 2026
Merged

Allow sending DeathLinks with a cause#37
N00byKing merged 4 commits into
N00byKing:mainfrom
KScl:deathlink_cause

Conversation

@KScl

@KScl KScl commented Mar 18, 2026

Copy link
Copy Markdown
Contributor

Overloads AP_DeathLinkSend to accept a string argument as the cause of death. For ease of use, the literal string %YOU%, if present in the cause of death, is replaced with the player's name automatically.

Calling AP_DeathLinkSend() with no arguments should behave identical to before.

@N00byKing

Copy link
Copy Markdown
Owner

Instead of an overload, can you modify the existing definition with a default parameter setting the string empty?

@KScl

KScl commented Mar 18, 2026

Copy link
Copy Markdown
Contributor Author

For some reason, I thought that wouldn't work. I guess it does, huh?

... Oh. I see what happened. My build test used a stale header file.

Look, it's one of those days, lol

Comment thread Archipelago.cpp Outdated
@N00byKing

Copy link
Copy Markdown
Owner

Thanks!

@N00byKing N00byKing merged commit 3d35880 into N00byKing:main Mar 18, 2026
4 checks passed
@KScl KScl deleted the deathlink_cause branch March 22, 2026 16:49
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