]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
NoticeBoard is craftable now (#26847)
authorToken <esil.bektay@yandex.com>
Fri, 12 Apr 2024 06:58:02 +0000 (11:58 +0500)
committerGitHub <noreply@github.com>
Fri, 12 Apr 2024 06:58:02 +0000 (16:58 +1000)
* NoticeBoard is craftable now

* Fix notice board to proper name capitalization

* Fix notice board proper name in description

* Update Resources/Prototypes/Recipes/Construction/furniture.yml

---------

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Resources/Prototypes/Entities/Structures/Wallmounts/noticeboard.yml
Resources/Prototypes/Recipes/Construction/Graphs/furniture/noticeboard.yml [new file with mode: 0644]
Resources/Prototypes/Recipes/Construction/furniture.yml

index 4a442d0542fe1e574f7fb60c9d06a051658a4c63..421ab93be97f9e41633a108a8d451a19a814588e 100644 (file)
@@ -2,6 +2,8 @@
   id: NoticeBoard
   name: notice board
   description: Is there a job for a witcher?
+  placement:
+    mode: SnapgridCenter
   components:
   - type: WallMount
   - type: Sprite
@@ -53,3 +55,9 @@
   - type: ContainerContainer
     containers:
       storagebase: !type:Container
+  - type: Tag
+    tags:
+    - Wooden
+  - type: Construction
+    graph: NoticeBoard
+    node: noticeBoard
diff --git a/Resources/Prototypes/Recipes/Construction/Graphs/furniture/noticeboard.yml b/Resources/Prototypes/Recipes/Construction/Graphs/furniture/noticeboard.yml
new file mode 100644 (file)
index 0000000..324745c
--- /dev/null
@@ -0,0 +1,26 @@
+- type: constructionGraph
+  id: NoticeBoard
+  start: start
+  graph:
+    - node: start
+      actions:
+        - !type:DestroyEntity {}
+      edges:
+        - to: noticeBoard
+          completed:
+            - !type:SnapToGrid { }
+          steps:
+            - material: WoodPlank
+              amount: 3
+              doAfter: 2
+    - node: noticeBoard
+      entity: NoticeBoard
+      edges:
+        - to: start
+          completed:
+            - !type:SpawnPrototype
+              prototype: MaterialWoodPlank
+              amount: 3
+          steps:
+            - tool: Prying
+              doAfter: 3
index a5cf53107dbe14458ca5d4283555271a52e5341c..5f7ec9c92d815caceba901a17ac2f49f5d36a339 100644 (file)
   canBuildInImpassable: false
   conditions:
     - !type:TileNotBlocked
+
+- type: construction
+  id: NoticeBoard
+  name: notice board
+  description: Wooden notice board, can store paper inside itself.
+  graph: NoticeBoard
+  startNode: start
+  targetNode: noticeBoard
+  category: construction-category-furniture
+  icon:
+    sprite: Structures/Wallmounts/noticeboard.rsi
+    state: noticeboard
+  objectType: Structure
+  placementMode: SnapgridCenter
+  canRotate: true
+  canBuildInImpassable: false
+  conditions:
+    - !type:TileNotBlocked