Handyfon / heartbeat

Make hp changes exiting and immersive!
1 stars 4 forks source link

Support for nonstandard actor types #13

Open Toto5561 opened 1 month ago

Toto5561 commented 1 month ago

I spent a while banging my head against a wall getting this module to work with LANCER. I assumed something was up with the data paths, but realized that the culprit was this snippet here (starting at line 436):

if(character.type != 'character' && character.type != 'npc'){
        disableHeartBeat();
        changeHeartBeatButtton('special');
        return;

I ended up appending && character.type != 'mech' as a hack fix, but perhaps an option in the settings to exclude actor types would be more accommodating than hardcoded type limitations.