]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
[Entity] Add Ian's Backpack (#15519)
authorRobbyTheFish <83671165+RobbyTheFish@users.noreply.github.com>
Wed, 19 Apr 2023 07:40:25 +0000 (10:40 +0300)
committerGitHub <noreply@github.com>
Wed, 19 Apr 2023 07:40:25 +0000 (01:40 -0600)
* Initial commit

Add Ian's backpack

* Fixed inhand sprites

* Add fill to HoP Locker

Added Ian's 50% probability chance to spawn Ian's backpack in HoP locker

Resources/Prototypes/Catalog/Fills/Lockers/heads.yml
Resources/Prototypes/Entities/Clothing/Back/backpacks.yml
Resources/Prototypes/SoundCollections/ian_bark.yml [new file with mode: 0644]
Resources/Textures/Clothing/Back/Backpacks/ian.rsi/equipped-BACKPACK.png [new file with mode: 0644]
Resources/Textures/Clothing/Back/Backpacks/ian.rsi/icon.png [new file with mode: 0644]
Resources/Textures/Clothing/Back/Backpacks/ian.rsi/inhand-left.png [new file with mode: 0644]
Resources/Textures/Clothing/Back/Backpacks/ian.rsi/inhand-right.png [new file with mode: 0644]
Resources/Textures/Clothing/Back/Backpacks/ian.rsi/meta.json [new file with mode: 0644]

index ee8f4b440cf207b9dc2b1db80e6a2c16228794e8..bc0d020ecb3e5db4c212b59d76b87bfecbcd8905 100644 (file)
@@ -89,6 +89,8 @@
       - id: RubberStampHop
       - id: BoxEncryptionKeyPassenger
       - id: BoxEncryptionKeyService
+      - id: ClothingBackpackIan
+        prob: 0.5
 
 - type: entity
   id: LockerChiefEngineerFilled
index afa4d46cf8b716f0f5476a2885604e1fc43dac64..e898f592123d89427249a7ad64111b0710fc2fec 100644 (file)
     storageOpenSound:
       collection: BikeHorn
 
+- type: entity
+  parent: ClothingBackpack
+  id: ClothingBackpackIan
+  name: Ian's backpack
+  description: Sometimes he wears it.
+  components:
+  - type: Sprite
+    sprite: Clothing/Back/Backpacks/ian.rsi
+  - type: Storage
+    storageOpenSound:
+      collection: IanBark
+
 - type: entity
   parent: ClothingBackpack
   id: ClothingBackpackSecurity
diff --git a/Resources/Prototypes/SoundCollections/ian_bark.yml b/Resources/Prototypes/SoundCollections/ian_bark.yml
new file mode 100644 (file)
index 0000000..e0db3a4
--- /dev/null
@@ -0,0 +1,4 @@
+- type: soundCollection
+  id: IanBark
+  files:
+  - /Audio/Animals/small_dog_bark_happy.ogg
diff --git a/Resources/Textures/Clothing/Back/Backpacks/ian.rsi/equipped-BACKPACK.png b/Resources/Textures/Clothing/Back/Backpacks/ian.rsi/equipped-BACKPACK.png
new file mode 100644 (file)
index 0000000..45bb7f1
Binary files /dev/null and b/Resources/Textures/Clothing/Back/Backpacks/ian.rsi/equipped-BACKPACK.png differ
diff --git a/Resources/Textures/Clothing/Back/Backpacks/ian.rsi/icon.png b/Resources/Textures/Clothing/Back/Backpacks/ian.rsi/icon.png
new file mode 100644 (file)
index 0000000..d91aa5d
Binary files /dev/null and b/Resources/Textures/Clothing/Back/Backpacks/ian.rsi/icon.png differ
diff --git a/Resources/Textures/Clothing/Back/Backpacks/ian.rsi/inhand-left.png b/Resources/Textures/Clothing/Back/Backpacks/ian.rsi/inhand-left.png
new file mode 100644 (file)
index 0000000..9189e09
Binary files /dev/null and b/Resources/Textures/Clothing/Back/Backpacks/ian.rsi/inhand-left.png differ
diff --git a/Resources/Textures/Clothing/Back/Backpacks/ian.rsi/inhand-right.png b/Resources/Textures/Clothing/Back/Backpacks/ian.rsi/inhand-right.png
new file mode 100644 (file)
index 0000000..ebd294f
Binary files /dev/null and b/Resources/Textures/Clothing/Back/Backpacks/ian.rsi/inhand-right.png differ
diff --git a/Resources/Textures/Clothing/Back/Backpacks/ian.rsi/meta.json b/Resources/Textures/Clothing/Back/Backpacks/ian.rsi/meta.json
new file mode 100644 (file)
index 0000000..fe67588
--- /dev/null
@@ -0,0 +1,26 @@
+{
+    "version": 1,
+    "license": "CC-BY-SA-3.0",
+    "copyright": "Made by RobbyTheFish(github) for ss14.",
+    "size": {
+        "x": 32,
+        "y": 32
+    },
+    "states": [
+        {
+            "name": "icon"
+        },
+        {
+            "name": "equipped-BACKPACK",
+            "directions": 4
+        },
+        {
+            "name": "inhand-left",
+            "directions": 4
+        },
+        {
+            "name": "inhand-right",
+            "directions": 4
+        }
+    ]
+}