Проанализируй прототип

- type: entity
  id: UnlitCampfire
  parent: BaseStructure
  name: костёр
  suffix: не зажённый
  description: Что может быть лучше позднего вечера под открытым небом с гитарой и друзьями.
  components:
  - type: Sprite
    noRot: true
    sprite: Structures/Decoration/bonfire.rsi
    layers:
    - state: bonfire
  - type: Damageable
    damageContainer: Inorganic
    damageModifierSet: Wood
  - type: Destructible
    thresholds:
      - trigger:
          !type:DamageTrigger
          damage: 50
        behaviors:
          - !type:DoActsBehavior
            acts: ["Destruction"]
  - type: Construction
    graph: CampfireGraph
    node: unlit
  - type: Physics
    bodyType: Static
  - type: Fixtures
    fixtures:
      fix1:
        shape:
          !type:PhysShapeAabb
          bounds: "-0.45,-0.45,0.45,0.45"
        density: 55
        mask:
        - Impassable
        layer:
        - HighImpassable

- type: entity
  id: LitCampfire
  parent: UnlitCampfire
  name: костёр
  suffix: зажённый
  description: Что может быть лучше позднего вечера под открытым небом с гитарой и друзьями.
  components:
  - type: Sprite
    noRot: true
    sprite: Structures/Decoration/bonfire.rsi
    layers:
    - state: burning
  - type: PointLight
    radius: 5
    energy: 3
    color: "#FFC90C"
  - type: AmbientSound
    volume: -5
    range: 5
    sound:
      path: /Audio/Ambience/Objects/fireplace.ogg
  - type: Construction
    graph: CampfireGraph
    node: lit
  - type: Damageable
    damageContainer: StructuralInorganic
    damageModifierSet: Wood
  - type: Destructible
    thresholds:
      - trigger:
          !type:DamageTrigger
          damage: 50
        behaviors:
          - !type:DoActsBehavior
            acts: ["Destruction"]

- type: constructionGraph
  id: CampfireGraph
  start: start
  graph:
    - node: start
      edges:
        - to: unlit
          steps:
            - material: WoodPlank
              amount: 5
              doAfter: 3

    - node: unlit
      entity: UnlitCampfire
      edges:
        - to: lit
          steps:
            - tool: Welding
              doAfter: 1
        - to: start
          completed:
            - !type:SpawnPrototype
              prototype: MaterialWoodPlank
              amount: 3
            - !type:DeleteEntity {}
          steps:
            - tool: Prying
              doAfter: 3

    - node: lit
      entity: LitCampfire
      edges:
        - to: start
          completed:
            - !type:SpawnPrototype
              prototype: Coal1
              amount: 1
            - !type:DeleteEntity {}
          steps:
            - tool: Prying
              doAfter: 1

- type: construction
  name: костёр
  id: UnlitCampfireConstruction
  graph: CampfireGraph
  startNode: start
  targetNode: lit
  category: construction-category-furniture
  description: Что может быть лучше позднего вечера под открытым небом с гитарой и друзьями.
  icon:
    sprite: Structures/Decoration/bonfire.rsi
    state: burning
  objectType: Structure
  placementMode: SnapgridCenter
  canBuildInImpassable: false
  conditions:
    - !type:TileNotBlocked

- type: entity
  id: FireplaceUnlit
  parent: BaseStructure
  name: камин
  suffix: не зажённый
  description: Очаг, в котором горит огонь. Уютно!
  components:
  - type: Sprite
    sprite: Structures/Decoration/fireplace.rsi
    noRot: true
    layers:
      - state: fireplace
      - state: fireplacefestive
        map: ["christmas"]
        visible: false
      - state: fireplace_fire4
        shader: unshaded
        visible: false
      - state: fireplace_glow
        shader: unshaded
        visible: false
  - type: Appearance
  - type: HolidayVisuals
    holidays:
      festive:
      - FestiveSeason
  - type: GenericVisualizer
    visuals:
      enum.HolidayVisuals.Holiday:
        christmas:
          festive: { visible: true }
  - type: Construction
    graph: FireplaceGraph
    node: unlit
  - type: Damageable
    damageContainer: Inorganic
    damageModifierSet: Metallic
  - type: Destructible
    thresholds:
      - trigger:
          !type:DamageTrigger
          damage: 200
        behaviors:
          - !type:DoActsBehavior
            acts: [ "Destruction" ]
  - type: AlwaysHot

