Проанализируй прототип - type: entity id: UnlitCampfire parent: BaseStructure name:…
- User
Проанализируй прототип
-
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"]
- trigger:
!type:DamageTrigger
damage: 50
behaviors:
- 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: Sprite
noRot: true
sprite: Structures/Decoration/bonfire.rsi
layers:
-
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"]
- trigger:
!type:DamageTrigger
damage: 50
behaviors:
- type: Sprite
noRot: true
sprite: Structures/Decoration/bonfire.rsi
layers:
-
type: constructionGraph id: CampfireGraph start: start graph:
-
node: start edges:
- to: unlit
steps:
- material: WoodPlank amount: 5 doAfter: 3
- to: unlit
steps:
-
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
- to: lit
steps:
-
node: lit entity: LitCampfire edges:
- to: start
completed:
- !type:SpawnPrototype prototype: Coal1 amount: 1
- !type:DeleteEntity {} steps:
- tool: Prying doAfter: 1
- to: start
completed:
-
-
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" ]
- trigger:
!type:DamageTrigger
damage: 200
behaviors:
- type: AlwaysHot
- type: Sprite
sprite: Structures/Decoration/fireplace.rsi
noRot: true
layers:
-
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" ]
- trigger:
!type:DamageTrigger
damage: 200
behaviors:
- type: AlwaysHot
- type: Sprite
sprite: Structures/Decoration/fireplace.rsi
noRot: true
layers:
-
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
- to: unlit
steps:
-
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
- to: lit
steps:
-
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
- to: start
completed:
-
-
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
- to: chaosAltar
completed:
-
node: chaosAltar entity: AltarChaos edges:
- to: start
completed:
- !type:SpawnPrototype prototype: SheetSteel1 amount: 6
- !type:DeleteEntity {} steps:
- tool: Prying doAfter: 5
- to: start
completed:
-
-
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
- to: druidAltar
completed:
-
node: druidAltar entity: AltarDruid edges:
- to: start
completed:
- !type:SpawnPrototype prototype: MaterialWoodPlank amount: 6
- !type:DeleteEntity {} steps:
- tool: Prying doAfter: 5
- to: start
completed:
-
-
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
- to: toolboxAltar
completed:
-
node: toolboxAltar entity: AltarToolbox edges:
- to: start
completed:
- !type:SpawnPrototype prototype: SheetSteel1 amount: 6
- !type:DeleteEntity {} steps:
- tool: Prying doAfter: 5
- to: start
completed:
-
-
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: Sprite
sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
layers:
-
type: constructionGraph id: SpaceChristianAltarGraph start: start graph:
-
node: start edges:
- to: spaceChristianAltar
completed:
- !type:SnapToGrid southRotation: true steps:
- material: Steel amount: 6 doAfter: 5
- to: spaceChristianAltar
completed:
-
node: spaceChristianAltar entity: AltarSpaceChristian edges:
- to: start
completed:
- !type:SpawnPrototype prototype: SheetSteel1 amount: 6
- !type:DeleteEntity {} steps:
- tool: Prying doAfter: 5
- to: start
completed:
-
-
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: Sprite
sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
layers:
-
type: constructionGraph id: SatanicAltarGraph start: start graph:
-
node: start edges:
- to: satanicAltar
completed:
- !type:SnapToGrid southRotation: true steps:
- material: Steel amount: 6 doAfter: 5
- to: satanicAltar
completed:
-
node: satanicAltar entity: AltarSatana edges:
- to: start
completed:
- !type:SpawnPrototype prototype: SheetSteel1 amount: 6
- !type:DeleteEntity {} steps:
- tool: Prying doAfter: 5
- to: start
completed:
-
-
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: Sprite
sprite: Structures/Furniture/Altars/Gods/nanotrasen.rsi
layers:
-
type: constructionGraph id: TechnologyAltarGraph start: start graph:
-
node: start edges:
- to: technologyAltar
completed:
- !type:SnapToGrid southRotation: true steps:
- material: Steel amount: 6 doAfter: 5
- to: technologyAltar
completed:
-
node: technologyAltar entity: AltarTechnology edges:
- to: start
completed:
- !type:SpawnPrototype prototype: SheetSteel1 amount: 6
- !type:DeleteEntity {} steps:
- tool: Prying doAfter: 5
- to: start
completed:
-
-
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" ]
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- 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
- to: festivalAltar
completed:
-
node: festivalAltar entity: AltarConvertFestival edges:
- to: start
completed:
- !type:SpawnPrototype prototype: MaterialWoodPlank amount: 6
- !type:DeleteEntity {} steps:
- tool: Prying doAfter: 5
- to: start
completed:
-
-
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: Sprite
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
layers:
-
type: constructionGraph id: MaintAltarGraph start: start graph:
-
node: start edges:
- to: maintAltar
completed:
- !type:SnapToGrid southRotation: true steps:
- material: WoodPlank amount: 6 doAfter: 5
- to: maintAltar
completed:
-
node: maintAltar entity: AltarConvertMaint edges:
- to: start
completed:
- !type:SpawnPrototype prototype: MaterialWoodPlank amount: 6
- !type:DeleteEntity {} steps:
- tool: Prying doAfter: 5
- to: start
completed:
-
-
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: Sprite
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
layers:
-
type: constructionGraph id: BlueAltarGraph start: start graph:
-
node: start edges:
- to: blueAltar
completed:
- !type:SnapToGrid southRotation: true steps:
- material: WoodPlank amount: 6 doAfter: 5
- to: blueAltar
completed:
-
node: blueAltar entity: AltarConvertBlue edges:
- to: start
completed:
- !type:SpawnPrototype prototype: MaterialWoodPlank amount: 6
- !type:DeleteEntity {} steps:
- tool: Prying doAfter: 5
- to: start
completed:
-
-
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: Sprite
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
layers:
-
type: constructionGraph id: BurdenAltarGraph start: start graph:
-
node: start edges:
- to: burdenAltar
completed:
- !type:SnapToGrid southRotation: true steps:
- material: WoodPlank amount: 6 doAfter: 5
- to: burdenAltar
completed:
-
node: burdenAltar entity: AltarConvertBurden edges:
- to: start
completed:
- !type:SpawnPrototype prototype: MaterialWoodPlank amount: 6
- !type:DeleteEntity {} steps:
- tool: Prying doAfter: 5
- to: start
completed:
-
-
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: Sprite
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
layers:
-
type: constructionGraph id: ConvertAltarGraph start: start graph:
-
node: start edges:
- to: convertAltar
completed:
- !type:SnapToGrid southRotation: true steps:
- material: WoodPlank amount: 6 doAfter: 5
- to: convertAltar
completed:
-
node: convertAltar entity: AltarConvert edges:
- to: start
completed:
- !type:SpawnPrototype prototype: MaterialWoodPlank amount: 6
- !type:DeleteEntity {} steps:
- tool: Prying doAfter: 5
- to: start
completed:
-
-
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: Sprite
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
layers:
-
type: constructionGraph id: OrangeAltarGraph start: start graph:
-
node: start edges:
- to: orangeAltar
completed:
- !type:SnapToGrid southRotation: true steps:
- material: WoodPlank amount: 6 doAfter: 5
- to: orangeAltar
completed:
-
node: orangeAltar entity: AltarConvertOrange edges:
- to: start
completed:
- !type:SpawnPrototype prototype: MaterialWoodPlank amount: 6
- !type:DeleteEntity {} steps:
- tool: Prying doAfter: 5
- to: start
completed:
-
-
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: Sprite
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
layers:
-
type: constructionGraph id: RedAltarGraph start: start graph:
-
node: start edges:
- to: redAltar
completed:
- !type:SnapToGrid southRotation: true steps:
- material: WoodPlank amount: 6 doAfter: 5
- to: redAltar
completed:
-
node: redAltar entity: AltarConvertRed edges:
- to: start
completed:
- !type:SpawnPrototype prototype: MaterialWoodPlank amount: 6
- !type:DeleteEntity {} steps:
- tool: Prying doAfter: 5
- to: start
completed:
-
-
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: Sprite
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
layers:
-
type: constructionGraph id: WhiteAltarGraph start: start graph:
-
node: start edges:
- to: whiteAltar
completed:
- !type:SnapToGrid southRotation: true steps:
- material: WoodPlank amount: 6 doAfter: 5
- to: whiteAltar
completed:
-
node: whiteAltar entity: AltarConvertWhite edges:
- to: start
completed:
- !type:SpawnPrototype prototype: MaterialWoodPlank amount: 6
- !type:DeleteEntity {} steps:
- tool: Prying doAfter: 5
- to: start
completed:
-
-
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: Sprite
sprite: Structures/Furniture/Altars/Gods/convertaltar.rsi
layers:
-
type: constructionGraph id: YellowAltarGraph start: start graph:
-
node: start edges:
- to: yellowAltar
completed:
- !type:SnapToGrid southRotation: true steps:
- material: WoodPlank amount: 6 doAfter: 5
- to: yellowAltar
completed:
-
node: yellowAltar entity: AltarConvertYellow edges:
- to: start
completed:
- !type:SpawnPrototype prototype: MaterialWoodPlank amount: 6
- !type:DeleteEntity {} steps:
- tool: Prying doAfter: 5
- to: start
completed:
-
-
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" ]
- trigger:
!type:DamageTrigger
damage: 125
behaviors:
- type: PointLight radius: 1.5 energy: 1 color: "#f08080"
- type: Construction graph: HeavenAltarGraph node: heavenAltar
- type: Sprite
sprite: Structures/Furniture/Altars/Cults/heaven.rsi
layers:
-
type: constructionGraph id: HeavenAltarGraph start: start graph:
-
node: start edges:
- to: heavenAltar
completed:
- !type:SnapToGrid southRotation: true steps:
- material: Steel amount: 6 doAfter: 5
- to: heavenAltar
completed:
-
node: heavenAltar entity: AltarHeaven edges:
- to: start
completed:
- !type:SpawnPrototype prototype: SheetSteel1 amount: 6
- !type:DeleteEntity {} steps:
- tool: Prying doAfter: 5
- to: start
completed:
-
-
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
- to: fangsAltar
completed:
-
node: fangsAltar entity: AltarFangs edges:
- to: start
completed:
- !type:SpawnPrototype prototype: SheetSteel1 amount: 6
- !type:DeleteEntity {} steps:
- tool: Prying doAfter: 5
- to: start
completed:
-
-
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
- to: statueRed
completed:
-
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
- to: start
completed:
-
-
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
- to: statueBlue
completed:
-
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
- to: start
completed:
-
-
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
-
- Assistant
Этот прототип описывает систему конструкций и их преобразований в игровой среде. Давайте рассмотрим ключевые элементы и структуры этого прототипа:
-
Классы и наследование:
- Основные объекты, такие как "UnlitCampfire", "LitCampfire", "FireplaceUnlit", и "FireplaceLit" наследуются от "BaseStructure". Это позволяет повторно использовать общие компоненты и свойства.
-
Компоненты:
- Каждый объект имеет ряд компонентов, таких как "Sprite" для графического отображения, "Damageable" и "Destructible" для управления повреждениями, "PointLight" для освещения, и "AmbientSound" для звукового окружения.
-
Графы конструкций:
- Для каждого типа конструкции указывается граф переходов, который описывает, из каких материалов и с помощью каких инструментов можно создать объект.
- Пример: чтобы зажечь "UnlitCampfire", нужно использовать инструмент "Welding".
-
Преобразования:
- Графы также описывают, как разрушить объект и извлечь из него материалы, — это происходит с помощью инструмента "Prying".
-
Разнообразие объектов:
- Определены различные объекты (алтарь, костёр, статуя), которые имеют уникальные свойства и способы взаимодействия, такие как "Алтарь Хаоса", "Алтарь Друидов", "Космо-Христианский алтарь" и другие.
-
Удобство и гибкость:
- Возможность изменения состояния объектов (например, "не зажённый" и "зажённый" костры) и поддержка различных эффектов (освещение, звук).
-
Описание и визуализация:
- Каждый объект имеет текстовые описания и графические элементы, чтобы интегрироваться в игровую вселенную и поддерживать атмосферу.
-
Условия строительства:
- Установлены условия для строительства объектов, такие как отсутствие блокировки плитки.
Это детальное описание системы, которая, будучи интегрированной в игру, позволяет создавать и разрушать различные объекты, управлять их состоянием и визуальными эффектами, что способствует более интерактивному и привлекательному игровому процессу.
-
- User
Сделай аналогичным образом создание этому
-
type: entity name: sink id: Sink parent: SinkEmpty suffix: Water components:
- type: SolutionContainerManager solutions: drainBuffer: maxVol: 200 tank: reagents: - ReagentId: Water Quantity: 500
-
type: entity name: wide sink id: SinkWide parent: Sink components:
- type: Sprite
sprite: Structures/Furniture/sink.rsi
layers:
- state: sink_wide
- map: [ "enum.SolutionContainerLayers.Fill" ] state: sink_wide-fill-1 visible: false
- type: SolutionContainerVisuals maxFillLevels: 1 fillBaseName: sink_wide-fill- solutionName: drainBuffer
- type: Sprite
sprite: Structures/Furniture/sink.rsi
layers:
#Stemless Sink
-
type: entity name: sink id: SinkStemless parent: SinkEmpty components:
- type: Sprite
sprite: Structures/Furniture/sink.rsi
layers:
- state: sink
- map: [ "enum.SolutionContainerLayers.Fill" ] state: sink-fill-1 visible: false
- type: Sprite
sprite: Structures/Furniture/sink.rsi
layers:
-
type: entity name: sink id: SinkStemlessWater parent: SinkStemless suffix: Water components:
- type: SolutionContainerManager solutions: drainBuffer: maxVol: 100 tank: reagents: - ReagentId: Water Quantity: 500
-
- Assistant
Для создания аналогичной системы конструирования раковин, подобной той, что вы описали для алтарей и других объектов, мы можем разработать следующий прототип. Здесь будет описан процесс конструирования различных типов раковин, а также их различных состояний (например, наполненные водой).
- Граф конструирования:
- type: constructionGraph id: SinkGraph start: start graph: - node: start edges: - to: sink steps: - material: Steel amount: 4 doAfter: 2 - node: sink entity: SinkEmpty edges: - to: sinkWater steps: - material: Water amount: 500 doAfter: 1 - node: sinkWater entity: Sink edges: - to: start completed: - !type:SpawnPrototype prototype: SheetSteel1 amount: 4 - !type:DeleteEntity {} steps: - tool: Prying doAfter: 3- Элементы конструирования:
- type: construction name: раковина id: SinkConstruction graph: SinkGraph startNode: start targetNode: sinkWater category: construction-category-furniture description: Удобная раковина для ваших нужд. icon: sprite: Structures/Furniture/sink.rsi state: sink objectType: Structure placementMode: SnapgridCenter canBuildInImpassable: false conditions: - !type:TileNotBlocked- Определение новых сущностей и их компонентов:
- type: entity name: пустая раковина id: SinkEmpty parent: BaseStructure components: - type: Sprite sprite: Structures/Furniture/sink.rsi layers: - state: sink - type: SolutionContainerManager solutions: drainBuffer: maxVol: 200 - type: entity name: раковина с водой id: SinkWater parent: SinkEmpty suffix: Water components: - type: SolutionContainerManager solutions: drainBuffer: maxVol: 200 tank: reagents: - ReagentId: Water Quantity: 500- Конструирование широкой раковины:
- type: constructionGraph id: SinkWideGraph start: start graph: - node: start edges: - to: sinkWide steps: - material: Steel amount: 6 doAfter: 3 - node: sinkWide entity: SinkWide edges: - to: start completed: - !type:SpawnPrototype prototype: SheetSteel1 amount: 6 - !type:DeleteEntity {} steps: - tool: Prying doAfter: 5- Элементы для широкой раковины:
- type: construction name: широкая раковина id: SinkWideConstruction graph: SinkWideGraph startNode: start targetNode: sinkWide category: construction-category-furniture description: Широкая раковина для больших нужд. icon: sprite: Structures/Furniture/sink.rsi state: sink_wide objectType: Structure placementMode: SnapgridCenter canBuildInImpassable: false conditions: - !type:TileNotBlockedЭто создание раковин обеспечивает гибкость и расширяемость, аналогично приведённой системе алтарей и других объектов, что позволяет эффективно управлять состояниями и свойствами различных объектов в игре.
- User
Сделай это сразу для всех видов раковин что я скинул, одним длинным текстом
- Assistant
Давайте объединяем данные из вашего примера и создадим систему конструирования для всех типов раковин. Это будет включать конструирование как обычных раковин, так и широких и бесстебельных.
# Конструирование раковины (Sink) - type: constructionGraph id: SinkGraph start: start graph: - node: start edges: - to: sinkEmpty steps: - material: Steel amount: 4 doAfter: 2 - node: sinkEmpty entity: SinkEmpty edges: - to: sinkWater steps: - material: Water amount: 500 doAfter: 1 - to: start completed: - !type:SpawnPrototype prototype: SheetSteel1 amount: 4 - !type:DeleteEntity {} steps: - tool: Prying doAfter: 3 - node: sinkWater entity: Sink edges: - to: start completed: - !type:SpawnPrototype prototype: SheetSteel1 amount: 4 - !type:DeleteEntity {} steps: - tool: Prying doAfter: 3 - type: construction name: раковина id: SinkConstruction graph: SinkGraph startNode: start targetNode: sinkWater category: construction-category-furniture description: Удобная раковина для ваших нужд. icon: sprite: Structures/Furniture/sink.rsi state: sink objectType: Structure placementMode: SnapgridCenter canBuildInImpassable: false conditions: - !type:TileNotBlocked - type: entity name: пустая раковина id: SinkEmpty parent: BaseStructure components: - type: Sprite sprite: Structures/Furniture/sink.rsi layers: - state: sink - type: SolutionContainerManager solutions: drainBuffer: maxVol: 200 - type: entity name: раковина с водой id: Sink parent: SinkEmpty suffix: Water components: - type: SolutionContainerManager solutions: drainBuffer: maxVol: 200 tank: reagents: - ReagentId: Water Quantity: 500 # Конструирование широкой раковины (SinkWide) - type: constructionGraph id: SinkWideGraph start: start graph: - node: start edges: - to: sinkWide steps: - material: Steel amount: 6 doAfter: 3 - node: sinkWide entity: SinkWide edges: - to: start completed: - !type:SpawnPrototype prototype: SheetSteel1 amount: 6 - !type:DeleteEntity {} steps: - tool: Prying doAfter: 5 - type: construction name: широкая раковина id: SinkWideConstruction graph: SinkWideGraph startNode: start targetNode: sinkWide category: construction-category-furniture description: Широкая раковина для больших нужд. icon: sprite: Structures/Furniture/sink.rsi state: sink_wide objectType: Structure placementMode: SnapgridCenter canBuildInImpassable: false conditions: - !type:TileNotBlocked - type: entity name: широкая раковина id: SinkWide parent: Sink components: - type: Sprite sprite: Structures/Furniture/sink.rsi layers: - state: sink_wide - map: [ "enum.SolutionContainerLayers.Fill" ] state: sink_wide-fill-1 visible: false - type: SolutionContainerVisuals maxFillLevels: 1 fillBaseName: sink_wide-fill- solutionName: drainBuffer # Конструирование бесстебельной раковины (SinkStemless) - type: constructionGraph id: SinkStemlessGraph start: start graph: - node: start edges: - to: sinkStemlessEmpty steps: - material: Steel amount: 4 doAfter: 2 - node: sinkStemlessEmpty entity: SinkStemless edges: - to: sinkStemlessWater steps: - material: Water amount: 500 doAfter: 1 - to: start completed: - !type:SpawnPrototype prototype: SheetSteel1 amount: 4 - !type:DeleteEntity {} steps: - tool: Prying doAfter: 3 - node: sinkStemlessWater entity: SinkStemlessWater edges: - to: start completed: - !type:SpawnPrototype prototype: SheetSteel1 amount: 4 - !type:DeleteEntity {} steps: - tool: Prying doAfter: 3 - type: construction name: бесстебельная раковина id: SinkStemlessConstruction graph: SinkStemlessGraph startNode: start targetNode: sinkStemlessWater category: construction-category-furniture description: Бесстебельная раковина для экономии места. icon: sprite: Structures/Furniture/sink.rsi state: sink objectType: Structure placementMode: SnapgridCenter canBuildInImpassable: false conditions: - !type:TileNotBlocked - type: entity name: бесстебельная пустая раковина id: SinkStemless parent: BaseStructure components: - type: Sprite sprite: Structures/Furniture/sink.rsi layers: - state: sink - map: [ "enum.SolutionContainerLayers.Fill" ] state: sink-fill-1 visible: false - type: entity name: бесстебельная раковина с водой id: SinkStemlessWater parent: SinkStemless suffix: Water components: - type: SolutionContainerManager solutions: drainBuffer: maxVol: 100 tank: reagents: - ReagentId: Water Quantity: 500Этот YAML-файл описывает строительство всех трех типов раковин, включая их пустые и заполненные состояния. Файл включает графы конструкций, элементы для каждой раковины и условия, необходимые для их создания в игровом мире.
- User
ent-SinkEmpty = раковина .desc = Краны были затянуты с максимальной силой, но, как видно, с них всё равно капает. .suffix = Пустой ent-Sink = раковина .desc = { ent-SinkEmpty.desc } .suffix = Вода ent-SinkWide = широкая раковина .desc = { ent-Sink.desc } .suffix = Вода ent-SinkStemless = раковина .desc = { ent-SinkEmpty.desc } .suffix = Пустой ent-SinkStemlessWater = раковина .desc = { ent-SinkStemless.desc } .suffix = Вода
Вот переводы если что правильные
- Assistant
Учитывая предоставленные переводы и уточненные описания, я обновлю части YAML-документа, связанные с описаниями и суффиксами, чтобы они соответствовали вашим требованиям.
# Конструирование раковины (Sink) - type: constructionGraph id: SinkGraph start: start graph: - node: start edges: - to: sinkEmpty steps: - material: Steel amount: 4 doAfter: 2 - node: sinkEmpty entity: SinkEmpty edges: - to: sinkWater steps: - material: Water amount: 500 doAfter: 1 - to: start completed: - !type:SpawnPrototype prototype: SheetSteel1 amount: 4 - !type:DeleteEntity {} steps: - tool: Prying doAfter: 3 - node: sinkWater entity: Sink edges: - to: start completed: - !type:SpawnPrototype prototype: SheetSteel1 amount: 4 - !type:DeleteEntity {} steps: - tool: Prying doAfter: 3 - type: construction name: раковина id: SinkConstruction graph: SinkGraph startNode: start targetNode: sinkWater category: construction-category-furniture description: Удобная раковина для ваших нужд. icon: sprite: Structures/Furniture/sink.rsi state: sink objectType: Structure placementMode: SnapgridCenter canBuildInImpassable: false conditions: - !type:TileNotBlocked - type: entity name: раковина id: SinkEmpty parent: BaseStructure description: "Краны были затянуты с максимальной силой, но, как видно, с них всё равно капает." suffix: Пустой components: - type: Sprite sprite: Structures/Furniture/sink.rsi layers: - state: sink - type: SolutionContainerManager solutions: drainBuffer: maxVol: 200 - type: entity name: раковина id: Sink parent: SinkEmpty description: "Краны были затянуты с максимальной силой, но, как видно, с них всё равно капает." suffix: Вода components: - type: SolutionContainerManager solutions: drainBuffer: maxVol: 200 tank: reagents: - ReagentId: Water Quantity: 500 # Конструирование широкой раковины (SinkWide) - type: constructionGraph id: SinkWideGraph start: start graph: - node: start edges: - to: sinkWide steps: - material: Steel amount: 6 doAfter: 3 - node: sinkWide entity: SinkWide edges: - to: start completed: - !type:SpawnPrototype prototype: SheetSteel1 amount: 6 - !type:DeleteEntity {} steps: - tool: Prying doAfter: 5 - type: construction name: широкая раковина id: SinkWideConstruction graph: SinkWideGraph startNode: start targetNode: sinkWide category: construction-category-furniture description: Широкая раковина для больших нужд. icon: sprite: Structures/Furniture/sink.rsi state: sink_wide objectType: Structure placementMode: SnapgridCenter canBuildInImpassable: false conditions: - !type:TileNotBlocked - type: entity name: широкая раковина id: SinkWide parent: Sink description: "Краны были затянуты с максимальной силой, но, как видно, с них всё равно капает." suffix: Вода components: - type: Sprite sprite: Structures/Furniture/sink.rsi layers: - state: sink_wide - map: [ "enum.SolutionContainerLayers.Fill" ] state: sink_wide-fill-1 visible: false - type: SolutionContainerVisuals maxFillLevels: 1 fillBaseName: sink_wide-fill- solutionName: drainBuffer # Конструирование бесстебельной раковины (SinkStemless) - type: constructionGraph id: SinkStemlessGraph start: start graph: - node: start edges: - to: sinkStemlessEmpty steps: - material: Steel amount: 4 doAfter: 2 - node: sinkStemlessEmpty entity: SinkStemless edges: - to: sinkStemlessWater steps: - material: Water amount: 500 doAfter: 1 - to: start completed: - !type:SpawnPrototype prototype: SheetSteel1 amount: 4 - !type:DeleteEntity {} steps: - tool: Prying doAfter: 3 - node: sinkStemlessWater entity: SinkStemlessWater edges: - to: start completed: - !type:SpawnPrototype prototype: SheetSteel1 amount: 4 - !type:DeleteEntity {} steps: - tool: Prying doAfter: 3 - type: construction name: раковина id: SinkStemlessConstruction graph: SinkStemlessGraph startNode: start targetNode: sinkStemlessWater category: construction-category-furniture description: Бесстебельная раковина для экономии места. icon: sprite: Structures/Furniture/sink.rsi state: sink objectType: Structure placementMode: SnapgridCenter canBuildInImpassable: false conditions: - !type:TileNotBlocked - type: entity name: раковина id: SinkStemless parent: BaseStructure description: "Краны были затянуты с максимальной силой, но, как видно, с них всё равно капает." suffix: Пустой components: - type: Sprite sprite: Structures/Furniture/sink.rsi layers: - state: sink - map: [ "enum.SolutionContainerLayers.Fill" ] state: sink-fill-1 visible: false - type: entity name: раковина id: SinkStemlessWater parent: SinkStemless description: "Краны были затянуты с максимальной силой, но, как видно, с них всё равно капает." suffix: Вода components: - type: SolutionContainerManager solutions: drainBuffer: maxVol: 100 tank: reagents: - ReagentId: Water Quantity: 500Таким образом, данная конфигурация включает правильные описания и суффиксы для каждой из раковин и учитывает все их аспекты, предоставленные в вашем примере.
- User
Ещё сделаем создание дренажа
- type: entity
id: FloorDrain
name: drain
description: Drains puddles around it. Useful for dumping mop buckets or keeping certain rooms clean.
placement:
mode: SnapgridCenter
components:
- type: Sprite
drawdepth: FloorObjects
sprite: Objects/Specific/Janitorial/drain.rsi
layers:
- state: icon
- map: [ "enum.SolutionContainerLayers.Fill" ] state: fill-1 visible: false
- type: InteractionOutline
- type: Clickable
- type: Transform anchored: true
- type: Physics bodyType: Static canCollide: false
- type: AmbientSound enabled: false volume: -8 range: 8 sound: path: /Audio/Ambience/Objects/drain.ogg
- type: Drain
- type: DumpableSolution solution: drainBuffer
- type: Appearance
- type: SolutionContainerVisuals maxFillLevels: 1 fillBaseName: fill- solutionName: drainBuffer
- type: SolutionContainerManager solutions: drainBuffer: maxVol: 1000
- type: DrainableSolution solution: drainBuffer
- type: Damageable damageContainer: StructuralInorganic damageModifierSet: StructuralMetallic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 200
behaviors:
- !type:DoActsBehavior acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior acts: [ "Destruction" ]
- !type:PlaySoundBehavior sound: collection: MetalBreak
- trigger:
!type:DamageTrigger
damage: 200
behaviors:
- type: Sprite
drawdepth: FloorObjects
sprite: Objects/Specific/Janitorial/drain.rsi
layers:
- type: entity
id: FloorDrain
name: drain
description: Drains puddles around it. Useful for dumping mop buckets or keeping certain rooms clean.
placement:
mode: SnapgridCenter
components:
- Assistant
Чтобы сделать создание для дренажа аналогично другим описанным системам, мы можем создать граф конструирования, связанный с дренажом, и определить его сущности. Вот как это можно сделать:
- Граф конструирования для дренажа:
- type: constructionGraph id: DrainGraph start: start graph: - node: start edges: - to: drain steps: - material: Steel amount: 3 doAfter: 2 - node: drain entity: FloorDrain edges: - to: start completed: - !type:SpawnPrototype prototype: SheetSteel1 amount: 3 - !type:DeleteEntity {} steps: - tool: Prying doAfter: 3- Элементы конструирования для дренажа:
- type: construction name: дренаж id: DrainConstruction graph: DrainGraph startNode: start targetNode: drain category: construction-category-furniture description: Дренаж для отведения луж и поддержания чистоты в определённых комнатах. icon: sprite: Objects/Specific/Janitorial/drain.rsi state: icon objectType: Structure placementMode: SnapgridCenter canBuildInImpassable: false conditions: - !type:TileNotBlocked- Сущность для дренажа:
- type: entity id: FloorDrain name: дренаж description: Отводит лужи вокруг себя. Полезно для опустошения ведер для швабр или поддержания чистоты в определённых комнатах. placement: mode: SnapgridCenter components: - type: Sprite drawdepth: FloorObjects sprite: Objects/Specific/Janitorial/drain.rsi layers: - state: icon - map: [ "enum.SolutionContainerLayers.Fill" ] state: fill-1 visible: false - type: InteractionOutline - type: Clickable - type: Transform anchored: true - type: Physics bodyType: Static canCollide: false - type: AmbientSound enabled: false volume: -8 range: 8 sound: path: /Audio/Ambience/Objects/drain.ogg - type: Drain - type: DumpableSolution solution: drainBuffer - type: Appearance - type: SolutionContainerVisuals maxFillLevels: 1 fillBaseName: fill- solutionName: drainBuffer - type: SolutionContainerManager solutions: drainBuffer: maxVol: 1000 - type: DrainableSolution solution: drainBuffer - type: Damageable damageContainer: StructuralInorganic damageModifierSet: StructuralMetallic - type: Destructible thresholds: - trigger: !type:DamageTrigger damage: 200 behaviors: - !type:DoActsBehavior acts: [ "Destruction" ] - trigger: !type:DamageTrigger damage: 100 behaviors: - !type:DoActsBehavior acts: [ "Destruction" ] - !type:PlaySoundBehavior sound: collection: MetalBreakТаким образом, данная конфигурация описывает процесс конструирования дренажа, включая его создание, разрушение и использование в игровой среде. Эти элементы позволяют игрокам взаимодействовать с дренажем точно так же, как и с другими игровыми объектами.
- User
ent-FloorDrain = дренаж .desc = Сливает лужи вокруг в себя. Пригодится для опорожнения вёдер или поддержания чистоты в определённых помещениях. Правильное описание
- Assistant
Спасибо за уточнение. Давайте обновим описание и название для сущности дренажа в YAML-конфигурации, чтобы они соответствовали правильным переводам:
- type: entity id: FloorDrain name: дренаж description: Сливает лужи вокруг в себя. Пригодится для опорожнения вёдер или поддержания чистоты в определённых помещениях. placement: mode: SnapgridCenter components: - type: Sprite drawdepth: FloorObjects sprite: Objects/Specific/Janitorial/drain.rsi layers: - state: icon - map: [ "enum.SolutionContainerLayers.Fill" ] state: fill-1 visible: false - type: InteractionOutline - type: Clickable - type: Transform anchored: true - type: Physics bodyType: Static canCollide: false - type: AmbientSound enabled: false volume: -8 range: 8 sound: path: /Audio/Ambience/Objects/drain.ogg - type: Drain - type: DumpableSolution solution: drainBuffer - type: Appearance - type: SolutionContainerVisuals maxFillLevels: 1 fillBaseName: fill- solutionName: drainBuffer - type: SolutionContainerManager solutions: drainBuffer: maxVol: 1000 - type: DrainableSolution solution: drainBuffer - type: Damageable damageContainer: StructuralInorganic damageModifierSet: StructuralMetallic - type: Destructible thresholds: - trigger: !type:DamageTrigger damage: 200 behaviors: - !type:DoActsBehavior acts: [ "Destruction" ] - trigger: !type:DamageTrigger damage: 100 behaviors: - !type:DoActsBehavior acts: [ "Destruction" ] - !type:PlaySoundBehavior sound: collection: MetalBreakТеперь описание и название для дренажа отражают правильный перевод. Это обновление поможет при интеграции элемента в игру с учетом языковой локализации.
- User
[ERRO] proto: Reading Content.Shared.Construction.Prototypes.ConstructionPrototype(FangsAltar) threw the following exception: Robust.Shared.Serialization.InvalidMappingException: Expected state-node as a valuenode at Robust.Shared.Serialization.TypeSerializers.Implementations.SpriteSpecifierSerializer.Robust.Shared.Serialization.TypeSerializers.Interfaces.ITypeReader<Robust.Shared.Utility.SpriteSpecifier.Rsi,Robust.Shared.Serialization.Markdown.Mapping.MappingDataNode>.Read(ISerializationManager serializationManager, MappingDataNode node, IDependencyCollection dependencies, SerializationHookContext hookCtx, ISerializationContext context, InstantiationDelegate
1 instanceProvider) in /home/runner/work/space-station-14/space-station-14/RobustToolbox/Robust.Shared/Serialization/TypeSerializers/Implementations/SpriteSpecifierSerializer.cs:line 73 at Robust.Shared.Serialization.TypeSerializers.Implementations.SpriteSpecifierSerializer.Robust.Shared.Serialization.TypeSerializers.Interfaces.ITypeReader<Robust.Shared.Utility.SpriteSpecifier,Robust.Shared.Serialization.Markdown.Mapping.MappingDataNode>.Read(ISerializationManager serializationManager, MappingDataNode node, IDependencyCollection dependencies, SerializationHookContext hookCtx, ISerializationContext context, InstantiationDelegate1 instanceProvider) in /home/runner/work/space-station-14/space-station-14/RobustToolbox/Robust.Shared/Serialization/TypeSerializers/Implementations/SpriteSpecifierSerializer.cs:line 89 at lambda_method16671(Closure, DataNode, SerializationHookContext, ISerializationContext, InstantiationDelegate1) at Robust.Shared.Serialization.Manager.SerializationManager.Read[T](DataNode node, SerializationHookContext hookCtx, ISerializationContext context, InstantiationDelegate1 instanceProvider, Boolean notNullableOverride) in /home/runner/work/space-station-14/space-station-14/RobustToolbox/Robust.Shared/Serialization/Manager/SerializationManager.Reading.cs:line 54 at lambda_method2191(Closure, ConstructionPrototype&, MappingDataNode, SerializationHookContext, ISerializationContext) at lambda_method16747(Closure, DataNode, SerializationHookContext, ISerializationContext, InstantiationDelegate1) at Robust.Shared.Serialization.Manager.SerializationManager.Read[T](DataNode node, SerializationHookContext hookCtx, ISerializationContext context, InstantiationDelegate1 instanceProvider, Boolean notNullableOverride) in /home/runner/work/space-station-14/space-station-14/RobustToolbox/Robust.Shared/Serialization/Manager/SerializationManager.Reading.cs:line 54 at lambda_method16743(Closure, DataNode, SerializationHookContext, ISerializationContext) at Robust.Shared.Serialization.Manager.SerializationManager.Read(Type type, DataNode node, SerializationHookContext hookCtx, ISerializationContext context, Boolean notNullableOverride) in /home/runner/work/space-station-14/space-station-14/RobustToolbox/Robust.Shared/Serialization/Manager/SerializationManager.Reading.cs:line 158 at Robust.Shared.Prototypes.PrototypeManager.TryReadPrototype(Type kind, String id, MappingDataNode mapping, SerializationHookContext hookCtx) in /home/runner/work/space-station-14/space-station-14/RobustToolbox/Robust.Shared/Prototypes/PrototypeManager.cs:line 579 - Assistant
Ошибка, которую вы видите, связана с проблемами при десериализации YAML-файлов, используемых для определения прототипов объектов в игре, таких как "FangsAltar". Это может быть связано с некорректными данными в вашем YAML-документе. Ошибка говорит о проблеме с тем, что ожидается "state-node" как "valuenode", что может означать неправильное определение списка или свойств в дате, возможно, проблемы в разделе, определяющем визуализацию графического элемента.
Чтобы исправить эту ошибку, давайте проверим и откорректируем определение соответствующей сущности, возможно "FangsAltar", убедившись, что ее секция
spriteи связанные компоненты определены корректно.Возможное исправление
- type: entity id: AltarFangs parent: AltarHeaven name: клыкастый алтарь description: Алтарь с угрожающими клыками и мистической аурой. components: - type: Sprite sprite: Structures/Furniture/Altars/Cults/fangs.rsi state: default # Пример добавления конкретного состояния, возможно, оно отсутствует - type: Icon sprite: Structures/Furniture/Altars/Cults/fangs.rsi state: default - 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 state: default objectType: Structure placementMode: SnapgridCenter canRotate: false canBuildInImpassable: false conditions: - !type:TileNotBlockedОбратите внимание на корректность определения
stateв секцияхspriteиicon. Под "default" я подразумеваю, что это просто пример. Нужно подставить актуальное и корректное состояние дляfangs.rsi. Если конкретное состояние определено не так, как ожидается, это может вызвать проблемы с сериализацией, поэтому убедитесь, что используете правильные названия состояний.Если потребуется дальнейшая помощь, потребуется просмотреть фактические файлы графики или конфигурации изображений для точного состояния этого элемента.
- User
Когда тыкаю на крафт раковины в игре [ERRO] runtime: Caught exception in "DispatchEntityNetworkMessage(SystemMessage)" Robust.Shared.Prototypes.UnknownPrototypeException: Unknown StackPrototype prototype: Water at Robust.Shared.Prototypes.PrototypeManager.Index[T](String id) in /home/runner/work/space-station-14/space-station-14/RobustToolbox/Robust.Shared/Prototypes/PrototypeManager.cs:line 257 at Content.Shared.Construction.Steps.MaterialConstructionGraphStep.GenerateGuideEntry() in /home/runner/work/space-station-14/space-station-14/Content.Shared/Construction/Steps/MaterialConstructionGraphStep.cs:line 43 at Content.Server.Construction.ConstructionSystem.GetGuide(ConstructionPrototype construction) in /home/runner/work/space-station-14/space-station-14/Content.Server/Construction/ConstructionSystem.Guided.cs:line 247 at Content.Server.Construction.ConstructionSystem.OnGuideRequested(RequestConstructionGuide msg, EntitySessionEventArgs args) in /home/runner/work/space-station-14/space-station-14/Content.Server/Construction/ConstructionSystem.Guided.cs:line 31 at Robust.Shared.GameObjects.EventBusExt.HandlerWrapper
1.Invoke(EntitySessionMessage1 msg) in /home/runner/work/space-station-14/space-station-14/RobustToolbox/Robust.Shared/GameObjects/EventBusExt.cs:line 46 at Robust.Shared.GameObjects.EntityEventBus.<>c__DisplayClass4_0`1.b__0(Unit& ev) in /home/runner/work/space-station-14/space-station-14/RobustToolbox/Robust.Shared/GameObjects/EntityEventBus.Broadcast.cs:line 173 at Robust.Server.GameObjects.ServerEntityManager.b__9_0(Object _, Object systemMsg) in /home/runner/work/space-station-14/space-station-14/RobustToolbox/Robust.Server/GameObjects/ServerEntityManager.cs:line 53 at Robust.Server.GameObjects.ServerEntityManager.DispatchEntityNetworkMessage(MsgEntity message) in /home/runner/work/space-station-14/space-station-14/RobustToolbox/Robust.Server/GameObjects/ServerEntityManager.cs:line 265 - Assistant
Ошибка, которую вы видите, указывает на проблему с прототипом, который вы пытаетесь использовать для крафта. В данном случае, ошибка связана с использованием прототипа
Water.Причины проблемы
-
Отсутствующий прототип: Прототип с идентификатором
Waterне определен в вашей базе данных прототипов. Это часто случается, если вы пытаетесь использовать материал, который не был предварительно настроен. -
Неправильный идентификатор: Убедитесь, что вы используете правильный идентификатор прототипа для воды. В некоторых случаях идентификатор может отличаться от ожидаемого, например
water(с маленькой буквы) или что-то более специфичное.
Исправления
-
Проверка и добавление прототипа:
Проверьте, есть ли определение прототипа
Waterв ваших YAML-файлах прототипов. Если его нет, добавьте его. Вот пример того, как может выглядеть определение прототипа для воды:- type: entity id: Water name: вода description: Универсальный растворитель и источник жизни. components: - type: Serializable -
Проверка правильности идентификаторов:
Убедитесь, что граф конструирования вашей раковины использует правильный идентификатор прототипа для воды. Проверьте, чтобы этот идентификатор точно соответствовал определению в YAML-файле.
-
Корректировка использования в графе конструкций:
Убедитесь, что в графе конструирования (например, в секции, где используется
material: Water) используется правильный и существующий идентификатор. Если он отличается, заменитеWaterна правильный идентификатор, как показано в базе данных прототипов.
Если проблема все еще не решается, пересмотрите настройки вашей системы прототипов и убедитесь, что все необходимые файлы загружаются и читаются корректно при запуске игры.
-
- User
Ты не добавил строки крафта раковинам просто
- Assistant
Извините за упущение. Давайте добавим шаги крафта для раковин в их графы конструирования. Это обеспечит правильное представление и использование ресурсов при создании раковин в игре.
Обновленный YAML-документ с шагами крафта для раковин
# Конструирование раковины (Sink) - type: constructionGraph id: SinkGraph start: start graph: - node: start edges: - to: sinkEmpty steps: - material: Steel amount: 4 stackType: SheetSteel1 doAfter: 2 - node: sinkEmpty entity: SinkEmpty edges: - to: sinkWater steps: - material: Water amount: 500 doAfter: 1 - to: start completed: - !type:SpawnPrototype prototype: SheetSteel1 amount: 4 - !type:DeleteEntity {} steps: - tool: Prying doAfter: 3 - node: sinkWater entity: Sink edges: - to: start completed: - !type:SpawnPrototype prototype: SheetSteel1 amount: 4 - !type:DeleteEntity {} steps: - tool: Prying doAfter: 3 - type: construction name: раковина id: SinkConstruction graph: SinkGraph startNode: start targetNode: sinkWater category: construction-category-furniture description: Удобная раковина для ваших нужд. icon: sprite: Structures/Furniture/sink.rsi state: sink objectType: Structure placementMode: SnapgridCenter canBuildInImpassable: false conditions: - !type:TileNotBlocked - type: entity name: раковина id: SinkEmpty parent: BaseStructure description: "Краны были затянуты с максимальной силой, но, как видно, с них всё равно капает." suffix: Пустой components: - type: Sprite sprite: Structures/Furniture/sink.rsi layers: - state: sink - type: SolutionContainerManager solutions: drainBuffer: maxVol: 200 - type: entity name: раковина id: Sink parent: SinkEmpty description: "Крaны были затянуты с максимальной силой, но, как видно, с них всё равно капает." suffix: Вода components: - type: SolutionContainerManager solutions: drainBuffer: maxVol: 200 tank: reagents: - ReagentId: Water Quantity: 500 # Конструирование широкой раковины (SinkWide) - type: constructionGraph id: SinkWideGraph start: start graph: - node: start edges: - to: sinkWide steps: - material: Steel amount: 6 stackType: SheetSteel1 doAfter: 3 - node: sinkWide entity: SinkWide edges: - to: start completed: - !type:SpawnPrototype prototype: SheetSteel1 amount: 6 - !type:DeleteEntity {} steps: - tool: Prying doAfter: 5 - type: construction name: широкая раковина id: SinkWideConstruction graph: SinkWideGraph startNode: start targetNode: sinkWide category: construction-category-furniture description: Широкая раковина для больших нужд. icon: sprite: Structures/Furniture/sink.rsi state: sink_wide objectType: Structure placementMode: SnapgridCenter canBuildInImpassable: false conditions: - !type:TileNotBlocked - type: entity name: широкая раковина id: SinkWide parent: Sink description: "Краны были затянуты с максимальной силой, но, как видно, с них всё равно капает." suffix: Вода components: - type: Sprite sprite: Structures/Furniture/sink.rsi layers: - state: sink_wide - map: [ "enum.SolutionContainerLayers.Fill" ] state: sink_wide-fill-1 visible: false - type: SolutionContainerVisuals maxFillLevels: 1 fillBaseName: sink_wide-fill- solutionName: drainBuffer # Конструирование бесстебельной раковины (SinkStemless) - type: constructionGraph id: SinkStemlessGraph start: start graph: - node: start edges: - to: sinkStemlessEmpty steps: - material: Steel amount: 4 stackType: SheetSteel1 doAfter: 2 - node: sinkStemlessEmpty entity: SinkStemless edges: - to: sinkStemlessWater steps: - material: Water amount: 500 doAfter: 1 - to: start completed: - !type:SpawnPrototype prototype: SheetSteel1 amount: 4 - !type:DeleteEntity {} steps: - tool: Prying doAfter: 3 - node: sinkStemlessWater entity: SinkStemlessWater edges: - to: start completed: - !type:SpawnPrototype prototype: SheetSteel1 amount: 4 - !type:DeleteEntity {} steps: - tool: Prying doAfter: 3 - type: construction name: раковина id: SinkStemlessConstruction graph: SinkStemlessGraph startNode: start targetNode: sinkStemlessWater category: construction-category-furniture description: Бесстебельная раковина для экономии места. icon: sprite: Structures/Furniture/sink.rsi state: sink objectType: Structure placementMode: SnapgridCenter canBuildInImpassable: false conditions: - !type:TileNotBlocked - type: entity name: раковина id: SinkStemless parent: BaseStructure description: "Краны были затянуты с максимальной силой, но, как видно, с них всё равно капает." suffix: Пустой components: - type: Sprite sprite: Structures/Furniture/sink.rsi layers: - state: sink - map: [ "enum.SolutionContainerLayers.Fill" ] state: sink-fill-1 visible: false - type: entity name: раковина id: SinkStemlessWater parent: SinkStemless description: "Краны были затянуты с максимальной силой, но, как видно, с них всё равно капает." suffix: Вода components: - type: SolutionContainerManager solutions: drainBuffer: maxVol: 100 tank: reagents: - ReagentId: Water Quantity: 500Объяснение изменений:
-
Добавление
stackType: Для каждой цепочки крафта включена строкаstackType: SheetSteel1, чтобы указать на использование определенного материала. -
Порядок конструкций: Каждая конструкция начинается с использования определенных материалов, таких как
Steel, и выполняет шаги для достижения конечного состояния. Если у вас есть конкретные идентификаторы для воды (например,Water), убедитесь, что они зарегистрированы как прототипы в игре.
Если прототип воды (например,
Water) все еще вызывает проблемы, убедитесь, что он зарегистрирован в вашей системе, как предполагалось ранее. -
- User
Давай уберём из крафта раковину с водой. Только пустую будем создавать
- Assistant
Понятно, давайте изменим графы конструирования раковин, чтобы создавать только пустые версии, без фазы с водой. Ошибки, связанные с отсутствующими или неправильными прототипами для воды, больше не будут возникать:
Обновленный YAML-документ для создания только пустых раковин
# Конструирование пустой раковины (Sink) - type: constructionGraph id: SinkGraph start: start graph: - node: start edges: - to: sinkEmpty steps: - material: Steel amount: 4 stackType: SheetSteel1 doAfter: 2 - node: sinkEmpty entity: SinkEmpty edges: - to: start completed: - !type:SpawnPrototype prototype: SheetSteel1 amount: 4 - !type:DeleteEntity {} steps: - tool: Prying doAfter: 3 - type: construction name: раковина id: SinkConstruction graph: SinkGraph startNode: start targetNode: sinkEmpty category: construction-category-furniture description: Удобная пустая раковина для ваших нужд. icon: sprite: Structures/Furniture/sink.rsi state: sink objectType: Structure placementMode: SnapgridCenter canBuildInImpassable: false conditions: - !type:TileNotBlocked - type: entity name: раковина id: SinkEmpty parent: BaseStructure description: "Краны были затянуты с максимальной силой, но, как видно, с них всё равно капает." suffix: Пустой components: - type: Sprite sprite: Structures/Furniture/sink.rsi layers: - state: sink - type: SolutionContainerManager solutions: drainBuffer: maxVol: 200 # Конструирование пустой широкой раковины (SinkWide) - type: constructionGraph id: SinkWideGraph start: start graph: - node: start edges: - to: sinkWide steps: - material: Steel amount: 6 stackType: SheetSteel1 doAfter: 3 - node: sinkWide entity: SinkWide edges: - to: start completed: - !type:SpawnPrototype prototype: SheetSteel1 amount: 6 - !type:DeleteEntity {} steps: - tool: Prying doAfter: 5 - type: construction name: широкая раковина id: SinkWideConstruction graph: SinkWideGraph startNode: start targetNode: sinkWide category: construction-category-furniture description: Пустая широкая раковина для больших нужд. icon: sprite: Structures/Furniture/sink.rsi state: sink_wide objectType: Structure placementMode: SnapgridCenter canBuildInImpassable: false conditions: - !type:TileNotBlocked - type: entity name: широкая раковина id: SinkWide parent: SinkEmpty description: "Краны были затянуты с максимальной силой, но, как видно, с них всё равно капает." suffix: Пустой components: - type: Sprite sprite: Structures/Furniture/sink.rsi layers: - state: sink_wide - map: [ "enum.SolutionContainerLayers.Fill" ] state: sink_wide-fill-1 visible: false - type: SolutionContainerVisuals maxFillLevels: 1 fillBaseName: sink_wide-fill- solutionName: drainBuffer # Конструирование пустой бесстебельной раковины (SinkStemless) - type: constructionGraph id: SinkStemlessGraph start: start graph: - node: start edges: - to: sinkStemlessEmpty steps: - material: Steel amount: 4 stackType: SheetSteel1 doAfter: 2 - node: sinkStemlessEmpty entity: SinkStemless edges: - to: start completed: - !type:SpawnPrototype prototype: SheetSteel1 amount: 4 - !type:DeleteEntity {} steps: - tool: Prying doAfter: 3 - type: construction name: раковина id: SinkStemlessConstruction graph: SinkStemlessGraph startNode: start targetNode: sinkStemlessEmpty category: construction-category-furniture description: Пустая бесстебельная раковина для экономии места. icon: sprite: Structures/Furniture/sink.rsi state: sink objectType: Structure placementMode: SnapgridCenter canBuildInImpassable: false conditions: - !type:TileNotBlocked - type: entity name: раковина id: SinkStemless parent: BaseStructure description: "Краны были затянуты с максимальной силой, но, как видно, с них всё равно капает." suffix: Пустой components: - type: Sprite sprite: Structures/Furniture/sink.rsi layers: - state: sink - map: [ "enum.SolutionContainerLayers.Fill" ] state: sink-fill-1 visible: falseОбъяснение изменений:
- Все графы конструирования теперь создают только пустые версии раковин.
- Удалены шаги, связанные с наполнением воды, чтобы упростить процесс и избежать ошибок, связанных с неверным или отсутствующим прототипом воды.
Проверьте, чтобы все идентификаторы и материалы были правильно зарегистрированы в системе, чтобы избежать дальнейших ошибок.
- User
Тебе в прототип структуры нужно добавлять по такому примеру
- type: Construction graph: VenusBlueStatueGraph node: statueBlue
- Assistant
Извините за недочет. Обязательно добавим компонент
Constructionв раковину, чтобы указать текущий узел графа конструирования. Давайте исправим YAML-документ, добавив необходимые компонентыConstructionдля пустых раковин.Обновленный YAML-документ
# Конструирование пустой раковины (Sink) - type: constructionGraph id: SinkGraph start: start graph: - node: start edges: - to: sinkEmpty steps: - material: Steel amount: 4 stackType: SheetSteel1 doAfter: 2 - node: sinkEmpty entity: SinkEmpty edges: - to: start completed: - !type:SpawnPrototype prototype: SheetSteel1 amount: 4 - !type:DeleteEntity {} steps: - tool: Prying doAfter: 3 - type: construction name: раковина id: SinkConstruction graph: SinkGraph startNode: start targetNode: sinkEmpty category: construction-category-furniture description: Удобная пустая раковина для ваших нужд. icon: sprite: Structures/Furniture/sink.rsi state: sink objectType: Structure placementMode: SnapgridCenter canBuildInImpassable: false conditions: - !type:TileNotBlocked - type: entity name: раковина id: SinkEmpty parent: BaseStructure description: "Краны были затянуты с максимальной силой, но, как видно, с них всё равно капает." suffix: Пустой components: - type: Sprite sprite: Structures/Furniture/sink.rsi layers: - state: sink - type: SolutionContainerManager solutions: drainBuffer: maxVol: 200 - type: Construction graph: SinkGraph node: sinkEmpty # Конструирование пустой широкой раковины (SinkWide) - type: constructionGraph id: SinkWideGraph start: start graph: - node: start edges: - to: sinkWide steps: - material: Steel amount: 6 stackType: SheetSteel1 doAfter: 3 - node: sinkWide entity: SinkWide edges: - to: start completed: - !type:SpawnPrototype prototype: SheetSteel1 amount: 6 - !type:DeleteEntity {} steps: - tool: Prying doAfter: 5 - type: construction name: широкая раковина id: SinkWideConstruction graph: SinkWideGraph startNode: start targetNode: sinkWide category: construction-category-furniture description: Пустая широкая раковина для больших нужд. icon: sprite: Structures/Furniture/sink.rsi state: sink_wide objectType: Structure placementMode: SnapgridCenter canBuildInImpassable: false conditions: - !type:TileNotBlocked - type: entity name: широкая раковина id: SinkWide parent: SinkEmpty description: "Краны были затянуты с максимальной силой, но, как видно, с них всё равно капает." suffix: Пустой components: - type: Sprite sprite: Structures/Furniture/sink.rsi layers: - state: sink_wide - map: [ "enum.SolutionContainerLayers.Fill" ] state: sink_wide-fill-1 visible: false - type: SolutionContainerVisuals maxFillLevels: 1 fillBaseName: sink_wide-fill- solutionName: drainBuffer - type: Construction graph: SinkWideGraph node: sinkWide # Конструирование пустой бесстебельной раковины (SinkStemless) - type: constructionGraph id: SinkStemlessGraph start: start graph: - node: start edges: - to: sinkStemlessEmpty steps: - material: Steel amount: 4 stackType: SheetSteel1 doAfter: 2 - node: sinkStemlessEmpty entity: SinkStemless edges: - to: start completed: - !type:SpawnPrototype prototype: SheetSteel1 amount: 4 - !type:DeleteEntity {} steps: - tool: Prying doAfter: 3 - type: construction name: раковина id: SinkStemlessConstruction graph: SinkStemlessGraph startNode: start targetNode: sinkStemlessEmpty category: construction-category-furniture description: Пустая бесстебельная раковина для экономии места. icon: sprite: Structures/Furniture/sink.rsi state: sink objectType: Structure placementMode: SnapgridCenter canBuildInImpassable: false conditions: - !type:TileNotBlocked - type: entity name: раковина id: SinkStemless parent: BaseStructure description: "Краны были затянуты с максимальной силой, но, как видно, с них всё равно капает." suffix: Пустой components: - type: Sprite sprite: Structures/Furniture/sink.rsi layers: - state: sink - map: [ "enum.SolutionContainerLayers.Fill" ] state: sink-fill-1 visible: false - type: Construction graph: SinkStemlessGraph node: sinkStemlessEmptyИзменения:
- Добавлены компоненты
Constructionдля каждой версии раковины. Это позволяет определить, какой граф и узел используются для каждой из них. - Удалены упоминания воды в графах конструирования и связанных данных.
Теперь прототипы раковин должны корректно отображать, что они находятся в пустом состоянии, и не требуются дополнительные материалы, такие как вода, в процессе их создания.
- Добавлены компоненты
- User
Теперь сделай нормально дренаж
- Assistant
Давайте создадим правильную конфигурацию для дренажа с учетом вашей системы и примера. Мы добавим граф конструирования и необходимые компоненты.
Конфигурация для дренажа
# Конструирование дренажа (FloorDrain) - type: constructionGraph id: DrainGraph start: start graph: - node: start edges: - to: floorDrain steps: - material: Steel amount: 3 stackType: SheetSteel1 doAfter: 2 - node: floorDrain entity: FloorDrain edges: - to: start completed: - !type:SpawnPrototype prototype: SheetSteel1 amount: 3 - !type:DeleteEntity {} steps: - tool: Prying doAfter: 3 - type: construction name: дренаж id: DrainConstruction graph: DrainGraph startNode: start targetNode: floorDrain category: construction-category-furniture description: Сливает лужи вокруг в себя. Пригодится для опорожнения вёдер или поддержания чистоты в определённых помещениях. icon: sprite: Objects/Specific/Janitorial/drain.rsi state: icon objectType: Structure placementMode: SnapgridCenter canBuildInImpassable: false conditions: - !type:TileNotBlocked - type: entity id: FloorDrain name: дренаж description: Сливает лужи вокруг в себя. Пригодится для опорожнения вёдер или поддержания чистоты в определённых помещениях. placement: mode: SnapgridCenter components: - type: Sprite drawdepth: FloorObjects sprite: Objects/Specific/Janitorial/drain.rsi layers: - state: icon - map: [ "enum.SolutionContainerLayers.Fill" ] state: fill-1 visible: false - type: InteractionOutline - type: Clickable - type: Transform anchored: true - type: Physics bodyType: Static canCollide: false - type: AmbientSound enabled: false volume: -8 range: 8 sound: path: /Audio/Ambience/Objects/drain.ogg - type: Drain - type: DumpableSolution solution: drainBuffer - type: Appearance - type: SolutionContainerVisuals maxFillLevels: 1 fillBaseName: fill- solutionName: drainBuffer - type: SolutionContainerManager solutions: drainBuffer: maxVol: 1000 - type: DrainableSolution solution: drainBuffer - type: Damageable damageContainer: StructuralInorganic damageModifierSet: StructuralMetallic - type: Destructible thresholds: - trigger: !type:DamageTrigger damage: 200 behaviors: - !type:DoActsBehavior acts: [ "Destruction" ] - trigger: !type:DamageTrigger damage: 100 behaviors: - !type:DoActsBehavior acts: [ "Destruction" ] - !type:PlaySoundBehavior sound: collection: MetalBreak - type: Construction graph: DrainGraph node: floorDrainПояснения:
- Граф конструирования (
DrainGraph): описывает процесс сборки и разборки дренажа с использованием конкретных материалов и инструментов. - Конструкция (
DrainConstruction): описывает, как дренаж может быть построен, условия и категории, куда он относится. - Сущность
FloorDrain: включает все необходимые компоненты для дренажа, такие какSprite,Drain, и соответствующие параметры для взаимодействия и визуализации. - Компонент
Construction: добавлен к сущностиFloorDrain, чтобы указывать граф и узел, к которым он принадлежит.
Эта конфигурация должна обеспечить правильно работающий объект дренажа в рамках вашей системы. Убедитесь, что все используемые ссылки на ресурсы, такие как спрайты и звуки, действительно существуют в вашей игре.
- Граф конструирования (
- User
Знаешь в чём проблема? Раковины непроходимые и в них вода не появляется
- Assistant
Чтобы решить проблемы с непроходимостью раковин и отсутствием воды, нам нужно внимательнее рассмотреть компоненты, которые управляют этими аспектами. Давайте рассмотрим, что можно изменить и добавить, чтобы исправить эти проблемы.
Задачи:
-
Проходимость раковин: Для того чтобы сделать раковины проходимыми, мы должны убедиться, что у них отключено столкновение в компоненте
Physics. -
Появление воды: Возможно, проблема с визуализацией компонентов воды связана с отсутствующими настройками
SolutionContainerVisualsили неправильными уровнями заполнения.
Обновленный YAML для раковин
# Конструирование пустой раковины (Sink) - type: constructionGraph id: SinkGraph start: start graph: - node: start edges: - to: sinkEmpty steps: - material: Steel amount: 4 stackType: SheetSteel1 doAfter: 2 - node: sinkEmpty entity: SinkEmpty edges: - to: start completed: - !type:SpawnPrototype prototype: SheetSteel1 amount: 4 - !type:DeleteEntity {} steps: - tool: Prying doAfter: 3 - type: construction name: раковина id: SinkConstruction graph: SinkGraph startNode: start targetNode: sinkEmpty category: construction-category-furniture description: Удобная пустая раковина для ваших нужд. icon: sprite: Structures/Furniture/sink.rsi state: sink objectType: Structure placementMode: SnapgridCenter canBuildInImpassable: false conditions: - !type:TileNotBlocked - type: entity name: раковина id: SinkEmpty parent: BaseStructure description: "Краны были затянуты с максимальной силой, но, как видно, с них всё равно капает." suffix: Пустой components: - type: Sprite sprite: Structures/Furniture/sink.rsi layers: - state: sink - map: [ "enum.SolutionContainerLayers.Fill" ] state: sink-fill-1 visible: true - type: SolutionContainerManager solutions: drainBuffer: maxVol: 200 - type: SolutionContainerVisuals maxFillLevels: 1 fillBaseName: sink-fill- solutionName: drainBuffer - type: Physics bodyType: Static canCollide: false - type: Construction graph: SinkGraph node: sinkEmpty # Конструирование пустой широкой раковины (SinkWide) - type: constructionGraph id: SinkWideGraph start: start graph: - node: start edges: - to: sinkWide steps: - material: Steel amount: 6 stackType: SheetSteel1 doAfter: 3 - node: sinkWide entity: SinkWide edges: - to: start completed: - !type:SpawnPrototype prototype: SheetSteel1 amount: 6 - !type:DeleteEntity {} steps: - tool: Prying doAfter: 5 - type: construction name: широкая раковина id: SinkWideConstruction graph: SinkWideGraph startNode: start targetNode: sinkWide category: construction-category-furniture description: Пустая широкая раковина для больших нужд. icon: sprite: Structures/Furniture/sink.rsi state: sink_wide objectType: Structure placementMode: SnapgridCenter canBuildInImpassable: false conditions: - !type:TileNotBlocked - type: entity name: широкая раковина id: SinkWide parent: SinkEmpty description: "Краны были затянуты с максимальной силой, но, как видно, с них всё равно капает." suffix: Пустой components: - type: Sprite sprite: Structures/Furniture/sink.rsi layers: - state: sink_wide - map: [ "enum.SolutionContainerLayers.Fill" ] state: sink_wide-fill-1 visible: true - type: SolutionContainerVisuals maxFillLevels: 1 fillBaseName: sink_wide-fill- solutionName: drainBuffer - type: Physics bodyType: Static canCollide: false - type: Construction graph: SinkWideGraph node: sinkWide # Конструирование пустой бесстебельной раковины (SinkStemless) - type: constructionGraph id: SinkStemlessGraph start: start graph: - node: start edges: - to: sinkStemlessEmpty steps: - material: Steel amount: 4 stackType: SheetSteel1 doAfter: 2 - node: sinkStemlessEmpty entity: SinkStemless edges: - to: start completed: - !type:SpawnPrototype prototype: SheetSteel1 amount: 4 - !type:DeleteEntity {} steps: - tool: Prying doAfter: 3 - type: construction name: раковина id: SinkStemlessConstruction graph: SinkStemlessGraph startNode: start targetNode: sinkStemlessEmpty category: construction-category-furniture description: Пустая бесстебельная раковина для экономии места. icon: sprite: Structures/Furniture/sink.rsi state: sink objectType: Structure placementMode: SnapgridCenter canBuildInImpassable: false conditions: - !type:TileNotBlocked - type: entity name: раковина id: SinkStemless parent: BaseStructure description: "Краны были затянуты с максимальной силой, но, как видно, с них всё равно капает." suffix: Пустой components: - type: Sprite sprite: Structures/Furniture/sink.rsi layers: - state: sink - map: [ "enum.SolutionContainerLayers.Fill" ] state: sink-fill-1 visible: true - type: SolutionContainerManager solutions: drainBuffer: maxVol: 200 - type: SolutionContainerVisuals maxFillLevels: 1 fillBaseName: sink-fill- solutionName: drainBuffer - type: Physics bodyType: Static canCollide: false - type: Construction graph: SinkStemlessGraph node: sinkStemlessEmptyИзменения:
- Проходимость: Убедились, что
canCollide: falseв компонентеPhysics, чтобы сделать раковины проходимыми. - Визуализация воды: Убедились, что
SolutionContainerVisualsнастроены правильно для отображения заполнения. Указаны уровни заполнения, и они видны (visible: true).
Теперь раковины должны быть проходимыми, и проблема с отображением уровня воды должна быть устранена. Если вода все равно не появляется, убедитесь, что все используемые спрайты и слои присутствуют и правильно связаны с аспектами визуализации в игре.
-
- User
Их убирать не ломом, а через сварку, ну и в рецепте будут использоваться не сталь, а пласталь, вот она ниже будет. А в дренаже золото, штук 5-6, на твоё усмотрение
-
type: stack id: Plasteel name: plasteel icon: { sprite: /Textures/Objects/Materials/Sheets/metal.rsi, state: plasteel } spawn: SheetPlasteel1 maxCount: 30
-
type: stack id: Gold name: gold icon: { sprite: "/Textures/Objects/Materials/ingots.rsi", state: gold } spawn: IngotGold1 maxCount: 30
-
- Assistant
Давайте обновим YAML-документ для раковин и дренажа с учетом ваших изменений. Убедимся, что в крафте используются соответствующие материалы (пласталь для раковин и золото для дренажа), а также изменим инструменты для разборки раковин.
Обновленный YAML-документ
Стек для материалов
- type: stack id: Plasteel name: плaсталь icon: { sprite: /Textures/Objects/Materials/Sheets/metal.rsi, state: plasteel } spawn: SheetPlasteel1 maxCount: 30 - type: stack id: Gold name: золото icon: { sprite: "/Textures/Objects/Materials/ingots.rsi", state: gold } spawn: IngotGold1 maxCount: 30Конструирование и настройки раковин
# Конструирование пустой раковины (Sink) - type: constructionGraph id: SinkGraph start: start graph: - node: start edges: - to: sinkEmpty steps: - material: Plasteel amount: 4 stackType: SheetPlasteel1 doAfter: 2 - node: sinkEmpty entity: SinkEmpty edges: - to: start completed: - !type:SpawnPrototype prototype: SheetPlasteel1 amount: 4 - !type:DeleteEntity {} steps: - tool: Welding doAfter: 3 - type: construction name: раковина id: SinkConstruction graph: SinkGraph startNode: start targetNode: sinkEmpty category: construction-category-furniture description: Удобная пустая раковина для ваших нужд. icon: sprite: Structures/Furniture/sink.rsi state: sink objectType: Structure placementMode: SnapgridCenter canBuildInImpassable: false conditions: - !type:TileNotBlocked - type: entity name: раковина id: SinkEmpty parent: BaseStructure description: "Краны были затянуты с максимальной силой, но, как видно, с них всё равно капает." suffix: Пустой components: - type: Sprite sprite: Structures/Furniture/sink.rsi layers: - state: sink - type: SolutionContainerManager solutions: drainBuffer: maxVol: 200 - type: SolutionContainerVisuals maxFillLevels: 1 fillBaseName: sink-fill- solutionName: drainBuffer - type: Physics bodyType: Static canCollide: false - type: Construction graph: SinkGraph node: sinkEmpty # Конструирование пустой широкой раковины (SinkWide) - type: constructionGraph id: SinkWideGraph start: start graph: - node: start edges: - to: sinkWide steps: - material: Plasteel amount: 6 stackType: SheetPlasteel1 doAfter: 3 - node: sinkWide entity: SinkWide edges: - to: start completed: - !type:SpawnPrototype prototype: SheetPlasteel1 amount: 6 - !type:DeleteEntity {} steps: - tool: Welding doAfter: 5 - type: construction name: широкая раковина id: SinkWideConstruction graph: SinkWideGraph startNode: start targetNode: sinkWide category: construction-category-furniture description: Пустая широкая раковина для больших нужд. icon: sprite: Structures/Furniture/sink.rsi state: sink_wide objectType: Structure placementMode: SnapgridCenter canBuildInImpassable: false conditions: - !type:TileNotBlocked - type: entity name: широкая раковина id: SinkWide parent: SinkEmpty description: "Краны были затянуты с максимальной силой, но, как видно, с них всё равно капает." suffix: Пустой components: - type: Sprite sprite: Structures/Furniture/sink.rsi layers: - state: sink_wide - type: SolutionContainerVisuals maxFillLevels: 1 fillBaseName: sink_wide-fill- solutionName: drainBuffer - type: Physics bodyType: Static canCollide: false - type: Construction graph: SinkWideGraph node: sinkWide # Конструирование пустой бесстебельной раковины (SinkStemless) - type: constructionGraph id: SinkStemlessGraph start: start graph: - node: start edges: - to: sinkStemlessEmpty steps: - material: Plasteel amount: 4 stackType: SheetPlasteel1 doAfter: 2 - node: sinkStemlessEmpty entity: SinkStemless edges: - to: start completed: - !type:SpawnPrototype prototype: SheetPlasteel1 amount: 4 - !type:DeleteEntity {} steps: - tool: Welding doAfter: 3 - type: construction name: раковина id: SinkStemlessConstruction graph: SinkStemlessGraph startNode: start targetNode: sinkStemlessEmpty category: construction-category-furniture description: Пустая бесстебельная раковина для экономии места. icon: sprite: Structures/Furniture/sink.rsi state: sink objectType: Structure placementMode: SnapgridCenter canBuildInImpassable: false conditions: - !type:TileNotBlocked - type: entity name: раковина id: SinkStemless parent: BaseStructure description: "Краны были затянуты с максимальной силой, но, как видно, с них всё равно капает." suffix: Пустой components: - type: Sprite sprite: Structures/Furniture/sink.rsi layers: - state: sink - type: SolutionContainerManager solutions: drainBuffer: maxVol: 200 - type: SolutionContainerVisuals maxFillLevels: 1 fillBaseName: sink-fill- solutionName: drainBuffer - type: Physics bodyType: Static canCollide: false - type: Construction graph: SinkStemlessGraph node: sinkStemlessEmptyКонструирование дренажа
# Конструирование дренажа (FloorDrain) - type: constructionGraph id: DrainGraph start: start graph: - node: start edges: - to: floorDrain steps: - material: Gold amount: 5 stackType: IngotGold1 doAfter: 3 - node: floorDrain entity: FloorDrain edges: - to: start completed: - !type:SpawnPrototype prototype: IngotGold1 amount: 5 - !type:DeleteEntity {} steps: - tool: Prying doAfter: 3 - type: construction name: дренаж id: DrainConstruction graph: DrainGraph startNode: start targetNode: floorDrain category: construction-category-furniture description: Сливает лужи вокруг в себя. Пригодится для опорожнения вёдер или поддержания чистоты в определённых помещениях. icon: sprite: Objects/Specific/Janitorial/drain.rsi state: icon objectType: Structure placementMode: SnapgridCenter canBuildInImpassable: false conditions: - !type:TileNotBlocked - type: entity id: FloorDrain name: дренаж description: Сливает лужи вокруг в себя. Пригодится для опорожнения вёдер или поддержания чистоты в определённых помещениях. placement: mode: SnapgridCenter components: - type: Sprite drawdepth: FloorObjects sprite: Objects/Specific/Janitorial/drain.rsi layers: - state: icon - type: InteractionOutline - type: Clickable - type: Transform anchored: true - type: Physics bodyType: Static canCollide: false - type: AmbientSound enabled: false volume: -8 range: 8 sound: path: /Audio/Ambience/Objects/drain.ogg - type: Drain - type: DumpableSolution solution: drainBuffer - type: Appearance - type: SolutionContainerVisuals maxFillLevels: 1 fillBaseName: fill- solutionName: drainBuffer - type: SolutionContainerManager solutions: drainBuffer: maxVol: 1000 - type: DrainableSolution solution: drainBuffer - type: Damageable damageContainer: StructuralInorganic damageModifierSet: StructuralMetallic - type: Destructible thresholds: - trigger: !type:DamageTrigger damage: 200 behaviors: - !type:DoActsBehavior acts: [ "Destruction" ] - trigger: !type:DamageTrigger damage: 100 behaviors: - !type:DoActsBehavior acts: [ "Destruction" ] - !type:PlaySoundBehavior sound: collection: MetalBreak - type: Construction graph: DrainGraph node: floorDrainИзменения:
- Материалы: Раковины теперь используют пласталь, а дренаж — золото.
- Инструмент для разборки: Для раковин теперь используется сварка (Welding), а не лом.
- Обновлен
stackType: Теперь в соответствие с материаламиSheetPlasteel1для пластали иIngotGold1для золота.
Теперь это должно соответствовать вашим требованиям с учетом использования правильных материалов и инструментов для крафта и разборки.