- type: entity
  parent: BaseItem
  id: BaseAnomalyCore
  abstract: true
  name: anomaly core
  description: The core of a destroyed incomprehensible object.
  components:
  - type: Sprite
    sprite: Structures/Specific/Anomalies/Cores/gravity_core.rsi
    noRot: true
    layers:
    - state: core
    - state: pulse
      map: ["decay"]
  - type: Appearance
  - type: GenericVisualizer
    visuals:
      enum.AnomalyCoreVisuals.Decaying:
        decay:
          True: { visible: true }
          False: { visible: false }
  - type: Item
    size: Tiny
  - type: EmitSoundOnUse #placeholder for future unical mechanic
    sound:
      collection: RadiationPulse
  - type: UseDelay
    delay: 2
  - type: Tag
    tags:
    - ForceableFollow
  - type: AnomalyCore
    timeToDecay: 600
    startPrice: 10000
    endPrice: 200

- type: entity
  parent: BaseAnomalyCore
  id: AnomalyCorePyroclastic
  suffix: Pyroclastic
  components:
  - type: Sprite
    sprite: Structures/Specific/Anomalies/Cores/pyro_core.rsi
  - type: PointLight
    radius: 1.5
    energy: 2.7
    color: "#E25822"
    castShadows: false
  - type: IgnitionSource
    temperature: 400
    ignited: true
  - type: Summonable # imp
    requiresBibleUser: false
    specialItem: SpawnPointGhostAnomalitePyroclastic

- type: entity
  parent: BaseAnomalyCore
  id: AnomalyCoreGravity
  suffix: Gravity
  components:
  - type: Sprite
    sprite: Structures/Specific/Anomalies/Cores/gravity_core.rsi
  - type: PointLight
    radius: 1.5
    energy: 10
    color: "#1e070e"
    castShadows: false
  - type: Summonable # imp
    requiresBibleUser: false
    specialItem: SpawnPointGhostAnomaliteGravity

- type: entity
  parent: BaseAnomalyCore
  id: AnomalyCoreIce
  suffix: Ice
  components:
  - type: Sprite
    sprite: Structures/Specific/Anomalies/Cores/ice_core.rsi
  - type: PointLight
    radius: 1.5
    energy: 2.7
    color: "#befaff"
    castShadows: false
  - type: Summonable # imp
    requiresBibleUser: false
    specialItem: SpawnPointGhostAnomaliteIce

- type: entity
  parent: BaseAnomalyCore
  id: AnomalyCoreFlesh
  description: The core of a destroyed flesh anomaly. Pulsates sickeningly, but might be a hearty meal if cooked.
  suffix: Flesh
  components:
  - type: Sprite
    sprite: Structures/Specific/Anomalies/Cores/flesh_core.rsi
  - type: PointLight
    radius: 1.5
    energy: 3.5
    color: "#cb5b7e"
    castShadows: false
  - type: Summonable # imp
    requiresBibleUser: false
    specialItem: SpawnPointGhostAnomaliteFlesh

- type: entity
  parent: BaseAnomalyCore
  id: AnomalyCoreRock
  suffix: Rock
  components:
  - type: Sprite
    sprite: Structures/Specific/Anomalies/Cores/rock_core.rsi
  - type: PointLight
    radius: 1.5
    energy: 3.5
    color: "#5ca8cb"
    castShadows: false
  - type: Summonable # imp
    requiresBibleUser: false
    specialItem: SpawnPointGhostAnomaliteRock

- type: entity
  parent: BaseAnomalyCore
  id: AnomalyCoreLiquid
  suffix: Liquid
  components:
  - type: Sprite
    sprite: Structures/Specific/Anomalies/Cores/liquid_core.rsi
  - type: PointLight
    radius: 1.5
    energy: 3.5
    color: "#ffffff"
    castShadows: false
  - type: Summonable # imp
    requiresBibleUser: false
    specialItem: SpawnPointGhostAnomaliteLiquid

