]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Crowbar variants (#28988)
authorUbaser <134914314+UbaserB@users.noreply.github.com>
Fri, 9 Aug 2024 19:29:00 +0000 (05:29 +1000)
committerGitHub <noreply@github.com>
Fri, 9 Aug 2024 19:29:00 +0000 (13:29 -0600)
* add

* comma

* sprites

* yaml-ify

* add s

* lathe and engi belt

* yes

* fix maybe

* progress

* nearly there

* fix

* fix yaml linter having a stroke

21 files changed:
Resources/Prototypes/Catalog/Fills/Items/belt.yml
Resources/Prototypes/Catalog/Fills/Items/toolboxes.yml
Resources/Prototypes/Catalog/VendingMachines/Inventories/engivend.yml
Resources/Prototypes/Entities/Objects/Tools/crowbars.yml [new file with mode: 0644]
Resources/Prototypes/Entities/Objects/Tools/tools.yml
Resources/Prototypes/Entities/Structures/Machines/lathe.yml
Resources/Prototypes/Recipes/Lathes/tools.yml
Resources/Textures/Objects/Tools/crowbar.rsi/cover-equipped-BELT.png [new file with mode: 0644]
Resources/Textures/Objects/Tools/crowbar.rsi/cover-icon.png [new file with mode: 0644]
Resources/Textures/Objects/Tools/crowbar.rsi/cover-inhand-left.png [new file with mode: 0644]
Resources/Textures/Objects/Tools/crowbar.rsi/cover-inhand-right.png [new file with mode: 0644]
Resources/Textures/Objects/Tools/crowbar.rsi/equipped-BELT.png
Resources/Textures/Objects/Tools/crowbar.rsi/green-storage.png [new file with mode: 0644]
Resources/Textures/Objects/Tools/crowbar.rsi/meta.json
Resources/Textures/Objects/Tools/crowbar.rsi/orange-storage.png [new file with mode: 0644]
Resources/Textures/Objects/Tools/crowbar.rsi/red-equipped-BELT.png [deleted file]
Resources/Textures/Objects/Tools/crowbar.rsi/red-icon.png [deleted file]
Resources/Textures/Objects/Tools/crowbar.rsi/red-inhand-left.png [deleted file]
Resources/Textures/Objects/Tools/crowbar.rsi/red-inhand-right.png [deleted file]
Resources/Textures/Objects/Tools/crowbar.rsi/red-storage.png
Resources/Textures/Objects/Tools/crowbar.rsi/yellow-storage.png [new file with mode: 0644]

index 1449c9757b913ecede51dec66aa6d078299770e9..6915f321c97ec0c51e29b5963d91104ff7811e85 100644 (file)
@@ -19,7 +19,7 @@
   components:
   - type: StorageFill
     contents:
-      - id: Crowbar
+      - id: CrowbarYellow
       - id: Wrench
       - id: Screwdriver
       - id: Wirecutter
index 1091207bba4748914f9e568838f98412a488ef71..ac9ab4deaa615c80128bf95d904ca2dbee6731db 100644 (file)
@@ -32,7 +32,7 @@
   - type: StorageFill
     contents:
       - id: Screwdriver
-      - id: Crowbar
+      - id: CrowbarOrange
       - id: Wirecutter
       - id: CableApcStack10
       - id: CableMVStack10
@@ -53,7 +53,7 @@
   - type: StorageFill
     contents:
       - id: Screwdriver
-      - id: Crowbar
+      - id: CrowbarOrange
       - id: Wirecutter
       - id: CableApcStack10
       - id: CableMVStack10
@@ -94,7 +94,7 @@
   components:
   - type: StorageFill
     contents:
-      - id: Crowbar
+      - id: CrowbarOrange
       - id: Wrench
       - id: Welder
       - id: Wirecutter
index 9757b14e58e037c429d6e6f9b5dae606998d39f6..a35793b4bd7b3a527d975040b4a02a3ce3ebd94a 100644 (file)
@@ -3,6 +3,7 @@
   startingInventory:
     ClothingEyesGlassesMeson: 4
     ClothingHeadHatWelding: 6
+    CrowbarYellow: 8
     Multitool: 4
     NetworkConfigurator: 5
     PowerCellMedium: 5
diff --git a/Resources/Prototypes/Entities/Objects/Tools/crowbars.yml b/Resources/Prototypes/Entities/Objects/Tools/crowbars.yml
new file mode 100644 (file)
index 0000000..d57bea8
--- /dev/null
@@ -0,0 +1,195 @@
+- type: entity
+  name: crowbar
+  parent: BaseItem
+  id: BaseCrowbar
+  abstract: true
+  components:
+  - type: EmitSoundOnLand
+    sound:
+      path: /Audio/Items/crowbar_drop.ogg
+  - type: Tag
+    tags:
+    - Crowbar
+  - type: MeleeWeapon
+    wideAnimationRotation: -135
+    damage:
+      types:
+        Blunt: 8
+    soundHit:
+      collection: MetalThud
+  - type: Tool
+    qualities:
+      - Prying
+    useSound:
+      path: /Audio/Items/crowbar.ogg
+  - type: ToolTileCompatible
+  - type: PhysicalComposition
+    materialComposition:
+      Steel: 100
+  - type: StaticPrice
+    price: 22
+  - type: Prying
+  - type: Clothing
+    quickEquip: false
+    slots:
+    - Belt
+  - type: Item
+    size: Normal
+    shape:
+    - 0,0,0,1
+
+# Standard (grey) Crowbar
+- type: entity
+  parent: BaseCrowbar
+  id: Crowbar
+  description: A multipurpose tool to pry open doors and fight interdimensional invaders.
+  components:
+  - type: Sprite
+    sprite: Objects/Tools/crowbar.rsi
+    state: icon
+  - type: Item
+    sprite: Objects/Tools/crowbar.rsi
+    storedSprite:
+      sprite: Objects/Tools/crowbar.rsi
+      state: storage
+
+# Emergency (red) Crowbar
+- type: entity
+  name: emergency crowbar
+  parent: BaseCrowbar
+  id: CrowbarRed
+  description: A pocket crowbar designed to pry open doors and firelocks during power outages.
+  components:
+  - type: Tag
+    tags:
+    - Crowbar
+    - CrowbarRed
+  - type: Sprite
+    sprite: Objects/Tools/crowbar.rsi
+    layers:
+    - state: icon
+    - state: cover-icon
+      color: "#990000"
+  - type: Item
+    sprite: Objects/Tools/crowbar.rsi
+    storedSprite:
+      state: red-storage
+      sprite: Objects/Tools/crowbar.rsi
+    inhandVisuals:
+      left:
+      - state: inhand-left
+      - state: cover-inhand-left
+        color: "#990000"
+      right:
+      - state: inhand-right
+      - state: cover-inhand-right
+        color: "#990000"
+  - type: Clothing
+    sprite: Objects/Tools/crowbar.rsi
+    clothingVisuals:
+      belt:
+      - state: equipped-BELT
+      - state: cover-equipped-BELT
+        color: "#990000"
+
+# Autolathe (green) Crowbar
+- type: entity
+  parent: BaseCrowbar
+  id: CrowbarGreen
+  description: A multipurpose tool to pry open doors and fight interdimensional invaders, printed from an autolathe.
+  components:
+  - type: Sprite
+    sprite: Objects/Tools/crowbar.rsi
+    layers:
+    - state: icon
+    - state: cover-icon
+      color: "#00621c"
+  - type: Item
+    sprite: Objects/Tools/crowbar.rsi
+    storedSprite:
+      state: green-storage
+      sprite: Objects/Tools/crowbar.rsi
+    inhandVisuals:
+      left:
+      - state: inhand-left
+      - state: cover-inhand-left
+        color: "#00621c"
+      right:
+      - state: inhand-right
+      - state: cover-inhand-right
+        color: "#00621c"
+  - type: Clothing
+    sprite: Objects/Tools/crowbar.rsi
+    clothingVisuals:
+      belt:
+      - state: equipped-BELT
+      - state: cover-equipped-BELT
+        color: "#00621c"
+
+# Toolbox (orange) Crowbar
+- type: entity
+  parent: BaseCrowbar
+  id: CrowbarOrange
+  description: A multipurpose tool to pry open doors and fight interdimensional invaders, found in toolboxes.
+  components:
+  - type: Sprite
+    sprite: Objects/Tools/crowbar.rsi
+    layers:
+    - state: icon
+    - state: cover-icon
+      color: "#673800"
+  - type: Item
+    sprite: Objects/Tools/crowbar.rsi
+    storedSprite:
+      state: orange-storage
+      sprite: Objects/Tools/crowbar.rsi
+    inhandVisuals:
+      left:
+      - state: inhand-left
+      - state: cover-inhand-left
+        color: "#673800"
+      right:
+      - state: inhand-right
+      - state: cover-inhand-right
+        color: "#673800"
+  - type: Clothing
+    sprite: Objects/Tools/crowbar.rsi
+    clothingVisuals:
+      belt:
+      - state: equipped-BELT
+      - state: cover-equipped-BELT
+        color: "#673800"
+
+# Engineering (yellow) Crowbar
+- type: entity
+  parent: BaseCrowbar
+  id: CrowbarYellow
+  description: A pocket crowbar designed to pry open doors and firelocks during power outages, dispensed from Engineering.
+  components:
+  - type: Sprite
+    sprite: Objects/Tools/crowbar.rsi
+    layers:
+    - state: icon
+    - state: cover-icon
+      color: "#968000"
+  - type: Item
+    sprite: Objects/Tools/crowbar.rsi
+    storedSprite:
+      state: yellow-storage
+      sprite: Objects/Tools/crowbar.rsi
+    inhandVisuals:
+      left:
+      - state: inhand-left
+      - state: cover-inhand-left
+        color: "#968000"
+      right:
+      - state: inhand-right
+      - state: cover-inhand-right
+        color: "#968000"
+  - type: Clothing
+    sprite: Objects/Tools/crowbar.rsi
+    clothingVisuals:
+      belt:
+      - state: equipped-BELT
+      - state: cover-equipped-BELT
+        color: "#968000"
index d420aa309d95dc16291ad1dc39e79caa912057ea..67251c87cae73d46d57c2736cd0348b6d14183ba 100644 (file)
   - type: StaticPrice
     price: 22
 
-- type: entity
-  name: crowbar
-  parent: BaseItem
-  id: Crowbar
-  description: A multipurpose tool to pry open doors and fight interdimensional invaders.
-  components:
-  - type: EmitSoundOnLand
-    sound:
-      path: /Audio/Items/crowbar_drop.ogg
-  - type: Tag
-    tags:
-    - Crowbar
-  - type: Sprite
-    sprite: Objects/Tools/crowbar.rsi
-    state: icon
-  - type: Item
-    sprite: Objects/Tools/crowbar.rsi
-    size: Small
-    storedSprite:
-      sprite: Objects/Tools/crowbar.rsi
-      state: storage
-  - type: MeleeWeapon
-    wideAnimationRotation: -135
-    damage:
-      types:
-        Blunt: 8
-    soundHit:
-      collection: MetalThud
-  - type: Tool
-    qualities:
-      - Prying
-    useSound:
-      path: /Audio/Items/crowbar.ogg
-  - type: ToolTileCompatible
-  - type: PhysicalComposition
-    materialComposition:
-      Steel: 100
-  - type: StaticPrice
-    price: 22
-  - type: Prying
-
-- type: entity
-  parent: Crowbar
-  id: CrowbarRed
-  name: emergency crowbar
-  components:
-  - type: Tag
-    tags:
-    - Crowbar
-    - CrowbarRed
-  - type: Sprite
-    state: red-icon
-  - type: Item
-    heldPrefix: red
-    storedSprite:
-      sprite: Objects/Tools/crowbar.rsi
-      state: red-storage
-
 - type: entity
   name: multitool
   parent: BaseItem
index 8f1ff07547bac9f09a495149b3cb75d2cf91534e..38d287cce1a1f3649c69a5738f3c0f2743906cf3 100644 (file)
       - Screwdriver
       - Welder
       - Wrench
-      - Crowbar
+      - CrowbarGreen
       - Multitool
       - NetworkConfigurator
       - SprayPainter
index 95974d9837ab483d58b37824e79bfb11040f569e..67d412b57107d3e4183666b637ca8bb80db5088e 100644 (file)
@@ -63,8 +63,8 @@
     Steel: 30
 
 - type: latheRecipe
-  id: Crowbar
-  result: Crowbar
+  id: CrowbarGreen
+  result: CrowbarGreen
   category: Tools
   completetime: 2
   materials:
diff --git a/Resources/Textures/Objects/Tools/crowbar.rsi/cover-equipped-BELT.png b/Resources/Textures/Objects/Tools/crowbar.rsi/cover-equipped-BELT.png
new file mode 100644 (file)
index 0000000..dada0c0
Binary files /dev/null and b/Resources/Textures/Objects/Tools/crowbar.rsi/cover-equipped-BELT.png differ
diff --git a/Resources/Textures/Objects/Tools/crowbar.rsi/cover-icon.png b/Resources/Textures/Objects/Tools/crowbar.rsi/cover-icon.png
new file mode 100644 (file)
index 0000000..bca60ba
Binary files /dev/null and b/Resources/Textures/Objects/Tools/crowbar.rsi/cover-icon.png differ
diff --git a/Resources/Textures/Objects/Tools/crowbar.rsi/cover-inhand-left.png b/Resources/Textures/Objects/Tools/crowbar.rsi/cover-inhand-left.png
new file mode 100644 (file)
index 0000000..6187e32
Binary files /dev/null and b/Resources/Textures/Objects/Tools/crowbar.rsi/cover-inhand-left.png differ
diff --git a/Resources/Textures/Objects/Tools/crowbar.rsi/cover-inhand-right.png b/Resources/Textures/Objects/Tools/crowbar.rsi/cover-inhand-right.png
new file mode 100644 (file)
index 0000000..6a8c0dd
Binary files /dev/null and b/Resources/Textures/Objects/Tools/crowbar.rsi/cover-inhand-right.png differ
index ecd28e1402ef5c465fa9b051afe3098838e71df1..8b586d3f1697f75509fe76a7f52ae899a236dcc8 100644 (file)
Binary files a/Resources/Textures/Objects/Tools/crowbar.rsi/equipped-BELT.png and b/Resources/Textures/Objects/Tools/crowbar.rsi/equipped-BELT.png differ
diff --git a/Resources/Textures/Objects/Tools/crowbar.rsi/green-storage.png b/Resources/Textures/Objects/Tools/crowbar.rsi/green-storage.png
new file mode 100644 (file)
index 0000000..f0d0d68
Binary files /dev/null and b/Resources/Textures/Objects/Tools/crowbar.rsi/green-storage.png differ
index d4cab89f8ef78737dd1802c3eb513bb140c0a01d..89f8108c2dc528e0de46100ce54fa0a2e26a02c6 100644 (file)
@@ -1,7 +1,7 @@
 {
   "version": 1,
   "license": "CC-BY-SA-3.0",
-  "copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/commit/eea0599511b088fdab9d43e562210cdbd51c6a98, storage and red-storage by Flareguy",
+  "copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/commit/eea0599511b088fdab9d43e562210cdbd51c6a98, cover is edited by Ubaser.",
   "size": {
     "x": 32,
     "y": 32
       "directions": 4
     },
     {
-      "name": "red-inhand-left",
-      "directions": 4
+      "name": "icon"
     },
     {
-      "name": "red-inhand-right",
+      "name": "equipped-BELT",
       "directions": 4
     },
     {
-      "name": "icon"
+      "name": "storage"
     },
     {
-      "name": "red-icon"
+      "name": "cover-inhand-left",
+      "directions": 4
     },
     {
-      "name": "equipped-BELT",
+      "name": "cover-inhand-right",
       "directions": 4
     },
     {
-      "name": "red-equipped-BELT",
-      "directions": 4
+      "name": "cover-icon"
     },
     {
-      "name": "storage"
+      "name": "cover-equipped-BELT",
+      "directions": 4
     },
     {
       "name": "red-storage"
+    },
+    {
+      "name": "green-storage"
+    },
+    {
+      "name": "orange-storage"
+    },
+    {
+      "name": "yellow-storage"
     }
   ]
 }
