]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Mothroaches can now wear hamster-wearable clothes + pet inventory tweaks (#28956)
authorVerm <32827189+Vermidia@users.noreply.github.com>
Tue, 20 Aug 2024 04:20:12 +0000 (23:20 -0500)
committerGitHub <noreply@github.com>
Tue, 20 Aug 2024 04:20:12 +0000 (14:20 +1000)
* moth displacement + inventory tweaks

* Fix off by 1 on the head sprites

* Move files to main mothroach folder

* Fix mask up a bit

* Fix side mask sprites

* Change format because it changed forever ago

20 files changed:
Resources/Prototypes/Catalog/Cargo/cargo_livestock.yml
Resources/Prototypes/Entities/Mobs/NPCs/animals.yml
Resources/Prototypes/InventoryTemplates/hamster_inventory_template.yml
Resources/Prototypes/InventoryTemplates/pet_inventory_template.yml
Resources/Textures/Mobs/Animals/mothroach/displacement.rsi/eyes.png [new file with mode: 0644]
Resources/Textures/Mobs/Animals/mothroach/displacement.rsi/head.png [new file with mode: 0644]
Resources/Textures/Mobs/Animals/mothroach/displacement.rsi/mask.png [new file with mode: 0644]
Resources/Textures/Mobs/Animals/mothroach/displacement.rsi/meta.json [new file with mode: 0644]
Resources/Textures/Mobs/Animals/mothroach/displacement.rsi/neck.png [new file with mode: 0644]
Resources/Textures/Mobs/Animals/mothroach/displacement.rsi/suitstorage.png [new file with mode: 0644]
Resources/Textures/Mobs/Animals/mothroach/mothroach.rsi/0-equipped-HELMET.png [moved from Resources/Textures/Mobs/Animals/mothroach.rsi/0-equipped-HELMET.png with 100% similarity]
Resources/Textures/Mobs/Animals/mothroach/mothroach.rsi/icon.png [moved from Resources/Textures/Mobs/Animals/mothroach.rsi/icon.png with 100% similarity]
Resources/Textures/Mobs/Animals/mothroach/mothroach.rsi/inhand-left.png [moved from Resources/Textures/Mobs/Animals/mothroach.rsi/inhand-left.png with 100% similarity]
Resources/Textures/Mobs/Animals/mothroach/mothroach.rsi/inhand-right.png [moved from Resources/Textures/Mobs/Animals/mothroach.rsi/inhand-right.png with 100% similarity]
Resources/Textures/Mobs/Animals/mothroach/mothroach.rsi/meta.json [moved from Resources/Textures/Mobs/Animals/mothroach.rsi/meta.json with 100% similarity]
Resources/Textures/Mobs/Animals/mothroach/mothroach.rsi/mothroach-moving.png [moved from Resources/Textures/Mobs/Animals/mothroach.rsi/mothroach-moving.png with 100% similarity]
Resources/Textures/Mobs/Animals/mothroach/mothroach.rsi/mothroach.png [moved from Resources/Textures/Mobs/Animals/mothroach.rsi/mothroach.png with 100% similarity]
Resources/Textures/Mobs/Animals/mothroach/mothroach.rsi/mothroach_dead.png [moved from Resources/Textures/Mobs/Animals/mothroach.rsi/mothroach_dead.png with 100% similarity]
Resources/Textures/Mobs/Animals/mothroach/mothroach.rsi/mothroach_lazy.png [moved from Resources/Textures/Mobs/Animals/mothroach.rsi/mothroach_lazy.png with 100% similarity]
Resources/Textures/Mobs/Animals/mothroach/mothroach.rsi/mothroach_sleep.png [moved from Resources/Textures/Mobs/Animals/mothroach.rsi/mothroach_sleep.png with 100% similarity]

index f44cb61f7377fb395209dacd1be31d5410140267..667b83ec3fdf3fe3c9cb40e3cf536f4d4b72475d 100644 (file)
 - type: cargoProduct
   id: LivestockMothroach
   icon:
-    sprite: Mobs/Animals/mothroach.rsi
+    sprite: Mobs/Animals/mothroach/mothroach.rsi
     state: mothroach
   product: CrateNPCMothroach
   cost: 5000
index a403486338d5fffe2670632e78e6295eface41d8..7d3acddcfe171ac2558c3db9e9ee7d9cbdad90ab 100644 (file)
     insertingState: inserting_mothroach
   - type: MothAccent
   - type: Sprite
-    sprite: Mobs/Animals/mothroach.rsi
+    sprite: Mobs/Animals/mothroach/mothroach.rsi
     layers:
     - map: ["enum.DamageStateVisualLayers.Base", "movement"]
       state: mothroach
     size: Normal
   - type: Clothing
     quickEquip: false
-    sprite: Mobs/Animals/mothroach.rsi
+    sprite: Mobs/Animals/mothroach/mothroach.rsi
     equippedPrefix: 0
     slots:
     - HEAD
   - type: FireVisuals
     sprite: Mobs/Effects/onfire.rsi
     normalState: Mouse_burning
+  - type: Strippable
+  - type: UserInterface
+    interfaces:
+      enum.StrippingUiKey.Key:
+        type: StrippableBoundUserInterface
+  - type: InventorySlots
+  - type: Inventory
+    speciesId: hamster
+    templateId: hamster
+    displacements:
+      head:
+        sizeMaps:
+          32:
+            sprite: Mobs/Animals/mothroach/displacement.rsi
+            state: head
+      mask:
+        sizeMaps:
+          32:
+            sprite: Mobs/Animals/mothroach/displacement.rsi
+            state: mask
+      suitstorage:
+        sizeMaps:
+          32:
+            sprite: Mobs/Animals/mothroach/displacement.rsi
+            state: suitstorage
+      eyes:
+        sizeMaps:
+          32:
+            sprite: Mobs/Animals/mothroach/displacement.rsi
+            state: eyes
+      neck:
+        sizeMaps:
+          32:
+            sprite: Mobs/Animals/mothroach/displacement.rsi
+            state: neck
 
 
 # Note that the mallard duck is actually a male drake mallard, with the brown duck being the female variant of the same species, however ss14 lacks sex specific textures
index 3170417d9d76f1bbfd4e0cca5105fed29080bcf0..f48ae94e692e8e05e679bde4651172fb6c554d39 100644 (file)
@@ -15,7 +15,7 @@
     slotTexture: neck
     slotFlags: NECK
     uiWindowPos: 0,1
-    strippingWindowPos: 1,0
+    strippingWindowPos: 0,1
     displayName: Neck
     whitelist:
       tags:
@@ -24,7 +24,7 @@
     slotTexture: glasses
     slotFlags: EYES
     stripTime: 3
-    uiWindowPos: 0,1
+    uiWindowPos: 0,2
     strippingWindowPos: 0,0
     displayName: Eyes
     whitelist:
@@ -33,9 +33,8 @@
   - name: suitstorage
     slotTexture: suit_storage
     slotFlags: SUITSTORAGE
-    slotGroup: SecondHotbar
     stripTime: 3
-    uiWindowPos: 2,0
+    uiWindowPos: 1,0
     strippingWindowPos: 2,5
     displayName: Suit Storage
     whitelist:
index 1297b65d8d9a94378bd238514c52fcf7814208d1..e6c2984221a2e19eb2e08b4d61bc59c914ab46f3 100644 (file)
@@ -4,7 +4,7 @@
   - name: mask
     slotTexture: mask
     slotFlags: MASK
-    uiWindowPos: 1,0
+    uiWindowPos: 0,2
     strippingWindowPos: 1,1
     displayName: Mask
     whitelist:
@@ -14,9 +14,8 @@
   - name: suitstorage
     slotTexture: suit_storage
     slotFlags: SUITSTORAGE
-    slotGroup: SecondHotbar
     stripTime: 3
-    uiWindowPos: 2,0
+    uiWindowPos: 0,1
     strippingWindowPos: 2,5
     displayName: Suit Storage
     whitelist:
diff --git a/Resources/Textures/Mobs/Animals/mothroach/displacement.rsi/eyes.png b/Resources/Textures/Mobs/Animals/mothroach/displacement.rsi/eyes.png
new file mode 100644 (file)
index 0000000..2cb7e55
Binary files /dev/null and b/Resources/Textures/Mobs/Animals/mothroach/displacement.rsi/eyes.png differ
diff --git a/Resources/Textures/Mobs/Animals/mothroach/displacement.rsi/head.png b/Resources/Textures/Mobs/Animals/mothroach/displacement.rsi/head.png
new file mode 100644 (file)
index 0000000..d77878f
Binary files /dev/null and b/Resources/Textures/Mobs/Animals/mothroach/displacement.rsi/head.png differ
diff --git a/Resources/Textures/Mobs/Animals/mothroach/displacement.rsi/mask.png b/Resources/Textures/Mobs/Animals/mothroach/displacement.rsi/mask.png
new file mode 100644 (file)
index 0000000..5eb6ea0
Binary files /dev/null and b/Resources/Textures/Mobs/Animals/mothroach/displacement.rsi/mask.png differ
diff --git a/Resources/Textures/Mobs/Animals/mothroach/displacement.rsi/meta.json b/Resources/Textures/Mobs/Animals/mothroach/displacement.rsi/meta.json
new file mode 100644 (file)
index 0000000..30fcee2
--- /dev/null
@@ -0,0 +1,35 @@
+{
+    "version": 1,
+    "license": "CC-BY-SA-3.0",
+    "copyright": "Made by Vermidia",
+    "size": {
+        "x": 32,
+        "y": 32
+    },
+    "load": {
+        "srgb": false
+    },
+    "states": [
+        {
+            "name": "head",
+            "directions": 4
+        },
+        {
+            "name": "mask",
+            "directions": 4
+        },
+        {
+            "name": "suitstorage",
+            "directions": 4
+        },
+        {
+            "name": "eyes",
+            "directions": 4
+        },
+        {
+            "name": "neck",
+            "directions": 4
+        }
+    ]
+}
+
diff --git a/Resources/Textures/Mobs/Animals/mothroach/displacement.rsi/neck.png b/Resources/Textures/Mobs/Animals/mothroach/displacement.rsi/neck.png
new file mode 100644 (file)
index 0000000..c503f75
Binary files /dev/null and b/Resources/Textures/Mobs/Animals/mothroach/displacement.rsi/neck.png differ
diff --git a/Resources/Textures/Mobs/Animals/mothroach/displacement.rsi/suitstorage.png b/Resources/Textures/Mobs/Animals/mothroach/displacement.rsi/suitstorage.png
new file mode 100644 (file)
index 0000000..b37a813
Binary files /dev/null and b/Resources/Textures/Mobs/Animals/mothroach/displacement.rsi/suitstorage.png differ