- type: entity
  id: FireplaceLit
  parent: BaseStructure
  name: камин
  suffix: зажённый
  description: Очаг, в котором горит огонь. Уютно!
  components:
  - type: Sprite
    sprite: Structures/Decoration/fireplace.rsi
    noRot: true
    layers:
      - state: fireplace
      - state: fireplacefestive
        map: ["christmas"]
        visible: false
      - state: fireplace_fire4
        shader: unshaded
      - state: fireplace_glow
        shader: unshaded
  - type: Appearance
  - type: HolidayVisuals
    holidays:
      festive:
      - FestiveSeason
  - type: GenericVisualizer
    visuals:
      enum.HolidayVisuals.Holiday:
        christmas:
          festive: { visible: true }
  - type: AmbientSound
    volume: -6
    range: 5
    sound:
      path: /Audio/Ambience/Objects/fireplace.ogg
  - type: PointLight
    radius: 3
    energy: 3
    color: "#FF6F00"
  - type: Construction
    graph: FireplaceGraph
    node: lit
  - type: Damageable
    damageContainer: Inorganic
    damageModifierSet: Metallic
  - type: Destructible
    thresholds:
      - trigger:
          !type:DamageTrigger
          damage: 200
        behaviors:
          - !type:DoActsBehavior
            acts: [ "Destruction" ]
  - type: AlwaysHot

- type: constructionGraph
  id: FireplaceGraph
  start: start
  graph:
    - node: start
      edges:
        - to: unlit
          steps:
            - material: Plasteel
              amount: 10
              doAfter: 3
            - material: Steel
              amount: 5
              doAfter: 2
            - material: WoodPlank
              amount: 3
              doAfter: 1

    - node: unlit
      entity: FireplaceUnlit
      edges:
        - to: lit
          steps:
            - tool: Welding
              doAfter: 1
        - to: start
          completed:
            - !type:SpawnPrototype
              prototype: SheetPlasteel1
              amount: 10
            - !type:SpawnPrototype
              prototype: SheetSteel1
              amount: 5
            - !type:DeleteEntity {}
          steps:
            - tool: Prying
              doAfter: 5

    - node: lit
      entity: FireplaceLit
      edges:
        - to: start
          completed:
            - !type:SpawnPrototype
              prototype: SheetPlasteel1
              amount: 10
            - !type:SpawnPrototype
              prototype: SheetSteel1
              amount: 5
            - !type:DeleteEntity {}
          steps:
            - tool: Prying
              doAfter: 5

- type: construction
  name: камин
  id: FireplaceUnlitConstruction
  graph: FireplaceGraph
  startNode: start
  targetNode: lit
  category: construction-category-furniture
  description: Очаг, в котором горит огонь. Уютно!
  icon:
    sprite: Structures/Decoration/fireplace.rsi
    state: fireplace
  objectType: Structure
  placementMode: SnapgridCenter
  canBuildInImpassable: false
  conditions:
    - !type:TileNotBlocked

# Алтарь Хаоса (Chaos Altar)
- type: entity
  id: AltarChaos
  parent: AltarNanotrasen
  name: алтарь хаоса
  description: Алтарь с элементами хаоса и непредсказуемости.
  components:
  - type: Sprite
    sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
    state: chaos
  - type: Icon
    sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
    state: chaos
  - type: Construction
    graph: ChaosAltarGraph
    node: chaosAltar

- type: constructionGraph
  id: ChaosAltarGraph
  start: start
  graph:
    - node: start
      edges:
        - to: chaosAltar
          completed:
            - !type:SnapToGrid
              southRotation: true
          steps:
            - material: Steel
              amount: 6
              doAfter: 5

    - node: chaosAltar
      entity: AltarChaos
      edges:
        - to: start
          completed:
            - !type:SpawnPrototype
              prototype: SheetSteel1
              amount: 6
            - !type:DeleteEntity {}
          steps:
            - tool: Prying
              doAfter: 5

- type: construction
  name: алтарь хаоса
  id: ChaosAltar
  graph: ChaosAltarGraph
  startNode: start
  targetNode: chaosAltar
  category: construction-category-structures
  description: Алтарь с элементами хаоса и непредсказуемости.
  icon:
    sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
    state: chaos
  objectType: Structure
  placementMode: SnapgridCenter
  canRotate: false
  canBuildInImpassable: false
  conditions:
    - !type:TileNotBlocked

# Алтарь Друидов (Druid Altar)
- type: entity
  id: AltarDruid
  parent: AltarNanotrasen
  name: алтарь друидов
  description: Алтарь, вдохновленный природой и магией друидов.
  components:
  - type: Sprite
    sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
    state: druid
  - type: Icon
    sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
    state: druid
  - type: Construction
    graph: DruidAltarGraph
    node: druidAltar

- type: constructionGraph
  id: DruidAltarGraph
  start: start
  graph:
    - node: start
      edges:
        - to: druidAltar
          completed:
            - !type:SnapToGrid
              southRotation: true
          steps:
            - material: WoodPlank
              amount: 6
              doAfter: 5

    - node: druidAltar
      entity: AltarDruid
      edges:
        - to: start
          completed:
            - !type:SpawnPrototype
              prototype: MaterialWoodPlank
              amount: 6
            - !type:DeleteEntity {}
          steps:
            - tool: Prying
              doAfter: 5

