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 0000000000..ada2a160ae Binary files /dev/null and b/Resources/Textures/_CP14/Structures/Furniture/chairs.rsi/stoolBirch.png differ 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 0000000000..809331eef2 Binary files /dev/null and b/Resources/Textures/_CP14/Structures/Furniture/chairs.rsi/stoolWooden.png differ