-
-
Notifications
You must be signed in to change notification settings - Fork 5
IDetermineDamageEvent
Yeelp edited this page Feb 7, 2024
·
1 revision
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.
It might be required to import the class to avoid errors.
import mods.ddd.events.DetermineDamageEvent;This event extends IDDDClassificationEvent. So anything accessible from that event is accessible from IDetermineDamageEvent.
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.