Add cargo pallet to cargo products (#17192)

This commit is contained in:
metalgearsloth
2023-06-08 05:40:30 +10:00
committed by GitHub
parent edea4c0549
commit c2fed26bdb
2 changed files with 44 additions and 4 deletions

View File

@@ -0,0 +1,9 @@
- type: cargoProduct
id: CargoPallet
icon:
sprite: Structures/catwalk.rsi
state: catwalk_preview
product: CargoPallet
cost: 250
category: Cargo
group: market

View File

@@ -4,13 +4,44 @@
description: Designates valid items to sell to CentCom when a shuttle is recalled.
parent: BaseStructure
components:
- type: InteractionOutline
- type: Anchorable
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.45,-0.45,0.45,0.45"
density: 15
mask:
- MachineMask
- type: CargoPallet
- type: StaticPrice
price: 100
- type: Sprite
drawdepth: FloorTiles
netsync: false
layers:
- sprite: Structures/catwalk.rsi
state: catwalk_preview
- type: CollideOnAnchor
- type: Physics
canCollide: false
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 500
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 200
behaviors:
- !type:SpawnEntitiesBehavior
spawn:
PartRodMetal: # takes two to construct, so drop less than that
min: 0
max: 1
- !type:DoActsBehavior
acts: [ "Destruction" ]