Skip to content

Assign standalone ghost roles on death - #1

Merged
XaineDev merged 1 commit into
mainfrom
feat/ghost-roles
Oct 13, 2026
Merged

XaineDev merged 1 commit into
mainfrom
feat/ghost-roles

Conversation

@XaineDev

Copy link
Copy Markdown
Member

A custom role whose IsDead is true and that turns HideSettings off is now handed out when a player dies, from its lobby count and chance, the same way vanilla hands out Guardian Angel and Spirit Guide.

  • It is rolled in the existing RoleManager.AssignRoleOnDeath prefix, before vanilla's specials. Roles with a configured GhostRole keep their current path.
  • The role is set on every client through a new MiraRpc.SetGhostRole, not vanilla RpcSetRole.
  • Freeplay assigns any enabled ghost role, so a lobby count above zero is enough to test one.
  • Ghost roles still default to HideSettings = true; the doc comment now says what turning it off does.

Tested with au-influencer's Freeplay smoke test: a dead crewmate became the Influencer ghost role and the full post flow passed.

@XaineDev
XaineDev merged commit 0762998 into main Oct 13, 2026
1 check 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.

1 participant