From e88b2467ca36c25c15095b7e7e0357c55ed581e2 Mon Sep 17 00:00:00 2001 From: Token Date: Fri, 12 Apr 2024 11:58:02 +0500 Subject: [PATCH] NoticeBoard is craftable now (#26847) * 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> --- .../Structures/Wallmounts/noticeboard.yml | 8 ++++++ .../Graphs/furniture/noticeboard.yml | 26 +++++++++++++++++++ .../Recipes/Construction/furniture.yml | 18 +++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 Resources/Prototypes/Recipes/Construction/Graphs/furniture/noticeboard.yml diff --git a/Resources/Prototypes/Entities/Structures/Wallmounts/noticeboard.yml b/Resources/Prototypes/Entities/Structures/Wallmounts/noticeboard.yml index 4a442d0542..421ab93be9 100644 --- a/Resources/Prototypes/Entities/Structures/Wallmounts/noticeboard.yml +++ b/Resources/Prototypes/Entities/Structures/Wallmounts/noticeboard.yml @@ -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 index 0000000000..324745cbb9 --- /dev/null +++ b/Resources/Prototypes/Recipes/Construction/Graphs/furniture/noticeboard.yml @@ -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 diff --git a/Resources/Prototypes/Recipes/Construction/furniture.yml b/Resources/Prototypes/Recipes/Construction/furniture.yml index a5cf53107d..5f7ec9c92d 100644 --- a/Resources/Prototypes/Recipes/Construction/furniture.yml +++ b/Resources/Prototypes/Recipes/Construction/furniture.yml @@ -884,3 +884,21 @@ 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 -- 2.51.2