]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix bug with rotating shelves (#30978)
authorIgorAnt028 <118114530+IgorAnt028@users.noreply.github.com>
Tue, 13 Aug 2024 21:38:28 +0000 (00:38 +0300)
committerGitHub <noreply@github.com>
Tue, 13 Aug 2024 21:38:28 +0000 (15:38 -0600)
* Main

* Update shelfs.yml

* Little bug fix

Resources/Prototypes/Entities/Structures/Wallmounts/shelfs.yml

index ef501b843e3d925757695613c5d6825f32a8dd37..321d1f4e189021208a72545d2789440cddd12551 100644 (file)
@@ -2,23 +2,21 @@
 - type: entity
   abstract: true
   id: ShelfBase
-  parent: BaseStructure
   name: shelf
-  description: A strange place to place, well, anything really. You feel like you shouldn't be seeing this.'
+  description: A strange place to place, well, anything really. You feel like you shouldn't be seeing this.
+  placement:
+    mode: SnapgridCenter
+    snap:
+    - Wallmount
   components:
+  - type: Clickable
+  - type: Tag
+    tags:
+      - Structure
   - type: Sprite
     drawdepth: WallMountedItems
     sprite: Structures/Storage/Shelfs/wood.rsi
     state: base
-  - type: Fixtures
-    fixtures:
-      fix1:
-        shape:
-          !type:PhysShapeAabb
-          bounds: "-0.35,-0.35,0.35,0.35"
-        density: 35
-        layer:
-        - BulletImpassable
   - type: Transform
   - type: Damageable
     damageModifierSet: Wood
@@ -35,7 +33,6 @@
       - !type:DoActsBehavior
         acts: ["Destruction"]
   - type: WallMount
-    arc: 175
   - type: Storage
     grid:
     - 0,0,3,1
@@ -49,9 +46,6 @@
   - type: ContainerContainer
     containers:
       storagebase: !type:Container
-  - type: Tag
-    tags:
-    - Structure
 
 - type: entity
   abstract: true