]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Foldable ushanka (#26519)
authorValent <108285874+ValentFingerov@users.noreply.github.com>
Fri, 29 Mar 2024 01:07:38 +0000 (06:07 +0500)
committerGitHub <noreply@github.com>
Fri, 29 Mar 2024 01:07:38 +0000 (12:07 +1100)
* UpdateUshankaPrototype

* UpdateUshankaPrototype

Resources/Prototypes/Entities/Clothing/Head/hats.yml

index dc57302619c660e68b6c4be2039f45041defb439..fba77d885ff06582efc5be4722cfbaa9177cf356 100644 (file)
     - WhitelistChameleon
 
 - type: entity
-  parent: ClothingHeadBase
+  parent: [ClothingHeadBase, BaseFoldable]
   id: ClothingHeadHatUshanka
   name: ushanka
   description: "Perfect for winter in Siberia, da?"
   components:
-  - type: Sprite
-    sprite: Clothing/Head/Hats/ushanka.rsi
   - type: Clothing
     sprite: Clothing/Head/Hats/ushanka.rsi
+  - type: Appearance
   - type: AddAccentClothing
     accent: RussianAccent
+  - type: Foldable
+    canFoldInsideContainer: true
+  - type: FoldableClothing
+    foldedEquippedPrefix: up
+    foldedHeldPrefix: up
+  - type: Sprite
+    sprite: Clothing/Head/Hats/ushanka.rsi
+    layers:
+    - state: icon
+      map: [ "unfoldedLayer" ]
+    - state: icon-up
+      map: ["foldedLayer"]
+      visible: false
+
 
 - type: entity
   parent: ClothingHeadBase