Added cursed chair (#6052)

This commit is contained in:
Zymem
2022-01-10 23:17:22 -03:00
committed by GitHub
parent 02a23eb29b
commit e9e8c8e1e5
6 changed files with 114 additions and 0 deletions

View File

@@ -170,3 +170,44 @@
- type: Sprite
state: shuttle
netsync: false
- type: entity
name: ritual chair
id: ChairRitual
parent: SeatBase
description: Looks uncomfortable.
components:
- type: Anchorable
- type: Rotatable
- type: Sprite
state: ritual
- type: Construction
graph: ritualseat
node: chairRitual
- type: entity
name: cursed chair
id: ChairCursed
parent: SeatBase
description: It's staring back.
components:
- type: Anchorable
- type: Rotatable
- type: Sprite
state: cursed
- type: Strap
buckleSound:
collection: MaleScreams
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 50
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound:
path: /Audio/Voice/Human/womanlaugh.ogg
graph: ritualseat
node: chairCursed

View File

@@ -0,0 +1,49 @@
- type: constructionGraph
id: ritualseat
start: start
graph:
- node: start
actions:
- !type:DeleteEntity {}
edges:
- to: chairRitual
completed:
- !type:SnapToGrid
southRotation: true
steps:
- material: WoodPlank
amount: 2
doAfter: 1
- node: chairRitual
entity: ChairRitual
edges:
- to: start
completed:
- !type:SpawnPrototype
prototype: MaterialWoodPlank1
amount: 2
steps:
- tool: Screwing
doAfter: 1
- to: chairCursed
steps:
- prototype: HeadHuman
icon:
sprite: Mobs/Species/Human/parts.rsi
state: "head_m"
name: human head
doAfter: 1
- node: chairCursed
entity: ChairCursed
edges:
- to: chairRitual
completed:
- !type:SpawnPrototype
prototype: HeadHuman
amount: 1
steps:
- tool: Prying
doAfter: 1

View File

@@ -118,6 +118,22 @@
conditions:
- !type:TileNotBlocked
- type: construction
name: ritual chair
id: ChairRitual
graph: ritualseat
startNode: start
targetNode: chairRitual
category: Furniture
description: A strangely carved chair.
icon:
sprite: Structures/Furniture/chairs.rsi
state: ritual
objectType: Structure
placementMode: SnapgridCenter
canBuildInImpassable: false
conditions:
- !type:TileNotBlocked
#tables
- type: construction

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@@ -74,6 +74,14 @@
{
"name": "wooden-wings-knocked",
"directions": 4
},
{
"name": "ritual",
"directions": 4
},
{
"name": "cursed",
"directions": 4
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB