Class CombatEndurance.CombatEnduranceRegen
java.lang.Object
com.fs.starfarer.api.impl.campaign.skills.CombatEndurance.CombatEnduranceRegen
- All Implemented Interfaces:
AdvanceableListener
,DamageTakenModifier
- Enclosing class:
- CombatEndurance
public static class CombatEndurance.CombatEnduranceRegen
extends Object
implements DamageTakenModifier, AdvanceableListener
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
advance
(float amount) protected float
getRepaired
(String key) protected void
init()
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
-
inited
protected boolean inited -
limit
protected float limit -
repaired
protected float repaired -
repKey1
-
repKey2
-
-
Constructor Details
-
CombatEnduranceRegen
-
-
Method Details
-
init
protected void init() -
getRepaired
-
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
-