A simple addition, this lets the VH1 mod know when a mob's hp is altered.
Bars appear automatically over the mob when damaged, and disappear shortly after healed to full, or when the mob is removed when dead.
Add support for Visual Harm 1ndicators mod #151
Mantar/Repixture:VH1_support into master
While I appreciate your PR, I think this is the wrong approach because Repixture has to know about your mod and then support it for all eternity. No way.
Rather than hardcoding external mod-related code into Repixture, Repixture should instead offer some callback function to tell your mod when mob HP has changed. I am willing to accept a PR that adds such a callback. There's already a register_on_die function in rp_mobs.
I should maybe consider of adding mob HP bars natively anyway. Players already have a HP bar, but not mobs (oddly). See rp_headbars. I'm not 100% sure about that yet.
Pull request closed
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?