Свойство | Type | Description | |
---|---|---|---|
$handlerList |
Méthode | Description | |
---|---|---|
__construct ( |
||
createThornsDamage ( ) | ||
getCause ( ) : integer | ||
getDamage ( integer $type = self::MODIFIER_BASE ) : integer | ||
getFinalDamage ( ) : integer | ||
getFireProtectL ( ) : Int | ||
getOriginalDamage ( integer $type = self::MODIFIER_BASE ) : integer | ||
getRateDamage ( integer $type = self::MODIFIER_BASE ) : float | ||
getThornsDamage ( ) | ||
getUsedArmors ( ) : |
||
isApplicable ( integer $type ) : boolean | ||
setDamage ( float $damage, integer $type = self::MODIFIER_BASE ) | ||
setRateDamage ( float $damage, integer $type = self::MODIFIER_BASE ) | ||
setThornsArmorUse ( ) : boolean | ||
useArmors ( ) : boolean |
public __construct ( |
||
$entity | ||
$cause | integer | |
$damage | integer | int[] |
public getOriginalDamage ( integer $type = self::MODIFIER_BASE ) : integer | ||
$type | integer | |
Résultat | integer |
public getRateDamage ( integer $type = self::MODIFIER_BASE ) : float | ||
$type | integer | |
Résultat | float | 1 - the percentage |
public getUsedArmors ( ) : |
||
Résultat | $usedArmors notice: $usedArmors $index->$cost $index: the $index of ArmorInventory $cost: the num of durability cost |
public isApplicable ( integer $type ) : boolean | ||
$type | integer | |
Résultat | boolean |
public setRateDamage ( float $damage, integer $type = self::MODIFIER_BASE ) | ||
$damage | float | |
$type | integer | Notice:If you want to add/reduce the damage without reducing by Armor or effect. set a new Damage using setDamage Notice:If you want to add/reduce the damage within reducing by Armor of effect. Plz change the MODIFIER_BASE Notice:If you want to add/reduce the damage by multiplying. Plz use this function. |
public setThornsArmorUse ( ) : boolean | ||
Résultat | boolean | should be used after getThornsDamage() |