Add envelopes (#30298)

* Add envelopes

* oops

* Remove unused loc string

* comments and fixes
This commit is contained in:
themias
2024-07-29 21:49:05 -04:00
committed by GitHub
parent b16de9bb35
commit 85e36266fa
12 changed files with 316 additions and 0 deletions

View File

@@ -432,3 +432,17 @@
- id: DartYellow
amount: 2
- type: entity
name: envelope box
parent: BoxCardboard
id: BoxEnvelope
description: A box filled with envelopes.
components:
- type: Sprite
layers:
- state: box
- state: envelope
- type: StorageFill
contents:
- id: Envelope
amount: 9

View File

@@ -128,6 +128,7 @@
- id: BoxFolderRed
- id: BoxFolderYellow
- id: NewtonCradle
- id: BoxEnvelope
- type: entity
id: CrateServiceFaxMachine

View File

@@ -8,6 +8,7 @@
RubberStampApproved: 1
RubberStampDenied: 1
Paper: 10
Envelope: 10
EncryptionKeyCargo: 2
EncryptionKeyEngineering: 2
EncryptionKeyMedical: 2

View File

@@ -564,3 +564,81 @@
Blunt: 10
- type: StealTarget
stealGroup: BoxFolderQmClipboard
- type: entity
name: envelope
parent: BaseItem
id: Envelope
description: 'A small envelope for keeping prying eyes off of your sensitive documents.'
components:
- type: Sprite
sprite: Objects/Misc/bureaucracy.rsi
layers:
- state: envelope_open
map: ["enum.EnvelopeVisualLayers.Open"]
- state: envelope_closed
map: ["enum.EnvelopeVisualLayers.Sealed"]
visible: false
- state: envelope_torn
map: ["enum.EnvelopeVisualLayers.Torn"]
visible: false
- state: paper_stamp-generic
map: ["enum.PaperVisualLayers.Stamp"]
visible: false
- type: Paper
escapeFormatting: false
content: envelope-default-message
- type: PaperVisuals
headerImagePath: "/Textures/Interface/Paper/paper_heading_postage_stamp.svg.96dpi.png"
headerMargin: 216.0, 0.0, 0.0, 0.0
contentMargin: 0.0, 0.0, 0.0, 0.0
maxWritableArea: 368.0, 256.0
- type: Envelope
- type: ContainerContainer
containers:
letter_slot: !type:ContainerSlot
- type: ItemSlots
slots:
letter_slot:
name: envelope-letter-slot
insertSound: /Audio/Effects/packetrip.ogg
ejectSound: /Audio/Effects/packetrip.ogg
whitelist:
tags:
- Paper
- type: ActivatableUI
key: enum.PaperUiKey.Key
requireHands: false
- type: UserInterface
interfaces:
enum.PaperUiKey.Key:
type: PaperBoundUserInterface
- type: Item
size: Tiny
- type: Tag
tags:
- Trash
- Document
#- type: Appearance, hide stamp marks until we have some kind of displacement
- type: Flammable
fireSpread: true
canResistFire: false
alwaysCombustible: true
canExtinguish: true
damage:
types:
Heat: 1
- type: FireVisuals
sprite: Effects/fire.rsi
normalState: fire
- type: Damageable
damageModifierSet: Wood
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 15
behaviors:
- !type:EmptyAllContainersBehaviour
- !type:DoActsBehavior
acts: [ "Destruction" ]