32 xp from singletron boss entity?
please tell me that it's joke.
Every entity shoud have minxpgain data field, no matter how many units, how many looses, what level difference, after combat all units gain atleast XP amount from that field.
If albeix have this field set to 100, no matter how many heroes participate in killing him, they all will recieve atleast 100 XP.
this done by adding something like Math.max(minxpgain,calculatedXP) at very last line of xp calculation method, really this is 5 minfix ever for large project.
after that xp issues will be gone permanently, setting reasonable values for strong entities, like bosses, creatures with maul will permanently fix issues with xp.
this is much faster and effective than fixing xp calculator itself, but it will do its job perfectly.