YEP_DamageCore enables you to take control over how damage in battles is calculated, so I wanted to use this to straighten out my balancing a bit by making enemies hit a little harder, but receiving less healing.
However I am not quite sure where to put it.
In the beginning, I just put these at the very end of the damage calculation:
#1 Enemy damage amplified
#2 Enemy Healing reduced
Putting these at the end not only does not work properly,
but also seems to neglect any elemental resistances.
Now here are my questions:
1. Where and how would I integrate these formulas? I don't really care how it gets done in the end, as long as the functionality is there.
2. Concerning #1, how do I make it so that the bonus damage only applies when enemies do the damage?
-> I have some self-damaging abilities
2. Concerning #2, how do I make it so that the reduced healing only applies when enemies do the healing?
-> There are some ways that the player can heal enemies
3. How can I avoid "neglecting elemental resistances"? Basically what happened is that I hit any enemy with an attack they should be weak to, but it dealt "neutral" damage instead.
4. Maybe the conditions can be tidied up a bit?
Basically, all direct damage from Enemy -> Player should be amplified only after all the calculations are done
(That's why I put it at the end)
And all direct HP healing from Enemy -> Enemy should be reduced
However I am not quite sure where to put it.
In the beginning, I just put these at the very end of the damage calculation:
#1 Enemy damage amplified
JavaScript:
if (target.isActor() && value > 0 && !critical) {
value = Math.max(value * 1.30, value + 10, value ** 1.04)
}
#2 Enemy Healing reduced
JavaScript:
if (target.isEnemy() value < 0 && !this.isMpEffect) {
value = Math.min(value * 0.6, value + 10)
}
Putting these at the end not only does not work properly,
but also seems to neglect any elemental resistances.
Now here are my questions:
1. Where and how would I integrate these formulas? I don't really care how it gets done in the end, as long as the functionality is there.
2. Concerning #1, how do I make it so that the bonus damage only applies when enemies do the damage?
-> I have some self-damaging abilities
2. Concerning #2, how do I make it so that the reduced healing only applies when enemies do the healing?
-> There are some ways that the player can heal enemies
3. How can I avoid "neglecting elemental resistances"? Basically what happened is that I hit any enemy with an attack they should be weak to, but it dealt "neutral" damage instead.
4. Maybe the conditions can be tidied up a bit?
Basically, all direct damage from Enemy -> Player should be amplified only after all the calculations are done
(That's why I put it at the end)
And all direct HP healing from Enemy -> Enemy should be reduced