# SPDX-FileCopyrightText: 2025 GoobBot <uristmchands@proton.me>
# SPDX-FileCopyrightText: 2025 Solstice <solsticeofthewinter@gmail.com>
# SPDX-FileCopyrightText: 2025 gluesniffler <linebarrelerenthusiast@gmail.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

- type: entity
  categories: [ HideSpawnMenu ]
  id: WeaponArcCosmic
  parent: WeaponArcStatic
  components:
    - type: WeaponArcVisuals
      fadeOut: false
    - type: Sprite
      layers:
      - sprite: _DV/CosmicCult/Effects/weaponarcs.rsi
        state: arc_cosmic
        shader: unshaded
    - type: TimedDespawn
      lifetime: 0.66
    - type: PointLight
      color: "#42a4ae"
      radius: 1.5
      energy: 6
      castShadows: false
    - type: LightBehaviour
      behaviours:
        - !type:FadeBehaviour
          interpolate: Linear
          minDuration: 0.64
          maxDuration: 0.65
          startValue: 0.1
          endValue: 6
          property: Energy
          enabled: true
          reverseWhenFinished: true
    - type: Tag
      tags:
      - HideContextMenu

- type: entity
  categories: [ HideSpawnMenu ]
  id: CosmicFloorSpawnVFX
  placement:
    mode: SnapgridCenter
  components:
  - type: TimedDespawn
    lifetime: 0.5
  - type: Transform
    noRot: true
    anchored: true
  - type: Sprite
    layers:
    - sprite: _DV/CosmicCult/Effects/tiles_spawn.rsi
      state: floorglow
      shader: unshaded
    drawdepth: Mobs
  - type: Tag
    tags:
    - HideContextMenu

- type: entity
  categories: [ HideSpawnMenu ]
  id: BaseCosmicVFX
  components:
  - type: TimedDespawn
    lifetime: 1.75
  - type: Transform
    noRot: true
    anchored: false
  - type: Sprite
    netsync: false
    drawdepth: Mobs
  - type: Tag
    tags:
    - HideContextMenu

- type: entity
  categories: [ HideSpawnMenu ]
  parent: BaseCosmicVFX
  id: CosmicLapseAbilityVFX
  components:
  - type: Sprite
    layers:
    - sprite: _DV/CosmicCult/Effects/ability_lapsevfx.rsi
      state: vfx
      shader: unshaded

- type: entity
  categories: [ HideSpawnMenu ]
  parent: BaseCosmicVFX
  id: CosmicBlankAbilityVFX
  components:
  - type: Sprite
    layers:
    - sprite: _DV/CosmicCult/Effects/ability_blankvfx.rsi
      state: vfx
      shader: unshaded
  - type: PointLight
    color: "#42a4ae"
    radius: 1.5
    energy: 4
    castShadows: false
  - type: LightBehaviour
    behaviours:
     - !type:FadeBehaviour
       interpolate: Linear
       minDuration: 1.75
       maxDuration: 1.75
       startValue: 0.1
       endValue: 4
       property: Energy
       enabled: true
       isLooped: true
       reverseWhenFinished: true

- type: entity
  categories: [ HideSpawnMenu ]
  parent: BaseCosmicVFX
  id: CleanseEffectVFX
  components:
  - type: TimedDespawn
    lifetime: 2.025
  - type: Sprite
    layers:
    - sprite: _DV/CosmicCult/Effects/effect_cleansevfx.rsi
      state: vfx
      shader: unshaded
  - type: PointLight
    color: "#ffd52e"
    radius: 1.5
    energy: 2.5
    castShadows: false
  - type: LightBehaviour
    behaviours:
     - !type:FadeBehaviour
       interpolate: Linear
       minDuration: 2.025
       maxDuration: 2.025
       startValue: 0.1
       endValue: 2
       property: Energy
       enabled: true
       isLooped: true
       reverseWhenFinished: true

- type: entity
  categories: [ HideSpawnMenu ]
  parent: BaseCosmicVFX
  id: CosmicGenericVFX
  components:
  - type: TimedDespawn
    lifetime: 2.025
  - type: Sprite
    layers:
    - sprite: _DV/CosmicCult/Effects/effect_glyphvfx.rsi
      state: vfx
      shader: unshaded
  - type: PointLight
    color: "#42a4ae"
    radius: 1.5
    energy: 2.5
    castShadows: false
  - type: LightBehaviour
    behaviours:
     - !type:FadeBehaviour
       interpolate: Linear
       minDuration: 2.025
       maxDuration: 2.025
       startValue: 0.1
       endValue: 2
       property: Energy
       enabled: true
       isLooped: true
       reverseWhenFinished: true

