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 Details

    • ship

      protected ShipAPI ship
    • sinceProc

      protected float sinceProc
  • Constructor Details

    • DamageControlDamageTakenMod

      public DamageControlDamageTakenMod(ShipAPI ship)
  • Method Details

    • advance

      public void advance(float amount)
      Specified by:
      advance in interface AdvanceableListener
    • 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 interface DamageTakenModifier
      Returns:
      the id of the stat modification to damage.getModifier(), or null if no modification was made