]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Mothroach movement state (#24385)
authorMilenVolf <63782763+MilenVolf@users.noreply.github.com>
Mon, 22 Jan 2024 02:01:42 +0000 (05:01 +0300)
committerGitHub <noreply@github.com>
Mon, 22 Jan 2024 02:01:42 +0000 (19:01 -0700)
Moth movement sprite

Resources/Prototypes/Entities/Mobs/NPCs/animals.yml
Resources/Textures/Mobs/Animals/mothroach.rsi/icon.png
Resources/Textures/Mobs/Animals/mothroach.rsi/meta.json
Resources/Textures/Mobs/Animals/mothroach.rsi/mothroach-moving.png [new file with mode: 0644]
Resources/Textures/Mobs/Animals/mothroach.rsi/mothroach.png

index 6e0df641d735a2ffa60f3c57b3004876638fc177..804dc23006f4467dc843c8832edda69a2846ee3c 100644 (file)
   - type: Sprite
     sprite: Mobs/Animals/mothroach.rsi
     layers:
-    - map: ["enum.DamageStateVisualLayers.Base"]
+    - map: ["enum.DamageStateVisualLayers.Base", "movement"]
       state: mothroach
+  - type: SpriteMovement
+    movementLayers:
+      movement:
+        state: mothroach-moving
+    noMovementLayers:
+      movement:
+        state: mothroach
   - type: Item
     size: Normal
   - type: Clothing
index 9113f1c1713668111e22113555f546f2029a3393..ff936eb6b5fcc6baf1490daa238789558390f9a3 100644 (file)
Binary files a/Resources/Textures/Mobs/Animals/mothroach.rsi/icon.png and b/Resources/Textures/Mobs/Animals/mothroach.rsi/icon.png differ
index e7b8658cd8a0077a4c236f895d741e851b0e589f..165cbf6bf8c00c4762b80e47bab394832ae7c90e 100644 (file)
@@ -1,7 +1,7 @@
 {
   "version": 1,
   "license": "CC-BY-SA-3.0",
-  "copyright": "Taken from fulpstation at https://github.com/fulpstation/fulpstation/commit/edb232b692ec9f356ec554ea1971da552b9bc447",
+  "copyright": "Taken from fulpstation at https://github.com/fulpstation/fulpstation/commit/edb232b692ec9f356ec554ea1971da552b9bc447. 'mothroach-moving' by MilenVolf",
   "size": {
     "x": 32,
     "y": 32
       "name": "mothroach",
       "directions": 4
     },
+    {
+      "name": "mothroach-moving",
+      "directions": 4,
+      "delays": [
+        [
+          0.2,
+          0.2,
+          0.2
+        ],
+        [
+          0.2,
+          0.2,
+          0.2
+        ],
+        [
+          0.2,
+          0.2,
+          0.2
+        ],
+        [
+          0.2,
+          0.2,
+          0.2
+        ]
+      ]
+    },
     {
       "name": "mothroach_lazy",
       "directions": 4
diff --git a/Resources/Textures/Mobs/Animals/mothroach.rsi/mothroach-moving.png b/Resources/Textures/Mobs/Animals/mothroach.rsi/mothroach-moving.png
new file mode 100644 (file)
index 0000000..4fcaac9
Binary files /dev/null and b/Resources/Textures/Mobs/Animals/mothroach.rsi/mothroach-moving.png differ
index 305f8fb89f8620cc887ffc91e49530f9a5e30080..de79a55e4673ca3471b06c796739549cc5c65ee9 100644 (file)
Binary files a/Resources/Textures/Mobs/Animals/mothroach.rsi/mothroach.png and b/Resources/Textures/Mobs/Animals/mothroach.rsi/mothroach.png differ