Skip to content

Conversation

@nclok1405
Copy link
Contributor

@nclok1405 nclok1405 commented Dec 5, 2025

This Pull Request adds enemy blood color options to Cosmetics Editor.

(Please note Mac build is repeatedly and randomly failing. I don't own a Mac, so if I introduce Mac-exclusive bugs, I can't fix it myself.)

Build Artifacts

}

// (Un)register Hooks
if (manualChange) {
Copy link
Contributor

Choose a reason for hiding this comment

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

this shouldn't be necessary with shipinit hooks

Copy link
Contributor Author

@nclok1405 nclok1405 Dec 9, 2025

Choose a reason for hiding this comment

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

Normally not necessary due to automatic register/unregister calls by shipinit, but in my case it doesn't work. Despite all relevant CVar names (CVAR_COSMETIC("Blood.Blue0Begin.Changed") etc) are listed to be watched by RegisterShipInitFunc, the RegisterBlue/GreenBloodHook functions never gets called automatically when blood colors are changed from the default.

}

static void RegisterBlueBloodHook() {
static bool previousHookState = false; // Previous hook enabled state (we don't re-register if unchanged)
Copy link
Contributor

@serprex serprex Dec 8, 2025

Choose a reason for hiding this comment

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

COND_VB_SHOULD handles this, can remove this variable. Same for green blood

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If the register functions are automatically called by shipinit then this isn't needed. As of now, the register functions aren't called automatically by shipinit for some reason.

@Pepper0ni
Copy link
Contributor

Would this replace the old red ganon blood option in restorations?

@nclok1405
Copy link
Contributor Author

Would this replace the old red ganon blood option in restorations?

No. Codes related to Ganon blood exist in completely separate locations from regular enemy blood splatter/hitmark.

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.

3 participants