Ore boxes (#19838)
This commit is contained in:
76
Resources/Prototypes/Entities/Structures/Storage/ore_box.yml
Normal file
76
Resources/Prototypes/Entities/Structures/Storage/ore_box.yml
Normal file
@@ -0,0 +1,76 @@
|
||||
- type: entity
|
||||
id: OreBox
|
||||
name: ore box
|
||||
description: A large storage container for holding unprocessed ores.
|
||||
parent: BaseStructureDynamic
|
||||
components:
|
||||
- type: Anchorable
|
||||
- type: InteractionOutline
|
||||
- type: Damageable
|
||||
damageContainer: Inorganic
|
||||
damageModifierSet: Wood
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 150
|
||||
behaviors:
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 100
|
||||
behaviors:
|
||||
- !type:EmptyAllContainersBehaviour
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
MaterialWoodPlank1:
|
||||
min: 3
|
||||
max: 5
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
- type: Climbable
|
||||
|
||||
# orebox-specific
|
||||
- type: Sprite
|
||||
noRot: true
|
||||
sprite: /Textures/Structures/Storage/orebox.rsi
|
||||
layers:
|
||||
- state: orebox
|
||||
- state: orebox-top
|
||||
map: [ top ]
|
||||
visible: true
|
||||
- type: Appearance
|
||||
- type: GenericVisualizer
|
||||
visuals:
|
||||
enum.StorageVisuals.Open:
|
||||
top:
|
||||
True: { visible: false }
|
||||
False: { visible: true }
|
||||
- type: Storage
|
||||
capacity: 525
|
||||
storageOpenSound: /Audio/Effects/closetopen.ogg
|
||||
storageCloseSound: /Audio/Effects/closetclose.ogg
|
||||
whitelist:
|
||||
tags:
|
||||
- Ore
|
||||
- type: UserInterface
|
||||
interfaces:
|
||||
- key: enum.StorageUiKey.Key
|
||||
type: StorageBoundUserInterface
|
||||
- type: ContainerContainer
|
||||
containers:
|
||||
storagebase: !type:Container
|
||||
ents: [ ]
|
||||
- type: Fixtures
|
||||
fixtures:
|
||||
fix1:
|
||||
shape:
|
||||
!type:PhysShapeCircle
|
||||
radius: 0.3
|
||||
# very not dense to make it easy to pull
|
||||
density: 20
|
||||
mask:
|
||||
- MachineMask
|
||||
layer:
|
||||
- MachineLayer
|
||||
17
Resources/Textures/Structures/Storage/orebox.rsi/meta.json
Normal file
17
Resources/Textures/Structures/Storage/orebox.rsi/meta.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"version": 1,
|
||||
"license": "CC-BY-SA-3.0",
|
||||
"copyright": "tgstation at fb1012102257b7b0a08d861fd2b8ba963c416e93, cut into layers by mirrorcult",
|
||||
"size": {
|
||||
"x": 32,
|
||||
"y": 32
|
||||
},
|
||||
"states": [
|
||||
{
|
||||
"name": "orebox"
|
||||
},
|
||||
{
|
||||
"name": "orebox-top"
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
Resources/Textures/Structures/Storage/orebox.rsi/orebox-top.png
Normal file
BIN
Resources/Textures/Structures/Storage/orebox.rsi/orebox-top.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 248 B |
BIN
Resources/Textures/Structures/Storage/orebox.rsi/orebox.png
Normal file
BIN
Resources/Textures/Structures/Storage/orebox.rsi/orebox.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 721 B |
Reference in New Issue
Block a user