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