# SPDX-FileCopyrightText: 2025 BombasterDS <deniskaporoshok@gmail.com>
# SPDX-FileCopyrightText: 2025 GoobBot <uristmchands@proton.me>
# SPDX-FileCopyrightText: 2025 deltanedas <39013340+deltanedas@users.noreply.github.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

- type: entity
  abstract: true
  parent: BaseEnchant
  id: BaseProtEnchant
  components:
  - type: Enchant
    whitelist:
      requireAll: true
      components:
      - Clothing
      - Armor
    maxLevel: 2

- type: entity
  parent: BaseProtEnchant
  id: EnchantProtection
  name: Protection
  components:
  - type: Enchant
    maxLevel: 4
    incompatible:
    - EnchantProtBlast
    - EnchantProtFire
  - type: DamageModifyEnchant
    factor: 0.9
    protectWearer: true

- type: entity
  parent: BaseProtEnchant
  id: EnchantProtBlast
  name: Blast Protection
  components:
  - type: Enchant
    incompatible:
    - EnchantProtection
    - EnchantProtFire
  # TODO implement

- type: entity
  parent: BaseProtEnchant
  id: EnchantProtFire
  name: Fire Protection
  components:
  - type: Enchant
    maxLevel: 4
    incompatible:
    - EnchantProtection
    - EnchantProtBlast
  - type: FireProtEnchant