- type: construction
  name: алтарь друидов
  id: DruidAltar
  graph: DruidAltarGraph
  startNode: start
  targetNode: druidAltar
  category: construction-category-structures
  description: Алтарь, вдохновленный природой и магией друидов.
  icon:
    sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
    state: druid
  objectType: Structure
  placementMode: SnapgridCenter
  canRotate: false
  canBuildInImpassable: false
  conditions:
    - !type:TileNotBlocked

# Алтарь Ящика для Инструментов (Toolbox Altar)
- type: entity
  id: AltarToolbox
  parent: AltarNanotrasen
  name: алтарь ящика для инструментов
  description: Алтарь, напоминающий набор инструментов и рабочий стол.
  components:
  - type: Sprite
    sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
    state: toolbox
  - type: Icon
    sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
    state: toolbox
  - type: Construction
    graph: ToolboxAltarGraph
    node: toolboxAltar

- type: constructionGraph
  id: ToolboxAltarGraph
  start: start
  graph:
    - node: start
      edges:
        - to: toolboxAltar
          completed:
            - !type:SnapToGrid
              southRotation: true
          steps:
            - material: Steel
              amount: 6
              doAfter: 5

    - node: toolboxAltar
      entity: AltarToolbox
      edges:
        - to: start
          completed:
            - !type:SpawnPrototype
              prototype: SheetSteel1
              amount: 6
            - !type:DeleteEntity {}
          steps:
            - tool: Prying
              doAfter: 5

- type: construction
  name: алтарь ящика для инструментов
  id: ToolboxAltar
  graph: ToolboxAltarGraph
  startNode: start
  targetNode: toolboxAltar
  category: construction-category-structures
  description: Алтарь, напоминающий набор инструментов и рабочий стол.
  icon:
    sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
    state: toolbox
  objectType: Structure
  placementMode: SnapgridCenter
  canRotate: false
  canBuildInImpassable: false
  conditions:
    - !type:TileNotBlocked

# Космо-Христианский Алтарь (Space Christian Altar)
- type: entity
  id: AltarSpaceChristian
  parent: AltarNanotrasen
  name: космо-Христианский алтарь
  description: Алтарь, сверкающий космическим светом веры.
  components:
  - type: Sprite
    sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
    layers:
    - state: space-christian
    - state: space-christian_lightning
      shader: unshaded
  - type: Icon
    sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
    state: space-christian
  - type: PointLight
    radius: 1.5
    energy: 1
    color: "#fbceb1"
  - type: Construction
    graph: SpaceChristianAltarGraph
    node: spaceChristianAltar

- type: constructionGraph
  id: SpaceChristianAltarGraph
  start: start
  graph:
    - node: start
      edges:
        - to: spaceChristianAltar
          completed:
            - !type:SnapToGrid
              southRotation: true
          steps:
            - material: Steel
              amount: 6
              doAfter: 5

    - node: spaceChristianAltar
      entity: AltarSpaceChristian
      edges:
        - to: start
          completed:
            - !type:SpawnPrototype
              prototype: SheetSteel1
              amount: 6
            - !type:DeleteEntity {}
          steps:
            - tool: Prying
              doAfter: 5

- type: construction
  name: космо-Христианский алтарь
  id: SpaceChristianAltar
  graph: SpaceChristianAltarGraph
  startNode: start
  targetNode: spaceChristianAltar
  category: construction-category-structures
  description: Алтарь, сверкающий космическим светом веры.
  icon:
    sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
    state: space-christian
  objectType: Structure
  placementMode: SnapgridCenter
  canRotate: false
  canBuildInImpassable: false
  conditions:
    - !type:TileNotBlocked

# Сатанинский Алтарь (Satanic Altar)
- type: entity
  id: AltarSatana
  parent: AltarNanotrasen
  name: сатанинский алтарь
  description: Алтарь с тематикой темных сил и мистики.
  components:
  - type: Sprite
    sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
    layers:
    - state: satana
    - state: satana_lightning
      shader: unshaded
  - type: Icon
    sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
    state: satana
  - type: PointLight
    radius: 1.5
    energy: 1
    color: "#ff6347"
  - type: Construction
    graph: SatanicAltarGraph
    node: satanicAltar

- type: constructionGraph
  id: SatanicAltarGraph
  start: start
  graph:
    - node: start
      edges:
        - to: satanicAltar
          completed:
            - !type:SnapToGrid
              southRotation: true
          steps:
            - material: Steel
              amount: 6
              doAfter: 5

    - node: satanicAltar
      entity: AltarSatana
      edges:
        - to: start
          completed:
            - !type:SpawnPrototype
              prototype: SheetSteel1
              amount: 6
            - !type:DeleteEntity {}
          steps:
            - tool: Prying
              doAfter: 5