diff --git a/Resources/Textures/Objects/Tools/crowbar.rsi/orange-storage.png b/Resources/Textures/Objects/Tools/crowbar.rsi/orange-storage.png
new file mode 100644 (file)
index 0000000..53713b3
Binary files /dev/null and b/Resources/Textures/Objects/Tools/crowbar.rsi/orange-storage.png differ
diff --git a/Resources/Textures/Objects/Tools/crowbar.rsi/red-equipped-BELT.png b/Resources/Textures/Objects/Tools/crowbar.rsi/red-equipped-BELT.png
deleted file mode 100644 (file)
index e512032..0000000
Binary files a/Resources/Textures/Objects/Tools/crowbar.rsi/red-equipped-BELT.png and /dev/null differ
diff --git a/Resources/Textures/Objects/Tools/crowbar.rsi/red-icon.png b/Resources/Textures/Objects/Tools/crowbar.rsi/red-icon.png
deleted file mode 100644 (file)
index ac25643..0000000
Binary files a/Resources/Textures/Objects/Tools/crowbar.rsi/red-icon.png and /dev/null differ
diff --git a/Resources/Textures/Objects/Tools/crowbar.rsi/red-inhand-left.png b/Resources/Textures/Objects/Tools/crowbar.rsi/red-inhand-left.png
deleted file mode 100644 (file)
index 79cada4..0000000
Binary files a/Resources/Textures/Objects/Tools/crowbar.rsi/red-inhand-left.png and /dev/null differ
diff --git a/Resources/Textures/Objects/Tools/crowbar.rsi/red-inhand-right.png b/Resources/Textures/Objects/Tools/crowbar.rsi/red-inhand-right.png
deleted file mode 100644 (file)
index 328dfe0..0000000
Binary files a/Resources/Textures/Objects/Tools/crowbar.rsi/red-inhand-right.png and /dev/null differ
index 1d88fecb2b03e4a16657439d72d70cec7857cf38..f937f6c7d15e56d6502e99f83087b290e0fceabc 100644 (file)
Binary files a/Resources/Textures/Objects/Tools/crowbar.rsi/red-storage.png and b/Resources/Textures/Objects/Tools/crowbar.rsi/red-storage.png differ
diff --git a/Resources/Textures/Objects/Tools/crowbar.rsi/yellow-storage.png b/Resources/Textures/Objects/Tools/crowbar.rsi/yellow-storage.png
new file mode 100644 (file)
index 0000000..1730e7d
Binary files /dev/null and b/Resources/Textures/Objects/Tools/crowbar.rsi/yellow-storage.png differ