Class GetHealSpeedEvent
- java.lang.Object
-
- org.kikikan.deadbymoonlight.events.Event
-
- org.kikikan.deadbymoonlight.events.player.PlayerEvent
-
- org.kikikan.deadbymoonlight.events.ModifiableEvent<java.lang.Double>
-
- org.kikikan.deadbymoonlight.events.player.survivor.modifiableevents.GetHealSpeedEvent
-
public final class GetHealSpeedEvent extends ModifiableEvent<java.lang.Double>
Determines the Healing speed of the Survivor. Contains the Healer Survivor, the Survivor being healed, and whether it is a Self-Heal or not. Value can't be more than twice its default value. Default value:
- 0.5 if the healed Survivor is not Mangled and it is not self heal
- 0,4 if the healed Survivor is Mangled and it s not self heal
- 0,25 if the healed Survivor is not Mangled and it is self heal (in INJURED and ON_GROUND health states) - 0,2 if the healed Survivor is Mangled and it is self heal (in INJURED and ON_GROUND health states)
-
-
Constructor Summary
Constructors Constructor Description GetHealSpeedEvent(Survivor healer, Survivor healed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Survivor
getHealed()
Gets the Survivor who is being healed.java.lang.Double
getValue()
Returns the current value.boolean
isSelfHeal()
Checks if the Survivor is performing a Self-Heal.-
Methods inherited from class org.kikikan.deadbymoonlight.events.ModifiableEvent
isStopped, setValue, stop
-
Methods inherited from class org.kikikan.deadbymoonlight.events.player.PlayerEvent
getPerkUser
-
-
-
-
Method Detail
-
isSelfHeal
public boolean isSelfHeal()
Checks if the Survivor is performing a Self-Heal.- Returns:
- True if the Survivor is healing themselves.
-
getHealed
public Survivor getHealed()
Gets the Survivor who is being healed.- Returns:
- The Survivor who is being healed.
-
getValue
public java.lang.Double getValue()
Description copied from class:ModifiableEvent
Returns the current value.- Overrides:
getValue
in classModifiableEvent<java.lang.Double>
- Returns:
- The value of the Event
-
-