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

@@ -312,24 +312,6 @@ ent-CP14ClothingPantsMercenaryTrousers = брюки наемника
ent-CP14ClothingPantsSouthernMagician = платье южного фокусника
.desc = Традиционная юбка южного мага, довольно свободная.
ent-CP14ClothingShirtCottonBlue = хлопковая синяя рубаха
.desc = { ent-CP14ClothingShirtCottonBlue.desc }
ent-CP14ClothingShirtCottonBlack = хлопковая черная рубаха
.desc = { ent-CP14ClothingShirtCottonBlue.desc }
ent-CP14ClothingShirtCottonPurple = хлопковая фиолетовая рубаха
.desc = { ent-CP14ClothingShirtCottonBlue.desc }
ent-CP14ClothingShirtCottonRed = хлопковая красная рубаха
.desc = { ent-CP14ClothingShirtCottonBlue.desc }
ent-CP14ClothingShirtCottonWhite = хлопковая белая рубаха
.desc = { ent-CP14ClothingShirtCottonBlue.desc }
ent-CP14ClothingShirtCottonYellow = хлопковая желтая
.desc = { ent-CP14ClothingShirtCottonBlue.desc }
ent-CP14ClothingShirtSteampunk = укрепленная латунью рубашка
.desc = Белая рубашка, укрепленная латунными вставками.

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1,27 @@
{
"version": 1,
"license": "CLA",
"copyright": "By TheShuEd",
"size": {
"x": 64,
"y": 96
},
"states": [
{
"name": "closed",
"directions": 4
},
{
"name": "open",
"directions": 4
},
{
"name": "open_mirrored",
"directions": 4
},
{
"name": "closed_mirrored",
"directions": 4
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -0,0 +1,27 @@
{
"version": 1,
"license": "CLA",
"copyright": "By TheShuEd",
"size": {
"x": 64,
"y": 96
},
"states": [
{
"name": "closed",
"directions": 4
},
{
"name": "open",
"directions": 4
},
{
"name": "open_mirrored",
"directions": 4
},
{
"name": "closed_mirrored",
"directions": 4
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB