]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Regular boxes are now destructible (#16300)
authorPeterFuto <futo.petr@gmail.com>
Sat, 13 May 2023 02:56:54 +0000 (04:56 +0200)
committerGitHub <noreply@github.com>
Sat, 13 May 2023 02:56:54 +0000 (22:56 -0400)
Resources/Maps/box.yml
Resources/Maps/fland.yml
Resources/Maps/kettle.yml
Resources/Maps/origin.yml
Resources/Prototypes/Entities/Structures/Storage/Closets/big_boxes.yml
Resources/Prototypes/Recipes/Crafting/Graphs/storage/bigbox.yml
Resources/Prototypes/Recipes/Crafting/crates.yml

index aaded257da7ab150499f939e14908d5cabe146b9..010f3949d2312ce19c7f1f210bcc060855fcb4a8 100644 (file)
@@ -14025,7 +14025,7 @@ entities:
     - pos: -34.5,17.5\r
       parent: 8364\r
       type: Transform\r
-- proto: BaseBigBox\r
+- proto: BigBox\r
   entities:\r
   - uid: 25967\r
     components:\r
index d9a0865556f2ad1ac7c8372140650f87d09af517..2f99078866606ea4397780968425a09b0c9d1ca5 100644 (file)
@@ -27622,7 +27622,7 @@ entities:
     - pos: -23.5,33.5\r
       parent: 13329\r
       type: Transform\r
-- proto: BaseBigBox\r
+- proto: BigBox\r
   entities:\r
   - uid: 11622\r
     components:\r
index dca2439230aea0ccb26dfd2e4258391aac81a17d..0d0a15e593572d2894407b7ebf5d0eb46c260fcc 100644 (file)
@@ -18249,7 +18249,7 @@ entities:
       pos: -11.5,24.5\r
       parent: 82\r
       type: Transform\r
-- proto: BaseBigBox\r
+- proto: BigBox\r
   entities:\r
   - uid: 10063\r
     components:\r
index 61ffaceba73738b7b1472ce6a44165917312f964..cef897e7eb7b801fb8771190f12ede7c07bf546d 100644 (file)
@@ -21539,7 +21539,7 @@ entities:
     - pos: 33.5,48.5
       parent: 2
       type: Transform
-- proto: BaseBigBox
+- proto: BigBox
   entities:
   - uid: 1961
     components:
index 9ecc6f99ab3178477dd6d1ee3aff74a26d49ebfc..25d7b946e0224614bce7abc4f78795ddbcdee88c 100644 (file)
@@ -1,7 +1,8 @@
 - type: entity
   id: BaseBigBox
-  name: cardboard box
+  name: cardboard box #it's still just a box
   description: Huh? Just a box...
+  abstract: true
   components:
     - type: Transform
       noRot: true
   id: StealthBox
   suffix: stealth
   parent: BaseBigBox
-  name: cardboard box #it's still just a box
   description: Kept ya waiting, huh?
   components:
-    - type: CardboardBox
-      effectSound: /Audio/Effects/chime.ogg
     - type: Damageable
-      damageContainer: Box
       damageModifierSet: FlimsyMetallic #Syndicate boxes should have a bit of protection
-    - type: Sprite
-      noRot: true
-      netsync: false
-      sprite: Structures/Storage/closet.rsi
-      layers:
-        - state: agentbox
-        - state: cardboard_open
-          map: ["enum.StorageVisualLayers.Door"]
-    - type: Appearance
-      visuals:
-        - type: StorageVisualizer
-          state: agentbox
-          state_open: cardboard_open
     - type: Stealth
     - type: StealthOnMove
       passiveVisibilityRate: -0.37
       movementVisibilityRate: 0.20
 
+- type: entity
+  id: BigBox
+  parent: BaseBigBox
+  components:
+  - type: Destructible
+    thresholds:
+    - trigger:
+        !type:DamageTrigger
+        damage: 15
+      behaviors:
+      - !type:DoActsBehavior
+        acts: [ "Destruction" ]
+
+
 #For admin spawning only
 - type: entity
   id: GhostBox
index eef5d5c5536c46576510eb24b2382658f159d298..5975f559e42dd47006589779c29c5d36ca43b603 100644 (file)
@@ -12,4 +12,4 @@
 
 
     - node: basebigbox
-      entity: BaseBigBox
\ No newline at end of file
+      entity: BigBox
index a55d6211e701746f128b951971c11d46c77249f4..a4313dfa741542547911dc85b58a97683e977c9e 100644 (file)
@@ -33,7 +33,7 @@
 
 - type: construction
   name: cardboard box
-  id: BaseBigBox
+  id: BigBox
   graph: BaseBigBox
   startNode: start
   targetNode: basebigbox
@@ -51,4 +51,4 @@
   category: construction-category-storage
   description: A small box for storing things.
   icon: { sprite: Objects/Storage/boxes.rsi, state: box }
-  objectType: Item
\ No newline at end of file
+  objectType: Item