add: funny keys that can lock doors (#113)

This commit is contained in:
ThereDrD0
2024-02-23 22:10:38 +03:00
committed by GitHub
parent 26cb9ac1c2
commit 9d31a42880
32 changed files with 386 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,5 @@
ent-KeyMetal = металлический ключ
.desc = заостренный кусок металла
key-lock-message = {$name} проворачивает ключ в замке {$door} и закрывает {POSS-ADJ($door)}
key-unlock-message = {$name} проворачивает ключ в замке {$door} и открывает {POSS-ADJ($door)}

View File

@@ -0,0 +1,5 @@
ent-KeyForm = пластиковая форма
.desc = мягкий кусок пластика
key-pressed-in-keyform-message-first = {$user} вдавливает {$key} в пластик, создавая в нем форму ключа
key-pressed-in-keyform-message = {$user} вставляет {$key} в форму, заставляя его скопировать уникальный узор

View File

@@ -0,0 +1 @@
door-locked-via-key = {$door} закрыта

View File

@@ -57,6 +57,7 @@
mode: NoSprite
- type: Occluder
- type: ReflectAspectMark
- type: Keyhole
- type: entity
parent: BaseMaterialDoor

View File

@@ -0,0 +1,54 @@
- type: constructionGraph
id: KeyFormGraph
start: start
graph:
- node: start
edges:
- to: KeyFormNode
steps:
- material: Plastic
amount: 1
doAfter: 2
- node: KeyFormNode
entity: KeyForm
- type: construction
name: ent-KeyForm
id: KeyForm
graph: KeyFormGraph
startNode: start
targetNode: KeyFormNode
category: construction-category-tools
objectType: Item
description: ent-KeyForm.desc
icon:
sprite: White/Objects/Tools/form.rsi
state: empty
- type: constructionGraph
id: KeyGraph
start: start
graph:
- node: start
edges:
- to: KeyNode
steps:
- material: Steel
amount: 1
doAfter: 2
- node: KeyNode
entity: KeyMetal
- type: construction
name: ent-KeyMetal
id: KeyMetal
graph: KeyGraph
startNode: start
targetNode: KeyNode
category: construction-category-tools
objectType: Item
description: ent-KeyMetal.desc
icon:
sprite: White/Objects/Tools/key.rsi
state: icon

View File

@@ -0,0 +1,34 @@
- type: entity
name: form
parent: BaseItem
id: KeyForm
description: Makeshift piece of plastic
components:
- type: EmitSoundOnPickup
sound:
path: /Audio/White/Object/Tools/Form/pickup.ogg
- type: EmitSoundOnLand
sound:
path: /Audio/White/Object/Tools/Form/hit.ogg
- type: Sprite
sprite: White/Objects/Tools/form.rsi
state: empty
- type: Item
sprite: White/Objects/Tools/form.rsi
storedRotation: -180
- type: PhysicalComposition
materialComposition:
Steel: 100
- type: StaticPrice
price: 10
- type: Keyform
- type: GenericVisualizer
visuals:
enum.KeyformVisuals.IsUsed:
base:
True: { state: withkey }
False: { state: empty }
- type: Appearance
- type: Construction
graph: KeyFormGraph
node: KeyFormNode

View File

@@ -0,0 +1,38 @@
- type: entity
name: key
parent: BaseItem
id: KeyMetal
description: Makeshift sharp piece of metal
components:
- type: EmitSoundOnPickup
sound:
path: /Audio/White/Object/Tools/Key/pickup.ogg
- type: EmitSoundOnDrop
sound:
path: /Audio/White/Object/Tools/Key/drop.ogg
- type: EmitSoundOnLand
sound:
path: /Audio/White/Object/Tools/Key/drop.ogg
- type: Sprite
sprite: White/Objects/Tools/key.rsi
state: icon
- type: Item
sprite: White/Objects/Tools/key.rsi
storedRotation: -180
- type: MeleeWeapon
wideAnimationRotation: -180
attackRate: 1
damage:
types:
Piercing: 1
soundHit:
path: "/Audio/Weapons/bladeslice.ogg"
- type: PhysicalComposition
materialComposition:
Steel: 100
- type: StaticPrice
price: 10
- type: Key
- type: Construction
graph: KeyGraph
node: KeyNode

Binary file not shown.

After

Width:  |  Height:  |  Size: 544 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 298 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 302 B

View File

@@ -0,0 +1,25 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "https://github.com/frosty-dev/white",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "empty"
},
{
"name": "withkey"
},
{
"name": "inhand-left",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 541 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 204 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 B

View File

@@ -0,0 +1,22 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "https://github.com/frosty-dev/white",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
},
{
"name": "inhand-left",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
}
]
}