]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Temporarily Making Cargo Buy and Sell Pallets Indestructible (#34195)
authorBokser815 <70928915+Bokser815@users.noreply.github.com>
Mon, 28 Apr 2025 00:59:54 +0000 (19:59 -0500)
committerGitHub <noreply@github.com>
Mon, 28 Apr 2025 00:59:54 +0000 (17:59 -0700)
Co-authored-by: EmoGarbage404 <retron404@gmail.com>
Resources/Prototypes/Entities/Objects/Specific/Cargo/cargo_pallet.yml

index 518e63edeae62bc905a7e3bc8b1eb21b0654a787..017296f5b327590d5273aace471aeec2825a32da 100644 (file)
@@ -1,8 +1,9 @@
 - type: entity
-  id: CargoPallet
+  id: BaseCargoPallet
+  parent: BaseStructure
   name: cargo pallet
   description: Common fixture of logistics and cargo. Subtle reminder where crates go during transport to avoid bruised shins.
-  parent: BaseStructure
+  abstract: true
   components:
   - type: InteractionOutline
   - type: Anchorable
@@ -19,7 +20,7 @@
           bounds: "-0.45,-0.45,0.45,0.45"
         density: 15
         mask:
-          - MachineMask
+        - MachineMask
   - type: StaticPrice
     price: 100
   - type: Sprite
     layers:
     - sprite: Structures/catwalk.rsi
       state: catwalk_preview
+  - type: GuideHelp
+    guides:
+    - Cargo
+
+- type: entity
+  id: CargoPallet
+  parent: BaseCargoPallet
+  components:
   - type: Damageable
     damageContainer: StructuralInorganic
     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" ]
-  - type: GuideHelp
-    guides:
-    - Cargo
+    - 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" ]
 
 - type: entity
   id: CargoPalletSell
   name: cargo selling pallet
-  description: Designates valid items to sell.
-  parent: CargoPallet
+  description: Designates valid items to sell. Made of plastitanium to discourage pesky vandals.
+  parent: BaseCargoPallet
   components:
   - type: CargoPallet
     palletType: sell
   - type: Sprite
-    drawdepth: FloorTiles
     sprite: Structures/cargo_pallets.rsi
   - type: Icon
     sprite: Structures/cargo_pallets.rsi
 - type: entity
   id: CargoPalletBuy
   name: cargo buying pallet
-  description: Designates where orders will appear when purchased.
-  parent: CargoPallet
+  description: Designates where orders will appear when purchased. Made of plastitanium to discourage pesky vandals.
+  parent: BaseCargoPallet
   components:
   - type: CargoPallet
     palletType: buy
   - type: Sprite
-    drawdepth: FloorTiles
     sprite: Structures/cargo_pallets.rsi
   - type: Icon
     sprite: Structures/cargo_pallets.rsi