- type: construction
  name: сатанинский алтарь
  id: SatanicAltar
  graph: SatanicAltarGraph
  startNode: start
  targetNode: satanicAltar
  category: construction-category-structures
  description: Алтарь с тематикой темных сил и мистики.
  icon:
    sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
    state: satana
  objectType: Structure
  placementMode: SnapgridCenter
  canRotate: false
  canBuildInImpassable: false
  conditions:
    - !type:TileNotBlocked

# Алтарь Технологий (Technology Altar)
- type: entity
  id: AltarTechnology
  parent: AltarNanotrasen
  name: алтарь технологий
  description: Алтарь, посвященный поклонению технологиям и прогрессу.
  components:
  - type: Sprite
    sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
    layers:
    - state: technology
    - state: technology_lightning
      shader: unshaded
  - type: Icon
    sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
    state: technology
  - type: PointLight
    radius: 1.5
    energy: 1
    color: "#e0ffff"
  - type: Construction
    graph: TechnologyAltarGraph
    node: technologyAltar

- type: constructionGraph
  id: TechnologyAltarGraph
  start: start
  graph:
    - node: start
      edges:
        - to: technologyAltar
          completed:
            - !type:SnapToGrid
              southRotation: true
          steps:
            - material: Steel
              amount: 6
              doAfter: 5

    - node: technologyAltar
      entity: AltarTechnology
      edges:
        - to: start
          completed:
            - !type:SpawnPrototype
              prototype: SheetSteel1
              amount: 6
            - !type:DeleteEntity {}
          steps:
            - tool: Prying
              doAfter: 5

- type: construction
  name: алтарь технологий
  id: TechnologyAltar
  graph: TechnologyAltarGraph
  startNode: start
  targetNode: technologyAltar
  category: construction-category-structures
  description: Алтарь, посвященный поклонению технологиям и прогрессу.
  icon:
    sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
    state: technology
  objectType: Structure
  placementMode: SnapgridCenter
  canRotate: false
  canBuildInImpassable: false
  conditions:
    - !type:TileNotBlocked

# Праздничный Алтарь (Festival Altar)
- type: entity
  id: AltarConvertFestival
  parent: AltarBase
  name: праздничный алтарь
  description: Деревянный алтарь, украшенный для праздников и торжеств.
  components:
  - type: Sprite
    sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
    state: festival
  - type: Icon
    sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
    state: festival
  - type: Damageable
    damageModifierSet: Wood
  - type: Destructible
    thresholds:
      - trigger:
          !type:DamageTrigger
          damage: 100
        behaviors:
          - !type:DoActsBehavior
            acts: [ "Destruction" ]
      - trigger:
          !type:DamageTrigger
          damage: 15
        behaviors:
          - !type:PlaySoundBehavior
            sound:
              collection: WoodDestroyHeavy
          - !type:SpawnEntitiesBehavior
            spawn:
              MaterialWoodPlank:
                min: 1
                max: 5
              MaterialCloth1:
                min: 1
                max: 3
          - !type:DoActsBehavior
            acts: [ "Destruction" ]
  - type: Tag
    tags:
      - Wooden
  - type: Construction
    graph: FestivalAltarGraph
    node: festivalAltar

- type: constructionGraph
  id: FestivalAltarGraph
  start: start
  graph:
    - node: start
      edges:
        - to: festivalAltar
          completed:
            - !type:SnapToGrid
              southRotation: true
          steps:
            - material: WoodPlank
              amount: 6
              doAfter: 5

    - node: festivalAltar
      entity: AltarConvertFestival
      edges:
        - to: start
          completed:
            - !type:SpawnPrototype
              prototype: MaterialWoodPlank
              amount: 6
            - !type:DeleteEntity {}
          steps:
            - tool: Prying
              doAfter: 5

- type: construction
  name: праздничный алтарь
  id: FestivalAltar
  graph: FestivalAltarGraph
  startNode: start
  targetNode: festivalAltar
  category: construction-category-structures
  description: Деревянный алтарь, украшенный для праздников и торжеств.
  icon:
    sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
    state: festival
  objectType: Structure
  placementMode: SnapgridCenter
  canRotate: false
  canBuildInImpassable: false
  conditions:
    - !type:TileNotBlocked

# Алтарь Техтуннелей (Maint Altar)
- type: entity
  id: AltarConvertMaint
  parent: AltarConvertFestival
  name: алтарь техтуннелей
  description: Алтарь, скрытый в тенях технических туннелей.
  components:
  - type: Sprite
    sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
    layers:
    - state: maint
    - state: lightning
      shader: unshaded
  - type: Icon
    sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
    state: maint
  - type: PointLight
    radius: 1.5
    energy: 1
    color: "#fbceb1"
  - type: Construction
    graph: MaintAltarGraph
    node: maintAltar

- type: constructionGraph
  id: MaintAltarGraph
  start: start
  graph:
    - node: start
      edges:
        - to: maintAltar
          completed:
            - !type:SnapToGrid
              southRotation: true
          steps:
            - material: WoodPlank
              amount: 6
              doAfter: 5

    - node: maintAltar
      entity: AltarConvertMaint
      edges:
        - to: start
          completed:
            - !type:SpawnPrototype
              prototype: MaterialWoodPlank
              amount: 6
            - !type:DeleteEntity {}
          steps:
            - tool: Prying
              doAfter: 5

