Hentai Heroes++ (OCD) Season version

Adding things here and there in the Hentai Heroes game.

< Feedback on Hentai Heroes++ (OCD) Season version

Review: Good - script works

§
Posted: 2022-06-16
Edited: 2022-06-16

Thanks for the work you do maintaining this!

A couple minor bugs:

The script seems to run twice when visiting any page on hentaiheroes.com on Chrome. I don't know if this is necessary or not, but it seems redundant.

The first time it runs, moduleVillian, moduleXP, moduleMoney, and moduleLinks all break because window.Hero isn't defined (lines 1994, 2314, 2332, and 7027, respectively).

I've fixed it locally by adding if (window.Hero === undefined) { return; } near the top of the script, and that doesn't seem to break anything.


When purchasing stats at the market, the "points remaining" text in the custom pop-up only ever decrements by 1, instead of by the amount purchased. There's a fix I use locally for that on this GitHub gist. This seems to be the only place in the whole script where something is written into window.Hero, which I'm not so sure about, so I don't know if this breaks anything else. Again, it seems fine to me.

There's also a some numbers that draw over each other when purchasing stats in the market. See the attached image.

Post reply

Sign in to post a reply.