DamageContainer
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
Members
addModifier(type as Reduction, reductionFunction as IReductionFunction)
Parameters:
type: DamageContainerReduction
Type: DamageContainerReduction
reductionFunction: IReductionFunction
Type: IReductionFunction
Getter
Return Type:
float
getReduction(type as Reduction) as float
Parameters:
type: DamageContainerReduction
Type: DamageContainerReduction
Return Type:
float
Getter
Return Type:
float
Setter
Parameters:
damage: float
Type: float
static of(source as DamageSource, originalDamage as float) as DamageContainer
Parameters:
source: DamageSource
Type: DamageSource
originalDamage: float
Type: float
Return Type:
DamageContainer
Getter
Return Type:
float
Getter
Return Type:
int
Setter
Parameters:
ticks: int
Type: int
Getter
Return Type:
float
Getter
Return Type:
DamageSource