- type: construction
  name: алтарь техтуннелей
  id: MaintAltar
  graph: MaintAltarGraph
  startNode: start
  targetNode: maintAltar
  category: construction-category-structures
  description: Алтарь, скрытый в тенях технических туннелей.
  icon:
    sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
    state: maint
  objectType: Structure
  placementMode: SnapgridCenter
  canRotate: false
  canBuildInImpassable: false
  conditions:
    - !type:TileNotBlocked

# Синий Алтарь (Blue Altar)
- type: entity
  id: AltarConvertBlue
  parent: AltarConvertFestival
  name: синий алтарь
  description: Алтарь, излучающий спокойствие и мир синих оттенков.
  components:
  - type: Sprite
    sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
    layers:
    - state: blue
    - state: lightning
      shader: unshaded
  - type: Icon
    sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
    state: blue
  - type: PointLight
    radius: 1.5
    energy: 1
    color: "#fbceb1"
  - type: Construction
    graph: BlueAltarGraph
    node: blueAltar

- type: constructionGraph
  id: BlueAltarGraph
  start: start
  graph:
    - node: start
      edges:
        - to: blueAltar
          completed:
            - !type:SnapToGrid
              southRotation: true
          steps:
            - material: WoodPlank
              amount: 6
              doAfter: 5

    - node: blueAltar
      entity: AltarConvertBlue
      edges:
        - to: start
          completed:
            - !type:SpawnPrototype
              prototype: MaterialWoodPlank
              amount: 6
            - !type:DeleteEntity {}
          steps:
            - tool: Prying
              doAfter: 5

- type: construction
  name: синий алтарь
  id: BlueAltar
  graph: BlueAltarGraph
  startNode: start
  targetNode: blueAltar
  category: construction-category-structures
  description: Алтарь, излучающий спокойствие и мир синих оттенков.
  icon:
    sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
    state: blue
  objectType: Structure
  placementMode: SnapgridCenter
  canRotate: false
  canBuildInImpassable: false
  conditions:
    - !type:TileNotBlocked

# Алтарь Бремени (Burden Altar)
- type: entity
  id: AltarConvertBurden
  parent: AltarConvertFestival
  name: алтарь бремени
  description: Алтарь, несущий на себе тяжесть мировых проблем.
  components:
  - type: Sprite
    sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
    layers:
    - state: convertaltar
    - state: lightning
      shader: unshaded
  - type: Icon
    sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
    state: convertaltar
  - type: PointLight
    radius: 1.5
    energy: 1
    color: "#fbceb1"
  - type: Construction
    graph: BurdenAltarGraph
    node: burdenAltar

- type: constructionGraph
  id: BurdenAltarGraph
  start: start
  graph:
    - node: start
      edges:
        - to: burdenAltar
          completed:
            - !type:SnapToGrid
              southRotation: true
          steps:
            - material: WoodPlank
              amount: 6
              doAfter: 5

    - node: burdenAltar
      entity: AltarConvertBurden
      edges:
        - to: start
          completed:
            - !type:SpawnPrototype
              prototype: MaterialWoodPlank
              amount: 6
            - !type:DeleteEntity {}
          steps:
            - tool: Prying
              doAfter: 5

- type: construction
  name: алтарь бремени
  id: BurdenAltar
  graph: BurdenAltarGraph
  startNode: start
  targetNode: burdenAltar
  category: construction-category-structures
  description: Алтарь, несущий на себе тяжесть мировых проблем.
  icon:
    sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
    state: convertaltar
  objectType: Structure
  placementMode: SnapgridCenter
  canRotate: false
  canBuildInImpassable: false
  conditions:
    - !type:TileNotBlocked

# Алтарь Обращения (Convert Altar)
- type: entity
  id: AltarConvert
  parent: AltarConvertFestival
  name: алтарь обращения
  description: Алтарь, символизирующий перемены и обращение.
  components:
  - type: Sprite
    sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
    layers:
    - state: convertaltar
    - state: lightning
      shader: unshaded
  - type: Icon
    sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
    state: convertaltar
  - type: PointLight
    radius: 1.5
    energy: 1
    color: "#fbceb1"
  - type: Construction
    graph: ConvertAltarGraph
    node: convertAltar

- type: constructionGraph
  id: ConvertAltarGraph
  start: start
  graph:
    - node: start
      edges:
        - to: convertAltar
          completed:
            - !type:SnapToGrid
              southRotation: true
          steps:
            - material: WoodPlank
              amount: 6
              doAfter: 5

    - node: convertAltar
      entity: AltarConvert
      edges:
        - to: start
          completed:
            - !type:SpawnPrototype
              prototype: MaterialWoodPlank
              amount: 6
            - !type:DeleteEntity {}
          steps:
            - tool: Prying
              doAfter: 5

