]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Add default whistle + whistles reorganize (#27676)
authorlzk <124214523+lzk228@users.noreply.github.com>
Sun, 5 May 2024 14:42:35 +0000 (16:42 +0200)
committerGitHub <noreply@github.com>
Sun, 5 May 2024 14:42:35 +0000 (16:42 +0200)
* Add default whistle + whistle reorganize

* aaa

* fux?

* fiiiiix???

* Revert "fiiiiix???"

This reverts commit 15353465d58db615185afa8c549e1819099c1a5b.

* Apply suggestions from code review

Co-authored-by: Tayrtahn <tayrtahn@gmail.com>
---------

Co-authored-by: Tayrtahn <tayrtahn@gmail.com>
Resources/Prototypes/Entities/Objects/Fun/whistles.yml
Resources/Prototypes/Entities/Structures/Machines/Computers/arcades.yml
Resources/Textures/Clothing/Neck/Misc/whistles.rsi/meta.json [deleted file]
Resources/Textures/Objects/Fun/whistle.rsi/meta.json [deleted file]
Resources/Textures/Objects/Fun/whistles.rsi/equipped-NECK.png [new file with mode: 0644]
Resources/Textures/Objects/Fun/whistles.rsi/meta.json [new file with mode: 0644]
Resources/Textures/Objects/Fun/whistles.rsi/sec-equipped-NECK.png [new file with mode: 0644]
Resources/Textures/Objects/Fun/whistles.rsi/sec.png [moved from Resources/Textures/Objects/Fun/whistle.rsi/securityWhistle.png with 100% similarity]
Resources/Textures/Objects/Fun/whistles.rsi/trench-equipped-NECK.png [moved from Resources/Textures/Clothing/Neck/Misc/whistles.rsi/equipped-NECK.png with 100% similarity]
Resources/Textures/Objects/Fun/whistles.rsi/trench.png [moved from Resources/Textures/Clothing/Neck/Misc/whistles.rsi/icon.png with 100% similarity]
Resources/Textures/Objects/Fun/whistles.rsi/whistle.png [new file with mode: 0644]

index 10c41efc54af08331d803536f8ad61c55d0f39c2..667d5da11ca2b662d2c9752501f56f48e151c596 100644 (file)
@@ -6,8 +6,12 @@
   description: Someone forgot to turn off kettle?
   components:
   - type: Item
+    sprite: Objects/Fun/whistles.rsi
     size: Tiny
+  - type: Sprite
+    sprite: Objects/Fun/whistles.rsi
   - type: Clothing
+    sprite: Objects/Fun/whistles.rsi
     quickEquip: false
     slots: neck
   - type: UseDelay
     sound:
       collection: BaseWhistle
   - type: Whistle
-    distance: 5
+    distance: 3
+
+- type: entity
+  parent: BaseWhistle
+  id: Whistle
+  components:
+  - type: Sprite
+    state: whistle
 
 - type: entity
   parent: BaseWhistle
   description: Sound of it make you feel fear.
   components:
   - type: Sprite
-    sprite: Objects/Fun/whistle.rsi
-    state: securityWhistle
-  - type: Item
-    sprite: Objects/Fun/whistle.rsi
+    state: sec
+  - type: Clothing
+    equippedPrefix: sec
+  - type: Whistle
+    distance: 5
 
 - type: entity
   parent: BaseWhistle
   description: A whistle used by Syndicate commanders to draw attention. Avanti!
   components:
   - type: Sprite
-    sprite: Clothing/Neck/Misc/whistles.rsi
-    state: icon
+    state: trench
   - type: Clothing
-    sprite: Clothing/Neck/Misc/whistles.rsi
-    quickEquip: False
-    slots:
-    - neck
+    equippedPrefix: trench
   - type: EmitSoundOnUse
     sound:
       collection: TrenchWhistle
index 6a351d47f0b746935648e73cfa73c39355424029..8b2cb5d5c7b95aa0ce692a0dd97c48070bd96243 100644 (file)
     - PlushiePenguin
     - PlushieHuman
     - ClothingHeadHatCowboyRed
+    - Whistle
   - type: WiresPanel
   - type: Wires
     layoutId: Arcade
diff --git a/Resources/Textures/Clothing/Neck/Misc/whistles.rsi/meta.json b/Resources/Textures/Clothing/Neck/Misc/whistles.rsi/meta.json
deleted file mode 100644 (file)
index 31cda14..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-{
-  "version": 1,
-  "license": "CC-BY-SA-3.0",
-  "copyright": "Drawn by Firewatchin on Discord.",
-  "size": {
-    "x": 32,
-    "y": 32
-  },
-
-  "states": [
-    {
-      "name": "equipped-NECK",
-      "directions": 4
-    },
-    {
-      "name": "icon"
-    }
-  ]
-}
diff --git a/Resources/Textures/Objects/Fun/whistle.rsi/meta.json b/Resources/Textures/Objects/Fun/whistle.rsi/meta.json
deleted file mode 100644 (file)
index 59159ff..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-{
-    "version": 1,
-    "license": "CC-BY-SA-3.0",
-    "copyright": "Made by Foleps (discord)",
-    "size": {
-        "x": 32,
-        "y": 32
-    },
-    "states": [
-        {
-            "name": "securityWhistle"
-        }
-    ]
-}
diff --git a/Resources/Textures/Objects/Fun/whistles.rsi/equipped-NECK.png b/Resources/Textures/Objects/Fun/whistles.rsi/equipped-NECK.png
new file mode 100644 (file)
index 0000000..89fdd59
Binary files /dev/null and b/Resources/Textures/Objects/Fun/whistles.rsi/equipped-NECK.png differ
diff --git a/Resources/Textures/Objects/Fun/whistles.rsi/meta.json b/Resources/Textures/Objects/Fun/whistles.rsi/meta.json
new file mode 100644 (file)
index 0000000..4f59ad6
--- /dev/null
@@ -0,0 +1,33 @@
+{
+  "version": 1,
+  "license": "CC-BY-SA-3.0",
+  "copyright": "sec and whistle made by Foleps (discord), trench by Firewatchin (discord)",
+  "size": {
+    "x": 32,
+    "y": 32
+  },
+
+  "states": [
+    {
+      "name": "equipped-NECK",
+      "directions": 4
+    },
+    {
+      "name": "whistle"
+    },
+    {
+      "name": "sec-equipped-NECK",
+      "directions": 4
+    },
+    {
+      "name": "sec"
+    },
+    {
+      "name": "trench-equipped-NECK",
+      "directions": 4
+    },
+    {
+      "name": "trench"
+    }
+  ]
+}
diff --git a/Resources/Textures/Objects/Fun/whistles.rsi/sec-equipped-NECK.png b/Resources/Textures/Objects/Fun/whistles.rsi/sec-equipped-NECK.png
new file mode 100644 (file)
index 0000000..053c457
Binary files /dev/null and b/Resources/Textures/Objects/Fun/whistles.rsi/sec-equipped-NECK.png differ
diff --git a/Resources/Textures/Objects/Fun/whistles.rsi/whistle.png b/Resources/Textures/Objects/Fun/whistles.rsi/whistle.png
new file mode 100644 (file)
index 0000000..35db0ff
Binary files /dev/null and b/Resources/Textures/Objects/Fun/whistles.rsi/whistle.png differ