From c2fed26bdb789e2e7af8bc963a68169871c90bcb Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Thu, 8 Jun 2023 05:40:30 +1000 Subject: [PATCH] Add cargo pallet to cargo products (#17192) --- .../Prototypes/Catalog/Cargo/cargo_cargo.yml | 9 +++++ .../Objects/Specific/Cargo/cargo_pallet.yml | 39 +++++++++++++++++-- 2 files changed, 44 insertions(+), 4 deletions(-) create mode 100644 Resources/Prototypes/Catalog/Cargo/cargo_cargo.yml diff --git a/Resources/Prototypes/Catalog/Cargo/cargo_cargo.yml b/Resources/Prototypes/Catalog/Cargo/cargo_cargo.yml new file mode 100644 index 0000000000..97df4bef18 --- /dev/null +++ b/Resources/Prototypes/Catalog/Cargo/cargo_cargo.yml @@ -0,0 +1,9 @@ +- type: cargoProduct + id: CargoPallet + icon: + sprite: Structures/catwalk.rsi + state: catwalk_preview + product: CargoPallet + cost: 250 + category: Cargo + group: market \ No newline at end of file diff --git a/Resources/Prototypes/Entities/Objects/Specific/Cargo/cargo_pallet.yml b/Resources/Prototypes/Entities/Objects/Specific/Cargo/cargo_pallet.yml index df852b6522..0e14ba06ac 100644 --- a/Resources/Prototypes/Entities/Objects/Specific/Cargo/cargo_pallet.yml +++ b/Resources/Prototypes/Entities/Objects/Specific/Cargo/cargo_pallet.yml @@ -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" ]