Interface DamageTakenModifier
- All Known Implementing Classes:
CombatEndurance.CombatEnduranceRegen
,DamageControl.DamageControlDamageTakenMod
,PolarizedArmor.PolarizedArmorEffectMod
,TriadShieldStats
,TriadShieldStatsBackup
public interface DamageTakenModifier
When adding to a ship, add to the ship taking the damage, NOT the one dealing it.
Should add this to a ship where possible instead of the engine as performance will be better.
- Author:
- Alex Mosolov Copyright 2019 Fractal Softworks, LLC
-
Method Summary
Modifier and TypeMethodDescriptionmodifyDamageTaken
(Object param, CombatEntityAPI target, DamageAPI damage, org.lwjgl.util.vector.Vector2f point, boolean shieldHit) Modifications to damage should ONLY be made using damage.getModifier().
-
Method Details
-
modifyDamageTaken
String 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(). param can be: null DamagingProjectileAPI BeamAPI EmpArcEntityAPI Something custom set by a script- Returns:
- the id of the stat modification to damage.getModifier(), or null if no modification was made
-