[Suggestion] Support in damage mechanics for custom stats damage_modifiers and damagetype
Summary
Add support to hit/damage mechanics for custom damage stats as it currently does not take them into account
Usage
In this example I would have expected the outcome to be for the hit mechanic to do 5 damage to whoever attacks it as it does 5 Poison damage whenever it strikes someone due to the bonus damage it gets from the DAMAGE_POISON stat. This is not the case however and the hit mechanic is only taking the mobs damage attribute into account so its doing 0 damage.
Mob file: https://pastebin.com/MkyaP1Vw Stats file: https://pastebin.com/yALez2s3
And in this example the expected outcome would be for the player to take 0 damage due to the POISON_RESISTANCE stat on their armor. Instead it does 5 damage because the damagetype attribute from the damage mechanic does not appear to be compatible with the damagetype attribute from custom stats
Mob File: https://pastebin.com/tyfMHWtm Item File: https://pastebin.com/twfkVvig Stats File: https://pastebin.com/Bc4GGs9J
Value
Allow much easier implementation of custom damage reduction stats and damage types through stats
Priority
Would be nice. There doesn't seem to be much interaction between damage mechanics and stats yet