44 public function __construct(
Translatable|
string $name,
int $rarity,
int $maxLevel,
float $typeModifier, ?array $applicableDamageTypes, ?\Closure $minEnchantingPower =
null,
int $enchantingPowerRange = 50){
45 parent::__construct($name, $rarity, $maxLevel, $minEnchantingPower, $enchantingPowerRange);
47 $this->typeModifier = $typeModifier;
48 if($applicableDamageTypes !==
null){
49 $this->applicableDamageTypes = array_flip($applicableDamageTypes);