Class DamageControl.DamageControlDamageTakenMod
java.lang.Object
com.fs.starfarer.api.impl.campaign.skills.DamageControl.DamageControlDamageTakenMod
- All Implemented Interfaces:
AdvanceableListener
,DamageTakenModifier
- Enclosing class:
- DamageControl
public static class DamageControl.DamageControlDamageTakenMod
extends Object
implements DamageTakenModifier, AdvanceableListener
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
advance
(float amount) modifyDamageTaken
(Object param, CombatEntityAPI target, DamageAPI damage, org.lwjgl.util.vector.Vector2f point, boolean shieldHit) Modifications to damage should ONLY be made using damage.getModifier().
-
Field Details
-
ship
-
sinceProc
protected float sinceProc
-
-
Constructor Details
-
DamageControlDamageTakenMod
-
-
Method Details
-
advance
public void advance(float amount) - Specified by:
advance
in interfaceAdvanceableListener
-
modifyDamageTaken
public String modifyDamageTaken(Object param, CombatEntityAPI target, DamageAPI damage, org.lwjgl.util.vector.Vector2f point, boolean shieldHit) Description copied from interface:DamageTakenModifier
Modifications to damage should ONLY be made using damage.getModifier(). param can be: null DamagingProjectileAPI BeamAPI EmpArcEntityAPI Something custom set by a script- Specified by:
modifyDamageTaken
in interfaceDamageTakenModifier
- Returns:
- the id of the stat modification to damage.getModifier(), or null if no modification was made
-