- type: entity
  categories: [ HideSpawnMenu ]
  parent: BaseCosmicVFX
  id: CosmicGlareAbilityVFX
  components:
  - type: TimedDespawn
    lifetime: 1.1
  - type: Sprite
    layers:
    - sprite: _DV/CosmicCult/Effects/ability_glarevfx.rsi
      state: vfx
      shader: unshaded
  - type: PointLight
    color: "#42a4ae"
    radius: 10
    energy: 10
    castShadows: true
  - type: LightBehaviour
    behaviours:
     - !type:FadeBehaviour
       interpolate: Linear
       minDuration: 1.1
       maxDuration: 1.1
       startValue: 0.1
       endValue: 10
       property: Energy
       enabled: true
       isLooped: true
       reverseWhenFinished: true

- type: entity
  categories: [ HideSpawnMenu ]
  parent: BaseCosmicVFX
  id: CosmicImpositionAbilityVFX
  components:
  - type: TimedDespawn
    lifetime: 1.92
  - type: Sprite
    layers:
    - sprite: _DV/CosmicCult/Effects/ability_impositionvfx.rsi
      state: vfx
      shader: unshaded
  - type: PointLight
    color: "#42a4ae"
    radius: 10
    energy: 6
    castShadows: true
  - type: LightBehaviour
    behaviours:
     - !type:FadeBehaviour
       interpolate: Linear
       minDuration: 1.92
       maxDuration: 1.92
       startValue: 0.1
       endValue: 6
       property: Energy
       enabled: true
       isLooped: true
       reverseWhenFinished: true

- type: entity
  categories: [ HideSpawnMenu ]
  id: CosmicNovaImpactVfx
  components:
  - type: TimedDespawn
    lifetime: 1.1
  - type: Sprite
    drawdepth: Effects
    layers:
    - shader: unshaded
      map: ["enum.EffectLayers.Unshaded"]
      sprite: _DV/CosmicCult/Effects/ability_glarevfx.rsi
      state: vfx
  - type: PointLight
    color: "#42a4ae"
    radius: 10
    energy: 6
    castShadows: true
  - type: LightBehaviour
    behaviours:
     - !type:FadeBehaviour
       interpolate: Linear
       minDuration: 1.1
       maxDuration: 1.1
       startValue: 0.1
       endValue: 6
       property: Energy
       enabled: true
       isLooped: true
       reverseWhenFinished: true
  - type: Tag
    tags:
      - HideContextMenu

- type: entity
  parent: BaseCosmicVFX
  id: CosmicEchoVfx
  name: malign echo
  description: A trace of malign light..
  components:
  - type: TimedDespawn
    lifetime: 50
  - type: CosmicCultExamine
    cultistText: cosmic-examine-text-malignecho
  - type: InteractionOutline
  - type: Sprite
    layers:
    - sprite: _DV/CosmicCult/Effects/effect_echo.rsi
      state: vfx
      shader: unshaded
  - type: Clickable
  - type: PointLight
    radius: 1.5
    energy: 1.6
    castShadows: false
    color: "#42a4ae"

- type: entity
  categories: [ HideSpawnMenu ]
  parent: BaseCosmicVFX
  id: NoosphericVFX2
  components:
  - type: TimedDespawn
    lifetime: 2.025
  - type: Sprite
    layers:
    - sprite: _DV/CosmicCult/Effects/effect_ns_flarevfx.rsi
      state: vfx
      shader: unshaded
  - type: PointLight
    color: "#a35d7b"
    radius: 1.5
    energy: 2.5
    castShadows: false
  - type: LightBehaviour
    behaviours:
    - !type:FadeBehaviour
      interpolate: Linear
      minDuration: 1.575
      maxDuration: 1.575
      startValue: 0.1
      endValue: 2
      property: Energy
      enabled: true
      isLooped: true
      reverseWhenFinished: true

- type: entity
  categories: [ HideSpawnMenu ]
  parent: BaseCosmicVFX
  id: NoosphericVFX1
  components:
  - type: TimedDespawn
    lifetime: 2.025
  - type: Sprite
    layers:
    - sprite: _DV/CosmicCult/Effects/effect_ns_reboundvfx.rsi
      state: vfx
      shader: unshaded
  - type: PointLight
    color: "#a35d7b"
    radius: 1.5
    energy: 2.5
    castShadows: false
  - type: LightBehaviour
    behaviours:
    - !type:FadeBehaviour
      interpolate: Linear
      minDuration: 1.125
      maxDuration: 1.125
      startValue: 0.1
      endValue: 2
      property: Energy
      enabled: true
      isLooped: true
      reverseWhenFinished: true