- type: entity
  parent: BaseAnomalyCore
  id: AnomalyCoreBluespace
  suffix: Bluespace
  components:
  - type: Sprite
    sprite: Structures/Specific/Anomalies/Cores/bluespace_core.rsi
  - type: PointLight
    radius: 1.5
    energy: 3.5
    color: "#00ccff"
    castShadows: false
  - type: Summonable # imp
    requiresBibleUser: false
    specialItem: SpawnPointGhostAnomaliteBluespace

- type: entity
  parent: BaseAnomalyCore
  id: AnomalyCoreElectricity
  suffix: Electricity
  components:
  - type: Sprite
    sprite: Structures/Specific/Anomalies/Cores/electric_core.rsi
  - type: PointLight
    radius: 1.5
    energy: 2.0
    color: "#ffffaa"
    castShadows: false
  - type: Electrified
  - type: Summonable # imp
    requiresBibleUser: false
    specialItem: SpawnPointGhostAnomaliteElectricity

- type: entity
  parent: BaseAnomalyCore
  id: AnomalyCoreFlora
  suffix: Flora
  components:
  - type: Seed
    seedId: anomalyBerry
  - type: Sprite
    sprite: Structures/Specific/Anomalies/Cores/flora_core.rsi
  - type: PointLight
    radius: 1.5
    energy: 2.0
    color: "#6270bb"
    castShadows: false
  - type: Summonable # imp
    requiresBibleUser: false
    specialItem: SpawnPointGhostAnomaliteFlora

- type: entity
  parent: [ BaseAnomalyCore, BaseShadow ]
  id: AnomalyCoreShadow
  suffix: Shadow
  components:
  - type: Sprite
    sprite: Structures/Specific/Anomalies/Cores/shadow_core.rsi
  - type: PointLight
    radius: 1.5
    energy: 2.0
    color: "#793a80"
    castShadows: false
  - type: Summonable # imp
    requiresBibleUser: false
    specialItem: SpawnPointGhostAnomaliteShadow

- type: entity
  parent: BaseAnomalyCore
  id: AnomalyCoreTech
  suffix: Tech
  components:
  - type: Sprite
    sprite: Structures/Specific/Anomalies/Cores/tech_core.rsi
  - type: PointLight
    radius: 1.5
    energy: 2.0
    color: "#56c1e8"
    castShadows: false
  - type: Summonable # imp
    requiresBibleUser: false
    specialItem: SpawnPointGhostAnomaliteTech

- type: entity
  parent: BaseAnomalyCore
  id: AnomalyCoreSanta
  suffix: Santa
  components:
  - type: Sprite
    sprite: Structures/Specific/Anomalies/Cores/santa_core.rsi
  - type: PointLight
    radius: 1.5
    energy: 2.0
    color: "#fc0303"
    castShadows: false

# Inert cores

- type: entity
  parent: BaseAnomalyCore
  id: BaseAnomalyInertCore
  abstract: true
  components:
  - type: Sprite
    layers:
    - state: core
    - state: pulse
      visible: false
      map: ["decay"]
  - type: AnomalyCore
    timeToDecay: 0
    isDecayed: true

- type: entity
  parent: BaseAnomalyInertCore
  id: AnomalyCorePyroclasticInert
  suffix: Pyroclastic, Inert
  components:
  - type: Sprite
    sprite: Structures/Specific/Anomalies/Cores/pyro_core.rsi
  - type: PointLight
    radius: 1.5
    energy: 2.7
    color: "#fca3c0"
    castShadows: false

- type: entity
  parent: BaseAnomalyInertCore
  id: AnomalyCoreGravityInert
  suffix: Gravity, Inert
  components:
  - type: Sprite
    sprite: Structures/Specific/Anomalies/Cores/gravity_core.rsi
  - type: PointLight
    radius: 1.5
    energy: 10
    color: "#1e070e"
    castShadows: false

