# SPDX-FileCopyrightText: 2023 deltanedas <@deltanedas:kde.org>
# SPDX-FileCopyrightText: 2024 Ed <96445749+TheShuEd@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Errant <35878406+Errant-4@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 deltanedas <39013340+deltanedas@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 lzk <124214523+lzk228@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 username <113782077+whateverusername0@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 whateverusername0 <whateveremail>
# SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

- type: entity
  abstract: true
  parent: BaseObjective
  id: BaseDragonObjective
  components:
  - type: Objective
    # difficulty isn't used at all since objective are fixed
    difficulty: 1.5
    issuer: objective-issuer-dragon
  - type: RoleRequirement
    roles:
    - DragonRole

- type: entity
  parent: BaseDragonObjective
  id: CarpRiftsObjective
  components:
  - type: Objective
    icon:
      sprite: Structures/Specific/carp_rift.rsi
      state: icon_blue
  - type: NumberObjective
    # dragon can only spawn 3 rifts so keep objective the same
    min: 3
    max: 3
    title: objective-carp-rifts-title
    description: objective-carp-rifts-description
  - type: CarpRiftsCondition

- type: entity
  parent: [BaseDragonObjective, BaseSurviveObjective]
  id: DragonSurviveObjective
  name: Survive
  description: You have to stay alive to maintain control.
  components:
  - type: Objective
    icon:
      sprite: Mobs/Aliens/Carps/dragon.rsi
      state: alive