From 3aa3d57d8dbbb390f66fe008a074a96a85eff523 Mon Sep 17 00:00:00 2001 From: Ledniky Date: Tue, 27 Jan 2026 15:23:36 +0300 Subject: [PATCH] =?UTF-8?q?=D1=83=D0=B1=D1=80=D0=B0=D0=BB=20=D0=B8=D0=B7?= =?UTF-8?q?=20=D0=BC=D0=B5=D0=BD=D1=8E=20=D0=BA=D1=80=D0=B0=D1=84=D1=82?= =?UTF-8?q?=D0=B0=20=D0=BA=D1=80=D0=B0=D1=84=D1=82=20=D0=B7=D0=B0=D0=B3?= =?UTF-8?q?=D0=BE=D1=82=D0=BE=D0=B2=D0=BA=D0=B8=20=D0=BA=D0=BE=D1=81=D1=82?= =?UTF-8?q?=D1=80=D0=B0,=20=D0=B7=D0=B0=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=B5=D0=B3=20=D0=BE=D0=BD=D0=B0=20=D0=BA=D1=80=D0=B0=D1=84?= =?UTF-8?q?=D1=82=20=D1=81=D0=B0=D0=BC=D0=BE=D0=B3=D0=BE=20=D0=BA=D0=BE?= =?UTF-8?q?=D1=81=D1=82=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Prototypes/Imperial/Medieval/crafts.yml | 88 +++++++++---------- 1 file changed, 42 insertions(+), 46 deletions(-) diff --git a/Resources/Prototypes/Imperial/Medieval/crafts.yml b/Resources/Prototypes/Imperial/Medieval/crafts.yml index 1b1e9bd21d..52933151d5 100644 --- a/Resources/Prototypes/Imperial/Medieval/crafts.yml +++ b/Resources/Prototypes/Imperial/Medieval/crafts.yml @@ -106,6 +106,48 @@ #- type: Damageable #- type: Anchorable +- type: constructionGraph + id: MedievalCampfireConstruction + start: start + graph: + - node: start + edges: + - to: Built + completed: + - !type:SnapToGrid {} # Привязываем к сетке после завершения + steps: + - material: WoodPlank # Требуемый материал + amount: 18 # Количество + doAfter: 7 # Время строительства (секунды) + - node: Built + entity: MedievalCampfire # Что спавнится после строительства + edges: + - to: start # Обратный путь - разборка + completed: + - !type:SpawnPrototype # Возврат материалов при разборке + prototype: MaterialWoodPlank + amount: 12 + steps: + - tool: Prying # Требуемый инструмент + doAfter: 3 # Время разборки (секунды) + +- type: construction + id: MedievalCampfireConstruction + name: костёр + description: Самое то, когда хотите поесть шашлыки вдали от города. + graph: MedievalCampfireConstruction # Ссылка на граф выше + startNode: start + targetNode: Built + category: construction-category-furniture # Категория в меню + icon: + sprite: Imperial/Medieval/Lathe/campfire.rsi # Иконка в меню + state: mw_unlit # Состояние спрайта + objectType: Structure + placementMode: SnapgridCenter # Размещение по центру тайла + canBuildInImpassable: false # Нельзя строить в непроходимом + conditions: + - !type:TileNotBlocked "" # Условие: тайл не заблокирован + - type: entity name: MedievalCampfireCraft description: MedievalCampfireCraft @@ -125,52 +167,6 @@ graph: MedievalCampfireCraft node: MedievalCampfireCraft -- type: construction - id: MedievalCampfireCraft - name: заготовка костра - description: Самое то, когда хотите поесть шашлыки в дали от города. - graph: MedievalCampfireCraft - startNode: start - targetNode: MedievalCampfireCraft - category: construction-category-furniture - icon: - sprite: Imperial/Medieval/CraftBosses/stockade.rsi - state: icon - objectType: Structure - placementMode: SnapgridCenter - canBuildInImpassable: false - conditions: - - !type:TileNotBlocked "" - -- type: constructionGraph - id: MedievalCampfireCraft - start: start - graph: - - node: start - actions: - - !type:DestroyEntity {} - edges: - - to: MedievalCampfireCraft - completed: - - !type:SnapToGrid {} - steps: - - material: WoodPlank - amount: 18 - doAfter: 3 - - node: MedievalCampfireCraft - entity: MedievalCampfireCraft - edges: - - to: start - completed: - - !type:SpawnPrototype - prototype: MaterialWoodPlank - amount: 12 - steps: - - tool: Prying - doAfter: 1 - #- type: Damageable - #- type: Anchorable - - type: construction id: MedievalhydroponicsSoilCraft name: заготовка грядки