Iron doors (#505)

* iron doors

* shirt desc partial fix

* fix
This commit is contained in:
Ed
2024-10-24 12:38:12 +03:00
committed by GitHub
parent 0652c3f0b4
commit 4e3c70a9d1
15 changed files with 149 additions and 25 deletions

View File

@@ -2,6 +2,7 @@
abstract: true
parent: Clothing
id: CP14ClothingShirtBase
description: Pleasant to the touch material, in a comfortable loose shirt shape.
categories: [ ForkFiltered ]
components:
- type: Clothing
@@ -16,7 +17,6 @@
parent: CP14ClothingShirtBase
id: CP14ClothingShirtCottonBlue
name: cotton blue shirt
description: Pleasant to the touch material, in a comfortable loose shirt shape.
components:
- type: Sprite
sprite: _CP14/Clothing/Shirt/Cotton/blue.rsi
@@ -27,7 +27,6 @@
parent: CP14ClothingShirtBase
id: CP14ClothingShirtCottonBlack
name: cotton black shirt
description: Pleasant to the touch material, in a comfortable loose shirt shape.
components:
- type: Sprite
sprite: _CP14/Clothing/Shirt/Cotton/black.rsi
@@ -38,7 +37,6 @@
parent: CP14ClothingShirtBase
id: CP14ClothingShirtCottonPurple
name: cotton purple shirt
description: Pleasant to the touch material, in a comfortable loose shirt shape.
components:
- type: Sprite
sprite: _CP14/Clothing/Shirt/Cotton/purple.rsi
@@ -49,7 +47,6 @@
parent: CP14ClothingShirtBase
id: CP14ClothingShirtCottonRed
name: cotton red shirt
description: Pleasant to the touch material, in a comfortable loose shirt shape.
components:
- type: Sprite
sprite: _CP14/Clothing/Shirt/Cotton/red.rsi
@@ -60,7 +57,6 @@
parent: CP14ClothingShirtBase
id: CP14ClothingShirtCottonWhite
name: cotton white shirt
description: Pleasant to the touch material, in a comfortable loose shirt shape.
components:
- type: Sprite
sprite: _CP14/Clothing/Shirt/Cotton/white.rsi
@@ -71,7 +67,6 @@
parent: CP14ClothingShirtBase
id: CP14ClothingShirtCottonYellow
name: cotton yellow shirt
description: Pleasant to the touch material, in a comfortable loose shirt shape.
components:
- type: Sprite
sprite: _CP14/Clothing/Shirt/Cotton/yellow.rsi

View File

@@ -16,4 +16,6 @@
closedDrawDepth: Mobs
openDrawDepth: Mobs
- type: Lock
locked: false
locked: false
- type: PlacementReplacement
key: walls

View File

@@ -0,0 +1,44 @@
- type: entity
id: CP14IronDoor
parent:
- CP14BaseDoor
name: iron door
description: Well, if there's a solid iron door, there must be something valuable behind it.
suffix: Opened
components:
- type: Sprite
sprite: _CP14/Structures/Doors/iron_door.rsi
layers:
- state: closed
map: ["enum.DoorVisualLayers.Base"]
- type: Door
openSound:
path: /Audio/Effects/door_open.ogg
closeSound:
path: /Audio/Effects/door_close.ogg
- type: Damageable
damageContainer: Inorganic
damageModifierSet: StructuralMetallic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 500
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
#- type: Construction
# graph: CP14WoodenDoor
# node: CP14WoodenDoor
- type: entity
id: CP14IronDoorMirrored
parent: CP14IronDoor
suffix: Opened, Mirrored
components:
- type: Door
openSpriteState: open_mirrored
closedSpriteState: closed_mirrored
#- type: Construction
# graph: CP14WoodenDoor
# node: CP14WoodenDoorMirrored

View File

@@ -0,0 +1,47 @@
- type: entity
id: CP14IronDoorWindowed
parent:
- CP14BaseDoor
name: iron windowed door
description: a solid iron door with a small window. You can look through it, of course, but it's hard to put your hand through.
suffix: Opened
components:
- type: Sprite
sprite: _CP14/Structures/Doors/iron_windowed_door.rsi
layers:
- state: closed
map: ["enum.DoorVisualLayers.Base"]
- type: Occluder
enabled: false
- type: Door
occludes: false
openSound:
path: /Audio/Effects/door_open.ogg
closeSound:
path: /Audio/Effects/door_close.ogg
- type: Damageable
damageContainer: Inorganic
damageModifierSet: StructuralMetallic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 500
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
#- type: Construction
# graph: CP14WoodenDoor
# node: CP14WoodenDoor
- type: entity
id: CP14IronDoorWindowedMirrored
parent: CP14IronDoorWindowed
suffix: Opened, Mirrored
components:
- type: Door
openSpriteState: open_mirrored
closedSpriteState: closed_mirrored
#- type: Construction
# graph: CP14WoodenDoor
# node: CP14WoodenDoorMirrored