]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Cleanup chairs.yml (#25682)
authorMACMAN2003 <macman2003c@gmail.com>
Sun, 3 Mar 2024 00:06:15 +0000 (16:06 -0800)
committerGitHub <noreply@github.com>
Sun, 3 Mar 2024 00:06:15 +0000 (03:06 +0300)
cleanup chairs.yml

not sure if i did this correctly

Resources/Prototypes/Entities/Structures/Furniture/chairs.yml

index a235cd2546df955fcebe3c0b4e7ab847773419f7..d9f6270b45805f8ca9244b85a543cd0ce54f01f2 100644 (file)
   - type: StaticPrice
     price: 10
 
+#Starts unanchored, cannot be rotated while anchored
 - type: entity
   name: chair
-  id: Chair
+  id: UnanchoredChairBase
   parent: SeatBase
+  abstract: true
+  components:
+  - type: Anchorable
+  - type: Rotatable
+
+#Start anchored, cannot be rotated while anchored
+- type: entity
+  name: chair
+  id: ChairBase
+  abstract: true
+  parent: UnanchoredChairBase
   components:
+  - type: Physics
+    bodyType: Static
   - type: Transform
     anchored: true
+
+#Starts unanchored, can be rotated while anchored
+- type: entity
+  name: chair
+  id: OfficeChairBase
+  parent: UnanchoredChairBase
+  abstract: true
+  components:
+  - type: Rotatable
+    rotateWhileAnchored: true
+
+#Starts anchored, can be rotated while anchored
+- type: entity
+  name: stool
+  id: StoolBase
+  parent: OfficeChairBase
+  abstract: true
+  components:
   - type: Physics
     bodyType: Static
-  - type: Anchorable
-  - type: Rotatable
+  - type: Transform
+    anchored: true
+
+- type: entity
+  name: chair
+  id: Chair
+  parent: ChairBase
+  components:
   - type: Sprite
     state: chair
   - type: Construction
 - type: entity
   name: stool
   id: Stool
-  parent: SeatBase
+  parent: ChairBase
   description: Apply butt.
   components:
-  - type: Anchorable
-  - type: Rotatable
   - type: Sprite
     state: stool
   - type: Construction
 - type: entity
   name: bar stool
   id: StoolBar
-  parent: SeatBase
+  parent: StoolBase
   components:
-  - type: Transform
-    anchored: true
-  - type: Rotatable
-    rotateWhileAnchored: true
-  - type: Physics
-    bodyType: Static
-  - type: Anchorable
   - type: Sprite
     state: bar
   - type: Construction
 - type: entity
   name: white office chair
   id: ChairOfficeLight
-  parent: SeatBase
+  parent: OfficeChairBase
   components:
-  - type: Anchorable
-  - type: Rotatable
-    rotateWhileAnchored: true
   - type: Sprite
     state: office-white
   - type: Construction
 - type: entity
   name: comfy chair
   id: ComfyChair
-  parent: SeatBase
+  parent: ChairBase
   description: It looks comfy.
   components:
-  - type: Transform
-    anchored: true
-  - type: Physics
-    bodyType: Static
-  - type: Anchorable
-  - type: Rotatable
   - type: Sprite
     state: comfy
   - type: Construction
 - type: entity
   name: pilot seat
   id: ChairPilotSeat
-  parent: SeatBase
+  parent: ChairBase
   description: The pilot seat of a prestigious ship.
   components:
-  - type: Transform
-    anchored: true
-  - type: Physics
-    bodyType: Static
-  - type: Anchorable
-  - type: Rotatable
   - type: Sprite
     state: shuttle
   - type: Construction
 - type: entity
   name: wooden chair
   id: ChairWood
-  parent: SeatBase
+  parent: UnanchoredChairBase
   components:
   - type: Sprite
     state: wooden
-  - type: Rotatable
   - type: Construction
     graph: Seat
     node: chairWood
 
 - type: entity
   id: ChairMeat
-  parent: SeatBase
+  parent: ChairBase
   name: meat chair
   description: Uncomfortably sweaty.
   components:
-  - type: Rotatable
   - type: Sprite
     state: meat
   - type: Construction
   name: web chair
   id: ChairWeb
   description: For true web developers.
-  parent: SeatBase
+  parent: ChairBase
   components:
-  - type: Transform
-    anchored: true
-  - type: Physics
-    bodyType: Static
-  - type: Rotatable
   - type: Sprite
     sprite: Structures/Web/chair.rsi
     state: icon
 - type: entity
   name: steel bench
   id: SteelBench
-  parent: SeatBase
+  parent: ChairBase
   description: A long chair made for a metro. Really standard design.
   components:
-  - type: Transform
-    anchored: true
-  - type: Physics
-    bodyType: Static
-  - type: Anchorable
-  - type: Rotatable
   - type: Sprite
     state: steel-bench
   - type: Construction