- type: construction
  name: алтарь обращения
  id: ConvertAltar
  graph: ConvertAltarGraph
  startNode: start
  targetNode: convertAltar
  category: construction-category-structures
  description: Алтарь, символизирующий перемены и обращение.
  icon:
    sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
    state: convertaltar
  objectType: Structure
  placementMode: SnapgridCenter
  canRotate: false
  canBuildInImpassable: false
  conditions:
    - !type:TileNotBlocked

# Оранжевый Алтарь (Orange Altar)
- type: entity
  id: AltarConvertOrange
  parent: AltarConvertFestival
  name: оранжевый алтарь
  description: Алтарь с яркими и теплые оттенками оранжевого.
  components:
  - type: Sprite
    sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
    layers:
    - state: orange
    - state: lightning
      shader: unshaded
  - type: Icon
    sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
    state: orange
  - type: PointLight
    radius: 1.5
    energy: 1
    color: "#fbceb1"
  - type: Construction
    graph: OrangeAltarGraph
    node: orangeAltar

- type: constructionGraph
  id: OrangeAltarGraph
  start: start
  graph:
    - node: start
      edges:
        - to: orangeAltar
          completed:
            - !type:SnapToGrid
              southRotation: true
          steps:
            - material: WoodPlank
              amount: 6
              doAfter: 5

    - node: orangeAltar
      entity: AltarConvertOrange
      edges:
        - to: start
          completed:
            - !type:SpawnPrototype
              prototype: MaterialWoodPlank
              amount: 6
            - !type:DeleteEntity {}
          steps:
            - tool: Prying
              doAfter: 5

- type: construction
  name: оранжевый алтарь
  id: OrangeAltar
  graph: OrangeAltarGraph
  startNode: start
  targetNode: orangeAltar
  category: construction-category-structures
  description: Алтарь с яркими и теплые оттенками оранжевого.
  icon:
    sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
    state: orange
  objectType: Structure
  placementMode: SnapgridCenter
  canRotate: false
  canBuildInImpassable: false
  conditions:
    - !type:TileNotBlocked

# Красный Алтарь (Red Altar)
- type: entity
  id: AltarConvertRed
  parent: AltarConvertFestival
  name: красный алтарь
  description: Алтарь, полный страсти и энергии красных оттенков.
  components:
  - type: Sprite
    sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
    layers:
    - state: red
    - state: lightning
      shader: unshaded
  - type: Icon
    sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
    state: red
  - type: PointLight
    radius: 1.5
    energy: 1
    color: "#fbceb1"
  - type: Construction
    graph: RedAltarGraph
    node: redAltar

- type: constructionGraph
  id: RedAltarGraph
  start: start
  graph:
    - node: start
      edges:
        - to: redAltar
          completed:
            - !type:SnapToGrid
              southRotation: true
          steps:
            - material: WoodPlank
              amount: 6
              doAfter: 5

    - node: redAltar
      entity: AltarConvertRed
      edges:
        - to: start
          completed:
            - !type:SpawnPrototype
              prototype: MaterialWoodPlank
              amount: 6
            - !type:DeleteEntity {}
          steps:
            - tool: Prying
              doAfter: 5

- type: construction
  name: красный алтарь
  id: RedAltar
  graph: RedAltarGraph
  startNode: start
  targetNode: redAltar
  category: construction-category-structures
  description: Алтарь, полный страсти и энергии красных оттенков.
  icon:
    sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
    state: red
  objectType: Structure
  placementMode: SnapgridCenter
  canRotate: false
  canBuildInImpassable: false
  conditions:
    - !type:TileNotBlocked

# Белый Алтарь (White Altar)
- type: entity
  id: AltarConvertWhite
  parent: AltarConvertFestival
  name: белый алтарь
  description: Алтарь, символизирующий чистоту и светлые намерения.
  components:
  - type: Sprite
    sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
    layers:
    - state: white
    - state: lightning
      shader: unshaded
  - type: Icon
    sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
    state: white
  - type: PointLight
    radius: 1.5
    energy: 1
    color: "#fbceb1"
  - type: Construction
    graph: WhiteAltarGraph
    node: whiteAltar

- type: constructionGraph
  id: WhiteAltarGraph
  start: start
  graph:
    - node: start
      edges:
        - to: whiteAltar
          completed:
            - !type:SnapToGrid
              southRotation: true
          steps:
            - material: WoodPlank
              amount: 6
              doAfter: 5

    - node: whiteAltar
      entity: AltarConvertWhite
      edges:
        - to: start
          completed:
            - !type:SpawnPrototype
              prototype: MaterialWoodPlank
              amount: 6
            - !type:DeleteEntity {}
          steps:
            - tool: Prying
              doAfter: 5

