diff --git a/Resources/Prototypes/Entities/Structures/Furniture/chairs.yml b/Resources/Prototypes/Entities/Structures/Furniture/chairs.yml index 94c003589c..55f42fd6df 100644 --- a/Resources/Prototypes/Entities/Structures/Furniture/chairs.yml +++ b/Resources/Prototypes/Entities/Structures/Furniture/chairs.yml @@ -215,3 +215,30 @@ path: /Audio/Voice/Human/womanlaugh.ogg graph: RitualSeat node: chairCursed + +- type: entity + parent: SeatBase + id: ChairFolding + name: folding chair + description: If you carry six of these you become the coolest kid at church. + components: + - type: Rotatable + - type: Sprite + sprite: Structures/Furniture/folding_chair.rsi + layers: + - state: folding + map: ["enum.FoldableVisualLayers.Base"] + - type: Item + size: 50 + - type: Foldable + - type: Appearance + visuals: + - type: FoldableVisualizer + key: folding + - type: MeleeWeapon + damage: + types: + Blunt: 15 + - type: Construction + graph: Seat + node: chairFolding diff --git a/Resources/Prototypes/Recipes/Construction/Graphs/furniture/seats.yml b/Resources/Prototypes/Recipes/Construction/Graphs/furniture/seats.yml index 9a1fc9c71a..f4042dee08 100644 --- a/Resources/Prototypes/Recipes/Construction/Graphs/furniture/seats.yml +++ b/Resources/Prototypes/Recipes/Construction/Graphs/furniture/seats.yml @@ -46,6 +46,13 @@ - material: WoodPlank amount: 3 doAfter: 1 + - to: chairFolding + steps: + - material: Plastic + amount: 1 + doAfter: 1 + - material: MetalRod + amount: 2 - node: chair entity: Chair @@ -139,3 +146,19 @@ steps: - tool: Screwing doAfter: 1 + + - node: chairFolding + entity: ChairFolding + edges: + - to: start + completed: + - !type:SpawnPrototype + prototype: SheetPlastic1 + amount: 1 + - !type:SpawnPrototype + prototype: PartRodMetal1 + amount: 2 + steps: + - tool: Screwing + doAfter: 1 + diff --git a/Resources/Prototypes/Recipes/Construction/furniture.yml b/Resources/Prototypes/Recipes/Construction/furniture.yml index d3427fc18d..ef2df65598 100644 --- a/Resources/Prototypes/Recipes/Construction/furniture.yml +++ b/Resources/Prototypes/Recipes/Construction/furniture.yml @@ -152,6 +152,23 @@ conditions: - !type:TileNotBlocked +- type: construction + name: folding chair + id: ChairFolding + graph: Seat + startNode: start + targetNode: chairFolding + category: construction-category-furniture + description: An easy to carry chair. + icon: + sprite: Structures/Furniture/folding_chair.rsi + state: folding + objectType: Structure + placementMode: SnapgridCenter + canBuildInImpassable: false + conditions: + - !type:TileNotBlocked + #tables - type: construction name: steel table diff --git a/Resources/Textures/Structures/Furniture/folding_chair.rsi/folding.png b/Resources/Textures/Structures/Furniture/folding_chair.rsi/folding.png new file mode 100644 index 0000000000..c9e1c863ba Binary files /dev/null and b/Resources/Textures/Structures/Furniture/folding_chair.rsi/folding.png differ diff --git a/Resources/Textures/Structures/Furniture/folding_chair.rsi/folding_folded.png b/Resources/Textures/Structures/Furniture/folding_chair.rsi/folding_folded.png new file mode 100644 index 0000000000..e891df4a67 Binary files /dev/null and b/Resources/Textures/Structures/Furniture/folding_chair.rsi/folding_folded.png differ diff --git a/Resources/Textures/Structures/Furniture/folding_chair.rsi/inhand-left.png b/Resources/Textures/Structures/Furniture/folding_chair.rsi/inhand-left.png new file mode 100644 index 0000000000..2eaefeb272 Binary files /dev/null and b/Resources/Textures/Structures/Furniture/folding_chair.rsi/inhand-left.png differ diff --git a/Resources/Textures/Structures/Furniture/folding_chair.rsi/inhand-right.png b/Resources/Textures/Structures/Furniture/folding_chair.rsi/inhand-right.png new file mode 100644 index 0000000000..a6eb4d73b2 Binary files /dev/null and b/Resources/Textures/Structures/Furniture/folding_chair.rsi/inhand-right.png differ diff --git a/Resources/Textures/Structures/Furniture/folding_chair.rsi/meta.json b/Resources/Textures/Structures/Furniture/folding_chair.rsi/meta.json new file mode 100644 index 0000000000..aa1af159cb --- /dev/null +++ b/Resources/Textures/Structures/Furniture/folding_chair.rsi/meta.json @@ -0,0 +1,26 @@ +{ + "version": 1, + "license": "CC-BY-SA-3.0", + "copyright": "Taken from Beestation at commit https://github.com/BeeStation/BeeStation-Hornet/commit/9a035f9365bcb74ac40fbe79c74c43c4c80cc1e4", + "size": { + "x": 32, + "y": 32 + }, + "states": [ + { + "name": "folding", + "directions": 4 + }, + { + "name": "folding_folded" + }, + { + "name": "inhand-left", + "directions": 4 + }, + { + "name": "inhand-right", + "directions": 4 + } + ] +}