- type: entity
  parent: BaseAnomalyInertCore
  id: AnomalyCoreIceInert
  suffix: Ice, Inert
  components:
  - type: Sprite
    sprite: Structures/Specific/Anomalies/Cores/ice_core.rsi
  - type: PointLight
    radius: 1.5
    energy: 2.7
    color: "#befaff"
    castShadows: false

- type: entity
  parent: BaseAnomalyInertCore
  id: AnomalyCoreFleshInert # Can be microwaved to turn it into a massive piece of meat
  description: The inert core of a destroyed flesh anomaly. Pulsates sickeningly, but might be good food in the right hands?
  suffix: Flesh, Inert
  components:
  - type: Sprite
    sprite: Structures/Specific/Anomalies/Cores/flesh_core.rsi
  - type: PointLight
    radius: 1.5
    energy: 3.5
    color: "#cb5b7e"
    castShadows: false

- type: entity
  parent: BaseAnomalyInertCore
  id: AnomalyCoreRockInert
  suffix: Rock, Inert
  components:
  - type: Sprite
    sprite: Structures/Specific/Anomalies/Cores/rock_core.rsi
  - type: PointLight
    radius: 1.5
    energy: 3.5
    color: "#5ca8cb"
    castShadows: false

- type: entity
  parent: BaseAnomalyInertCore
  id: AnomalyCoreLiquidInert
  suffix: Liquid, Inert
  components:
  - type: Sprite
    sprite: Structures/Specific/Anomalies/Cores/liquid_core.rsi
  - type: PointLight
    radius: 1.5
    energy: 3.5
    color: "#ffffff"
    castShadows: false

- type: entity
  parent: BaseAnomalyInertCore
  id: AnomalyCoreBluespaceInert
  suffix: Bluespace, Inert
  components:
  - type: Sprite
    sprite: Structures/Specific/Anomalies/Cores/bluespace_core.rsi
  - type: PointLight
    radius: 1.5
    energy: 3.5
    color: "#00ccff"
    castShadows: false

- type: entity
  parent: BaseAnomalyInertCore
  id: AnomalyCoreElectricityInert
  suffix: Electricity, Inert
  components:
  - type: Sprite
    sprite: Structures/Specific/Anomalies/Cores/electric_core.rsi
  - type: PointLight
    radius: 1.5
    energy: 2.0
    color: "#ffffaa"
    castShadows: false

- type: entity
  parent: BaseAnomalyInertCore
  id: AnomalyCoreFloraInert #Turns into a seed that grows into artifexium
  suffix: Flora, Inert
  components:
  - type: Seed
    seedId: anomalyBerry
  - type: Sprite
    sprite: Structures/Specific/Anomalies/Cores/flora_core.rsi
  - type: PointLight
    radius: 1.5
    energy: 2.0
    color: "#6270bb"
    castShadows: false

- type: entity
  parent: [ BaseAnomalyInertCore, BaseShadow ]
  id: AnomalyCoreShadowInert
  suffix: Shadow, Inert
  components:
  - type: Sprite
    sprite: Structures/Specific/Anomalies/Cores/shadow_core.rsi
  - type: PointLight
    radius: 1.5
    energy: 2.0
    color: "#793a80"
    castShadows: false

- type: entity
  parent: BaseAnomalyInertCore
  id: AnomalyCoreTechInert
  suffix: Tech, Inert
  components:
  - type: Sprite
    sprite: Structures/Specific/Anomalies/Cores/tech_core.rsi
  - type: PointLight
    radius: 1.5
    energy: 2.0
    color: "#56c1e8"
    castShadows: false

- type: entity
  parent: BaseAnomalyInertCore
  id: AnomalyCoreSantaInert
  suffix: Santa, Inert
  components:
  - type: Sprite
    sprite: Structures/Specific/Anomalies/Cores/santa_core.rsi
  - type: PointLight
    radius: 1.5
    energy: 2.0
    color: "#fc0303"
    castShadows: false