- type: construction
  name: белый алтарь
  id: WhiteAltar
  graph: WhiteAltarGraph
  startNode: start
  targetNode: whiteAltar
  category: construction-category-structures
  description: Алтарь, символизирующий чистоту и светлые намерения.
  icon:
    sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
    state: white
  objectType: Structure
  placementMode: SnapgridCenter
  canRotate: false
  canBuildInImpassable: false
  conditions:
    - !type:TileNotBlocked

# Желтый Алтарь (Yellow Altar)
- type: entity
  id: AltarConvertYellow
  parent: AltarConvertFestival
  name: жёлтый алтарь
  description: Алтарь, излучающий радость и тепло желтых оттенков.
  components:
  - type: Sprite
    sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
    layers:
    - state: yellow
    - state: lightning
      shader: unshaded
  - type: Icon
    sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
    state: yellow
  - type: PointLight
    radius: 1.5
    energy: 1
    color: "#fbceb1"
  - type: Construction
    graph: YellowAltarGraph
    node: yellowAltar

- type: constructionGraph
  id: YellowAltarGraph
  start: start
  graph:
    - node: start
      edges:
        - to: yellowAltar
          completed:
            - !type:SnapToGrid
              southRotation: true
          steps:
            - material: WoodPlank
              amount: 6
              doAfter: 5

    - node: yellowAltar
      entity: AltarConvertYellow
      edges:
        - to: start
          completed:
            - !type:SpawnPrototype
              prototype: MaterialWoodPlank
              amount: 6
            - !type:DeleteEntity {}
          steps:
            - tool: Prying
              doAfter: 5

- type: construction
  name: жёлтый алтарь
  id: YellowAltar
  graph: YellowAltarGraph
  startNode: start
  targetNode: yellowAltar
  category: construction-category-structures
  description: Алтарь, излучающий радость и тепло желтых оттенков.
  icon:
    sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
    state: yellow
  objectType: Structure
  placementMode: SnapgridCenter
  canRotate: false
  canBuildInImpassable: false
  conditions:
    - !type:TileNotBlocked

# Небесный Алтарь (Heaven Altar)
- type: entity
  id: AltarHeaven
  parent: AltarBase
  name: небесный алтарь
  description: Алтарь, устремленный к свету и высшим силам.
  components:
  - type: Sprite
    sprite: Structures/Furniture/Altars/Cults/heaven.rsi
    layers:
    - state: full
    - state: blood
      shader: unshaded
  - type: Icon
    sprite: Structures/Furniture/Altars/Cults/heaven.rsi
    state: full
  - type: Destructible
    thresholds:
      - trigger:
          !type:DamageTrigger
          damage: 125
        behaviors:
          - !type:DoActsBehavior
            acts: [ "Destruction" ]
      - trigger:
          !type:DamageTrigger
          damage: 25
        behaviors:
          - !type:PlaySoundBehavior
            sound:
              collection: MetalBreak
          - !type:SpawnEntitiesBehavior
            spawn:
              SheetSteel1:
                min: 1
                max: 5
          - !type:DoActsBehavior
            acts: [ "Destruction" ]
  - type: PointLight
    radius: 1.5
    energy: 1
    color: "#f08080"
  - type: Construction
    graph: HeavenAltarGraph
    node: heavenAltar

- type: constructionGraph
  id: HeavenAltarGraph
  start: start
  graph:
    - node: start
      edges:
        - to: heavenAltar
          completed:
            - !type:SnapToGrid
              southRotation: true
          steps:
            - material: Steel
              amount: 6
              doAfter: 5

    - node: heavenAltar
      entity: AltarHeaven
      edges:
        - to: start
          completed:
            - !type:SpawnPrototype
              prototype: SheetSteel1
              amount: 6
            - !type:DeleteEntity {}
          steps:
            - tool: Prying
              doAfter: 5

- type: construction
  name: небесный алтарь
  id: HeavenAltar
  graph: HeavenAltarGraph
  startNode: start
  targetNode: heavenAltar
  category: construction-category-structures
  description: Алтарь, устремленный к свету и высшим силам.
  icon:
    sprite: Structures/Furniture/Altars/Cults/heaven.rsi
    state: full
  objectType: Structure
  placementMode: SnapgridCenter
  canRotate: false
  canBuildInImpassable: false
  conditions:
    - !type:TileNotBlocked

# Клыкастый Алтарь (Fangs Altar)
- type: entity
  id: AltarFangs
  parent: AltarHeaven
  name: клыкастый алтарь
  description: Алтарь с угрожающими клыками и мистической аурой.
  components:
  - type: Sprite
    sprite: Structures/Furniture/Altars/Cults/fangs.rsi
  - type: Icon
    sprite: Structures/Furniture/Altars/Cults/fangs.rsi
  - type: Construction
    graph: FangsAltarGraph
    node: fangsAltar

