From a55baf6c9bcd1afddc7746d8cd62072390d0139f Mon Sep 17 00:00:00 2001 From: SketchiiArtist <159343437+SketchiiArtist@users.noreply.github.com> Date: Sun, 27 Jul 2025 11:54:40 -0400 Subject: [PATCH] Added Stools (#1577) * Added Stools * Updated Textures, now craftable. * Update chairs.yml --------- Co-authored-by: Red <96445749+TheShuEd@users.noreply.github.com> --- .../Entities/Structures/Furniture/chairs.yml | 80 ++++++++++++++++++ .../Construction/Graphs/Furniture/seats.yml | 23 +++++ .../_CP14/Recipes/Construction/furniture.yml | 28 +++++- .../Structures/Furniture/chairs.rsi/meta.json | 10 ++- .../Furniture/chairs.rsi/stoolBirch.png | Bin 0 -> 632 bytes .../Furniture/chairs.rsi/stoolWooden.png | Bin 0 -> 563 bytes 6 files changed, 139 insertions(+), 2 deletions(-) create mode 100644 Resources/Textures/_CP14/Structures/Furniture/chairs.rsi/stoolBirch.png create mode 100644 Resources/Textures/_CP14/Structures/Furniture/chairs.rsi/stoolWooden.png diff --git a/Resources/Prototypes/_CP14/Entities/Structures/Furniture/chairs.yml b/Resources/Prototypes/_CP14/Entities/Structures/Furniture/chairs.yml index 5de87e3fb4..0706ec0aad 100644 --- a/Resources/Prototypes/_CP14/Entities/Structures/Furniture/chairs.yml +++ b/Resources/Prototypes/_CP14/Entities/Structures/Furniture/chairs.yml @@ -79,3 +79,83 @@ CP14BirchWoodenPlanks1: min: 1 max: 1 + +- type: entity + name: wooden stool + id: CP14StoolWooden + parent: CP14ChairWooden + components: + - type: Sprite + sprite: _CP14/Structures/Furniture/chairs.rsi + state: stoolWooden + - type: Construction + graph: CP14Stool + node: CP14StoolWooden + - type: Rotatable + rotateWhileAnchored: true + - type: Destructible + thresholds: + - trigger: + !type:DamageTypeTrigger + damageType: Heat + damage: 20 + behaviors: + - !type:DoActsBehavior + acts: [ "Destruction" ] + - !type:PlaySoundBehavior + sound: + collection: WoodDestroy + - trigger: + !type:DamageTrigger + damage: 30 + behaviors: + - !type:DoActsBehavior + acts: [ "Destruction" ] + - !type:PlaySoundBehavior + sound: + collection: WoodDestroy + - !type:SpawnEntitiesBehavior + spawn: + CP14WoodenPlanks1: + min: 1 + max: 1 + +- type: entity + name: wooden stool + id: CP14StoolBirch + parent: CP14StoolWooden + components: + - type: Sprite + sprite: _CP14/Structures/Furniture/chairs.rsi + state: stoolBirch + - type: Construction + graph: CP14Stool + node: CP14StoolBirch + - type: Rotatable + rotateWhileAnchored: true + - type: Destructible + thresholds: + - trigger: + !type:DamageTypeTrigger + damageType: Heat + damage: 20 + behaviors: + - !type:DoActsBehavior + acts: [ "Destruction" ] + - !type:PlaySoundBehavior + sound: + collection: WoodDestroy + - trigger: + !type:DamageTrigger + damage: 30 + behaviors: + - !type:DoActsBehavior + acts: [ "Destruction" ] + - !type:PlaySoundBehavior + sound: + collection: WoodDestroy + - !type:SpawnEntitiesBehavior + spawn: + CP14BirchWoodenPlanks1: + min: 1 + max: 1 diff --git a/Resources/Prototypes/_CP14/Recipes/Construction/Graphs/Furniture/seats.yml b/Resources/Prototypes/_CP14/Recipes/Construction/Graphs/Furniture/seats.yml index d7552dce7f..cd165de58a 100644 --- a/Resources/Prototypes/_CP14/Recipes/Construction/Graphs/Furniture/seats.yml +++ b/Resources/Prototypes/_CP14/Recipes/Construction/Graphs/Furniture/seats.yml @@ -43,3 +43,26 @@ entity: CP14BenchWood - node: CP14BenchWoodBirch entity: CP14BenchWoodBirch + +- type: constructionGraph + id: CP14Stool + start: start + graph: + - node: start + actions: + - !type:DestroyEntity {} + edges: + - to: CP14StoolWooden + steps: + - material: CP14WoodenPlanks + amount: 2 + doAfter: 1 + - to: CP14StoolBirch + steps: + - material: CP14BirchWoodenPlanks + amount: 2 + doAfter: 1 + - node: CP14StoolWooden + entity: CP14StoolWooden + - node: CP14StoolBirch + entity: CP14StoolBirch diff --git a/Resources/Prototypes/_CP14/Recipes/Construction/furniture.yml b/Resources/Prototypes/_CP14/Recipes/Construction/furniture.yml index 68ff3b4bea..061344deea 100644 --- a/Resources/Prototypes/_CP14/Recipes/Construction/furniture.yml +++ b/Resources/Prototypes/_CP14/Recipes/Construction/furniture.yml @@ -24,6 +24,32 @@ conditions: - !type:TileNotBlocked +- type: construction + crystallPunkAllowed: true + id: CP14StoolWooden + graph: CP14Stool + startNode: start + targetNode: CP14StoolWooden + category: construction-category-furniture + objectType: Structure + placementMode: SnapgridCenter + canBuildInImpassable: false + conditions: + - !type:TileNotBlocked + +- type: construction + crystallPunkAllowed: true + id: CP14StoolBirch + graph: CP14Stool + startNode: start + targetNode: CP14StoolBirch + category: construction-category-furniture + objectType: Structure + placementMode: SnapgridCenter + canBuildInImpassable: false + conditions: + - !type:TileNotBlocked + - type: construction crystallPunkAllowed: true id: CP14TableWooden @@ -264,4 +290,4 @@ placementMode: SnapgridCenter canBuildInImpassable: false conditions: - - !type:TileNotBlocked \ No newline at end of file + - !type:TileNotBlocked diff --git a/Resources/Textures/_CP14/Structures/Furniture/chairs.rsi/meta.json b/Resources/Textures/_CP14/Structures/Furniture/chairs.rsi/meta.json index 15c1ce9f91..ddc9c6a947 100644 --- a/Resources/Textures/_CP14/Structures/Furniture/chairs.rsi/meta.json +++ b/Resources/Textures/_CP14/Structures/Furniture/chairs.rsi/meta.json @@ -1,7 +1,7 @@ { "version": 1, "license": "CC-BY-SA-4.0", - "copyright": "Created by TheShuEd (Github) , modified by vladimir.s. Birch recolor by goblinsable (SS14).", + "copyright": "Created by TheShuEd (Github) , modified by vladimir.s. Birch recolor by goblinsable (SS14). Stool by SketchiiArtist (Github)", "size": { "x": 32, "y": 32 @@ -14,6 +14,14 @@ { "name": "birch", "directions": 4 + }, + { + "name": "stoolWooden", + "directions": 4 + }, + { + "name": "stoolBirch", + "directions": 4 } ] } diff --git a/Resources/Textures/_CP14/Structures/Furniture/chairs.rsi/stoolBirch.png b/Resources/Textures/_CP14/Structures/Furniture/chairs.rsi/stoolBirch.png new file mode 100644 index 0000000000000000000000000000000000000000..ada2a160ae2e153b301b8e29d8b83c716940f16c GIT binary patch literal 632 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=jKx9jP7LeL$-HD>U^4P_aSW-L z^LEz8tlJI}$Llp^qvkvcbM#)2(qUxc=De_iL&WH(;wP!fzI|?Thk_SQIOyFTknUkL z!)e-r&Aq9Qd?mAFyIxP(Ty$Lh(tGpH&o}=+{#>q}_}?K=#1)FB{O?_BmH(>Ln$=;} zk+L_Be(^Q@dl0_%{FGC5drv;OJoz!xg7T7vndjv9ep|XZI!>%qTzTSKn~iJ!wEa%&?W1q6IWkasxwA_eo2{-FPZf&;OuD5XWT>gV| zGiH~rjS$)zJ>%t_I_1Bgwe?v!=DrPSIGN*^R`lz6_y(KK>w;UO%ly)c)Hb(XR#E|K zTJdiA-$w=Snb*wOvwF%~E16!&n0pmFxm(VZ-D9e^E7;Fq@#pxShZ!+5-?vY=DQ(NK zxBh#ZN$1axpTAEo-dFc8WB!>MA+6g#%_5fOxL+@v|KnVlp2PavnwM16jDOy;HQTZ0 zrc~dt6g73SG@8~RP+PYhj$n!-#jGe;2(N_-nG-0Z-`I2*|kUm zhW6NG{a>To1X$N!2LGHZj6we|x1XtHV7t^9>h}5W3}8}X@O1TaS?83{1OQOV BDHZ?# literal 0 HcmV?d00001 diff --git a/Resources/Textures/_CP14/Structures/Furniture/chairs.rsi/stoolWooden.png b/Resources/Textures/_CP14/Structures/Furniture/chairs.rsi/stoolWooden.png new file mode 100644 index 0000000000000000000000000000000000000000..809331eef2e8fbb40e7b57e4571883dcc2a8d2df GIT binary patch literal 563 zcmV-30?hr1P)Px$?MXyIRCt{2nlVpc?|%b^F58s z6_WH5fpBnp|7fHLHnp{aZmup=cya^)OVuBE?vJs>@!{lc<09DB-qB4YmT4tc7ccJ@ zV@+aHTWb#(Cpl!U0ASvN5}3DP{Qdzfv|l;?@|somn_yd8dlU4W9-3OQB=lUwGF@uH z#84yH)Yd9MGRq*`K8BOGLU5i;oq^|8F)~+3W|>|V9cpWDQ0Km{PLDmHw)560+jTUR zc#0w;Ujduitr9%j`&>sNM zAAm|6^as!%&}Q0BwdoJg4WvJy0r~^BfPe1~_yTv=hAA4g1;qdW002ovPDHLkV1nzY B_!s~H literal 0 HcmV?d00001