Skip to content

Fixes devotion meter not appearing round start#5398

Open
TerraGS wants to merge 3 commits intoMonkestation:mainfrom
TerraGS:fix-devotionHUD
Open

Fixes devotion meter not appearing round start#5398
TerraGS wants to merge 3 commits intoMonkestation:mainfrom
TerraGS:fix-devotionHUD

Conversation

@TerraGS
Copy link

@TerraGS TerraGS commented Feb 25, 2026

About The Pull Request

Somewhat of a bandaid solution. The problem stems from the devotion meter needing hud_used to be assigned before initializing. For round start jobs devotion gets granted before hud_used is assigned (when mind is transfered to the mob).
This adds a listener for the login signal to attempt to initialize the meter again, which should guarantee hud_used is assigned at this point.

Changelog

🆑
fix: Devotion meter should now appear round start
/:cl:

Pre-Merge Checklist

  • You tested this on a local server.
  • This code did not runtime during testing.
  • You documented all of your changes.

@github-actions github-actions bot added the Fix This PR is for fixing bugs label Feb 25, 2026
holder_mob.cleric = src
holder_mob?.hud_used?.initialize_bloodpool()
holder_mob?.hud_used?.bloodpool.set_fill_color(devotion_color)
if(holder_mob?.hud_used)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Change this to checking if the round is setting up and adding an OnRoundstart callback if it is

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

Labels

Fix This PR is for fixing bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants