Makes more stuff destructible/breakable (#4081)
This commit is contained in:
@@ -24,6 +24,17 @@
|
||||
- type: SecretStash
|
||||
secretPartName: the plant
|
||||
- type: Pullable
|
||||
- type: Damageable
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 50
|
||||
behaviors:
|
||||
- !type:DoActsBehavior
|
||||
acts: ["Destruction"]
|
||||
- !type:PlaySoundBehavior
|
||||
sound: /Audio/Effects/plant_rustle.ogg
|
||||
|
||||
- type: entity
|
||||
id: PottedPlantRandom
|
||||
|
||||
@@ -1,28 +1,26 @@
|
||||
- type: entity
|
||||
id: SeedExtractor
|
||||
name: seed extractor
|
||||
parent: BaseMachinePowered
|
||||
description: Extracts seeds from produce.
|
||||
placement:
|
||||
mode: SnapgridCenter
|
||||
components:
|
||||
- type: Clickable
|
||||
- type: InteractionOutline
|
||||
- type: Sprite
|
||||
sprite: Constructible/Hydroponics/machines.rsi
|
||||
state: seedextractor
|
||||
- type: Physics
|
||||
bodyType: Static
|
||||
fixtures:
|
||||
- shape:
|
||||
!type:PhysShapeAabb
|
||||
bounds: "-0.4,-0.25,0.4,0.25"
|
||||
mass: 25
|
||||
layer:
|
||||
- Opaque
|
||||
- Impassable
|
||||
- MobImpassable
|
||||
- VaultImpassable
|
||||
- type: SnapGrid
|
||||
- type: Anchorable
|
||||
- type: SeedExtractor
|
||||
- type: PowerReceiver
|
||||
- type: Sprite
|
||||
sprite: Constructible/Hydroponics/machines.rsi
|
||||
layers:
|
||||
- state: seedextractor-off
|
||||
- state: seedextractor-unlit
|
||||
shader: unshaded
|
||||
netsync: false
|
||||
- type: Physics
|
||||
bodyType: Static
|
||||
fixtures:
|
||||
- shape:
|
||||
!type:PhysShapeAabb
|
||||
bounds: "-0.4,-0.25,0.4,0.25"
|
||||
mass: 25
|
||||
layer:
|
||||
- MobMask
|
||||
- Opaque
|
||||
mask:
|
||||
- MobMask
|
||||
- type: SeedExtractor
|
||||
|
||||
@@ -14,17 +14,13 @@
|
||||
bounds: "-0.3,-0.4,0.3,0.4"
|
||||
mass: 25
|
||||
mask:
|
||||
- Impassable
|
||||
- MobImpassable
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
- Impassable
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
layer:
|
||||
- Opaque
|
||||
- Impassable
|
||||
- MobImpassable
|
||||
- VaultImpassable
|
||||
- type: SnapGrid
|
||||
- type: ReagentDispenser
|
||||
- Opaque
|
||||
- MobImpassable
|
||||
- SmallImpassable
|
||||
- type: PowerReceiver
|
||||
- type: UserInterface
|
||||
interfaces:
|
||||
@@ -33,3 +29,15 @@
|
||||
- type: LoopingSound
|
||||
- type: Anchorable
|
||||
- type: Pullable
|
||||
- type: Damageable
|
||||
resistances: metallicResistances
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 200
|
||||
behaviors:
|
||||
- !type:DoActsBehavior
|
||||
acts: ["Destruction"]
|
||||
- !type:PlaySoundBehavior
|
||||
sound: /Audio/Effects/metalbreak.ogg
|
||||
|
||||
@@ -11,14 +11,22 @@
|
||||
sprite: Constructible/Misc/kitchen.rsi
|
||||
state: spike
|
||||
- type: Damageable
|
||||
resistances: metallicResistances
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 50
|
||||
damage: 100
|
||||
behaviors:
|
||||
- !type:DoActsBehavior
|
||||
acts: ["Destruction"]
|
||||
- !type:PlaySoundBehavior
|
||||
sound: /Audio/Effects/metalbreak.ogg
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
SheetSteel1:
|
||||
min: 1
|
||||
max: 1
|
||||
- type: KitchenSpike
|
||||
- type: Anchorable
|
||||
- type: Pullable
|
||||
|
||||
@@ -40,3 +40,13 @@
|
||||
shader: unshaded
|
||||
map: ["enum.MicrowaveVisualizerLayers.BaseUnlit"]
|
||||
- type: PowerReceiver
|
||||
- type: Damageable
|
||||
resistances: metallicResistances
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 100
|
||||
behaviors:
|
||||
- !type:DoActsBehavior
|
||||
acts: ["Breakage"]
|
||||
|
||||
@@ -33,3 +33,15 @@
|
||||
sprite: Constructible/Power/juicer.rsi
|
||||
state: juicer0
|
||||
drawdepth: Items
|
||||
- type: Damageable
|
||||
resistances: metallicResistances
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 100
|
||||
behaviors:
|
||||
- !type:DoActsBehavior
|
||||
acts: ["Destruction"]
|
||||
- !type:PlaySoundBehavior
|
||||
sound: /Audio/Effects/metalbreak.ogg
|
||||
|
||||
@@ -24,6 +24,23 @@
|
||||
- type: PowerReceiver
|
||||
powerLoad: 200
|
||||
priority: Low
|
||||
- type: Damageable
|
||||
resistances: metallicResistances
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 300
|
||||
behaviors:
|
||||
- !type:DoActsBehavior
|
||||
acts: ["Destruction"]
|
||||
- !type:PlaySoundBehavior
|
||||
sound: /Audio/Effects/metalbreak.ogg
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
SheetSteel1:
|
||||
min: 1
|
||||
max: 2
|
||||
|
||||
- type: entity
|
||||
id: BaseResearchAndDevelopmentPointSource
|
||||
@@ -61,3 +78,18 @@
|
||||
visuals:
|
||||
- type: PowerDeviceVisualizer
|
||||
- type: PowerReceiver
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 200
|
||||
behaviors:
|
||||
- !type:DoActsBehavior
|
||||
acts: ["Destruction"]
|
||||
- !type:PlaySoundBehavior
|
||||
sound: /Audio/Effects/metalbreak.ogg
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
SheetSteel1:
|
||||
min: 1
|
||||
max: 1
|
||||
|
||||
@@ -53,9 +53,10 @@
|
||||
- type: entity
|
||||
id: chem_master_broken
|
||||
parent: BaseConstructibleDynamic
|
||||
name: ChemMaster 4000 [Broken]
|
||||
name: ChemMaster 4000
|
||||
description: "An industrial grade chemical manipulator with pill and bottle production included. It's broken."
|
||||
abstract: true
|
||||
suffix: Broken
|
||||
components:
|
||||
- type: Sprite
|
||||
sprite: Constructible/Power/mixer.rsi
|
||||
|
||||
@@ -41,10 +41,17 @@
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 100
|
||||
damage: 150
|
||||
behaviors:
|
||||
- !type:DoActsBehavior
|
||||
acts: ["Destruction"]
|
||||
- !type:PlaySoundBehavior
|
||||
sound: /Audio/Effects/metalbreak.ogg
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
SheetSteel1:
|
||||
min: 1
|
||||
max: 1
|
||||
- type: Appearance
|
||||
visuals:
|
||||
- type: StorageVisualizer
|
||||
|
||||
@@ -18,3 +18,18 @@
|
||||
- state: welded
|
||||
visible: false
|
||||
map: ["enum.StorageVisualLayers.Welded"]
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 300
|
||||
behaviors:
|
||||
- !type:DoActsBehavior
|
||||
acts: ["Destruction"]
|
||||
- !type:PlaySoundBehavior
|
||||
sound: /Audio/Effects/metalbreak.ogg
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
SheetSteel1:
|
||||
min: 1
|
||||
max: 2
|
||||
|
||||
@@ -27,11 +27,12 @@
|
||||
behaviors:
|
||||
- !type:DoActsBehavior
|
||||
acts: ["Destruction"]
|
||||
|
||||
- !type:PlaySoundBehavior
|
||||
sound: /Audio/Effects/metalbreak.ogg
|
||||
|
||||
- type: entity
|
||||
abstract: true
|
||||
parent: BaseMachine
|
||||
id: BaseMachinePowered
|
||||
components:
|
||||
- type: PowerReceiver
|
||||
|
||||
|
||||
@@ -22,6 +22,24 @@
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "seedextractor-unlit",
|
||||
"delays": [
|
||||
[
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1,
|
||||
0.1
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "seedextractor-off"
|
||||
},
|
||||
{
|
||||
"name": "spawner"
|
||||
},
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 699 B |
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
Reference in New Issue
Block a user