MV [solved] Need help with two separate plugins - Changing damage popup position

The game i'm making uses Extended damage over time quite heavily. There's a stat dedicated to it, and it's a large part of the spells and skills in the game. To have them be more complex than the default poison, I'm using Yanfly's ExDoT plugin, which is very much what I need and don't think I could do without

Some of the enemy sprites in my game are quite large, sometimes covering the whole screen. Normally, this would cause the damage pop-up to appear off screen, or behind the battle UI, which would be inconvenient. To remedy this, I'm using SRD's Damage Popup Customiser, which works well and allows me to position the damage pop-up well.

I only have one issue : The damage popup customizer does not work with ExDoT. It works normally with the default percentage based poison, and displays a pop-up, but for ExDoT it does not.

I wanted to know if there was any way to change this. I'm ready to do anything, even stuff like changing where the damage pop-up is more precisely without using SRD's plugin, or changing the way I do ExDoT without using Yanfly's plugin.
After mucking around for a bit, I found a solution that doesn't involve a plug in for the damage popups.
Wouldn't it be better if you explained to us how you solved that? Haha, in case anyone has the same problem, it would be good.
The way I did it is by changing rpg_sprites.

On line 1165 is a function that returns the vertical displacement of the damage popups, called Sprite_Enemy.prototype.damageOffsetY. The default value is -8, meaning that the popups will appear 8 pixels above the bottom of the enemy sprite.

I changed it to return this.y*(-1/2)+20;, meaning that its going to be 20 pixels under half of the enemy sprite. You could change that value to be a different expression, or a different value, or even 0, but if you only change this the point of reference will always be the bottom of the enemy sprite.

The function above this one, called Sprite_Enemy.prototype.damageOffsetX, is the same but for horizontal displacement. I haven't mucked around with it , but I think it uses the center of the sprite as a reference point, seeing as it's at 0 and does indeed appear in the horizontal center of the sprites.

I'm not a pro at javascript so I had to muck around a bit to find these, hope they're usefeul !

Original thread: https://forums.rpgmakerweb.com/threads/solved-need-help-with-two-separate-plugins-changing-damage-popup-position.169538/