- type: constructionGraph
  id: FangsAltarGraph
  start: start
  graph:
    - node: start
      edges:
        - to: fangsAltar
          completed:
            - !type:SnapToGrid
              southRotation: true
          steps:
            - material: Steel
              amount: 6
              doAfter: 5

    - node: fangsAltar
      entity: AltarFangs
      edges:
        - to: start
          completed:
            - !type:SpawnPrototype
              prototype: SheetSteel1
              amount: 6
            - !type:DeleteEntity {}
          steps:
            - tool: Prying
              doAfter: 5

- type: construction
  name: клыкастый алтарь
  id: FangsAltar
  graph: FangsAltarGraph
  startNode: start
  targetNode: fangsAltar
  category: construction-category-structures
  description: Алтарь с угрожающими клыками и мистической аурой.
  icon:
    sprite: Structures/Furniture/Altars/Cults/fangs.rsi
  objectType: Structure
  placementMode: SnapgridCenter
  canRotate: false
  canBuildInImpassable: false
  conditions:
    - !type:TileNotBlocked

# Статуя "StatueVenusRed"
- type: entity
  id: StatueVenusRed
  parent: BaseStructure
  name: статуя непорочной девы
  suffix: Красная
  description: Древняя мраморная статуя. Она изображена с косой до пола и с красным ящиком для инструментов.
  components:
  - type: Sprite
    noRot: true
    sprite: Structures/Decoration/statues.rsi
    state: venus_red
    drawdepth: Mobs
    offset: "0.0,0.5"
  - type: Construction
    graph: VenusRedStatueGraph
    node: statueRed

- type: constructionGraph
  id: VenusRedStatueGraph
  start: start
  graph:
    - node: start
      edges:
        - to: statueRed
          completed:
            - !type:SnapToGrid
              southRotation: false
          steps:
            - material: Plasteel
              amount: 10
              doAfter: 3
            - material: Steel
              amount: 5
              doAfter: 2
            - tag: Toolbox
              icon:
                sprite: Objects/Tools/Toolboxes/toolbox_red.rsi
                state: icon
              name: аварийный ящик для инструментов
              doAfter: 2

    - node: statueRed
      entity: StatueVenusRed
      edges:
        - to: start
          completed:
            - !type:SpawnPrototype
              prototype: SheetPlasteel1
              amount: 10
            - !type:SpawnPrototype
              prototype: SheetSteel1
              amount: 5
            - !type:DeleteEntity {}
          steps:
            - tool: Prying
              doAfter: 5

- type: construction
  name: статуя непорочной девы
  id: VenusRedStatue
  graph: VenusRedStatueGraph
  startNode: start
  targetNode: statueRed
  category: construction-category-structures
  description: Древняя мраморная статуя. Она изображена с косой до пола и с красным ящиком для инструментов.
  icon:
    sprite: Structures/Decoration/statues.rsi
    state: venus_red
  objectType: Structure
  placementMode: SnapgridCenter
  canRotate: false
  canBuildInImpassable: false
  conditions:
    - !type:TileNotBlocked

# Статуя "StatueVenusBlue"
- type: entity
  id: StatueVenusBlue
  parent: BaseStructure
  name: статуя непорочной девы
  suffix: Синяя
  description: Древняя мраморная статуя. Она изображена с косой до пола и с синим ящиком для инструментов.
  components:
  - type: Sprite
    noRot: true
    sprite: Structures/Decoration/statues.rsi
    state: venus_blue
    drawdepth: Mobs
    offset: "0.0,0.5"
  - type: Construction
    graph: VenusBlueStatueGraph
    node: statueBlue

- type: constructionGraph
  id: VenusBlueStatueGraph
  start: start
  graph:
    - node: start
      edges:
        - to: statueBlue
          completed:
            - !type:SnapToGrid
              southRotation: false
          steps:
            - material: Plasteel
              amount: 10
              doAfter: 3
            - material: Steel
              amount: 5
              doAfter: 2
            - tag: Toolbox
              icon:
                sprite: Objects/Tools/Toolboxes/toolbox_blue.rsi
                state: icon
              name: технический ящик для инструментов
              doAfter: 2

    - node: statueBlue
      entity: StatueVenusBlue
      edges:
        - to: start
          completed:
            - !type:SpawnPrototype
              prototype: SheetPlasteel1
              amount: 10
            - !type:SpawnPrototype
              prototype: SheetSteel1
              amount: 5
            - !type:DeleteEntity {}
          steps:
            - tool: Prying
              doAfter: 5

- type: construction
  name: статуя непорочной девы
  id: VenusBlueStatue
  graph: VenusBlueStatueGraph
  startNode: start
  targetNode: statueBlue
  category: construction-category-structures
  description: Древняя мраморная статуя. Она изображена с косой до пола и с синим ящиком для инструментов.
  icon:
    sprite: Structures/Decoration/statues.rsi
    state: venus_blue
  objectType: Structure
  placementMode: SnapgridCenter
  canRotate: false
  canBuildInImpassable: false
  conditions:
    - !type:TileNotBlocked