IDetermineDamageEvent - yeelp/Distinct-Damage-Descriptions GitHub Wiki
This is the event DDD fires when trying to determine and calculate damage distributions. You can add an event handler to this event and add additional damage. Basically, you can use this event to give conditional damage bonuses.
Importing the class
It might be required to import the class to avoid errors.
import mods.ddd.events.DetermineDamageEvent;
Extending IDDDClassificationEvent
This event extends IDDDClassificationEvent. So anything accessible from that event is accessible from IDetermineDamageEvent.
What can you do with this?
ZenMethods
float getDamage(IDDDDamageType);
- Gets damage for a certain type.
- Is zero if there is no damage inflicted of that type.
- Also zero if the damage was reduced to zero but was non-zero beforehand.
void setDamage(IDDDDamageType, float);
- Sets the damage for a certain type.
- This is not a weight, like with a damage distribution. This is the actual damage amount.