From 63a2248201c54fcbdd2e0e13e89b764c4cac0a61 Mon Sep 17 00:00:00 2001 From: 4g10w <4g10w@protonmail.com> Date: Sun, 4 May 2025 22:29:34 +0300 Subject: [PATCH] Medieval Screwdriver (#1253) * Medieval Screwdriver Prototye & Texture Added: screwdriver.rsi - in hand textures - main texture (with major help from omsoyk, tysm!) - meta file As opposed to vanilla SS14 screwdriver, this one only has one main texture. Changed: screwdriver.yml prototype - added all components from vanilla SS14 screwdriver (can be found in tools.yml prototype), except for RandomSprite component that gives random color - changed parent attribute from Screwdriver to BaseItem since we're making brand new screwdriver - all components from initial prototype remained * removed unused components * Screwdriver recipe Removed: - Screwdriver recipe from anvil (iron bar) Added: - Screwdriver recipe to workbench (wooden grip + iron bolt) To fit more with updated screwdriver visuals, recipe is updated too. --- .../Entities/Objects/Tools/screwdriver.yml | 28 ++++++++++++++++-- .../_CP14/Recipes/Workbench/Anvil/misc.yml | 13 +------- .../Recipes/Workbench/Workbench/misc.yml | 12 ++++++++ .../Tools/screwdriver.rsi/inhand-left.png | Bin 0 -> 229 bytes .../Tools/screwdriver.rsi/inhand-right.png | Bin 0 -> 228 bytes .../Objects/Tools/screwdriver.rsi/meta.json | 22 ++++++++++++++ .../Tools/screwdriver.rsi/screwdriver.png | Bin 0 -> 384 bytes 7 files changed, 60 insertions(+), 15 deletions(-) create mode 100644 Resources/Textures/_CP14/Objects/Tools/screwdriver.rsi/inhand-left.png create mode 100644 Resources/Textures/_CP14/Objects/Tools/screwdriver.rsi/inhand-right.png create mode 100644 Resources/Textures/_CP14/Objects/Tools/screwdriver.rsi/meta.json create mode 100644 Resources/Textures/_CP14/Objects/Tools/screwdriver.rsi/screwdriver.png diff --git a/Resources/Prototypes/_CP14/Entities/Objects/Tools/screwdriver.yml b/Resources/Prototypes/_CP14/Entities/Objects/Tools/screwdriver.yml index f55fca4d36..4e2bc00db0 100644 --- a/Resources/Prototypes/_CP14/Entities/Objects/Tools/screwdriver.yml +++ b/Resources/Prototypes/_CP14/Entities/Objects/Tools/screwdriver.yml @@ -1,13 +1,35 @@ - type: entity - parent: Screwdriver - id: CP14Screwdriver categories: [ ForkFiltered ] + name: screwdriver + parent: BaseItem + id: CP14Screwdriver + description: Industrial grade torque in a small screwdriving package. components: - type: CP14LockEditer - type: UseDelay delay: 1.0 + - type: EmitSoundOnLand + sound: + path: /Audio/Items/screwdriver_drop.ogg + - type: Tag + tags: + - Screwdriver + - type: Sprite + sprite: _CP14/Objects/Tools/screwdriver.rsi + state: screwdriver + - type: Item + sprite: _CP14/Objects/Tools/screwdriver.rsi + storedRotation: -90 - type: MeleeWeapon + wideAnimationRotation: -90 attackRate: 1 damage: types: - Piercing: 4 \ No newline at end of file + Piercing: 4 + soundHit: + path: "/Audio/Weapons/bladeslice.ogg" + - type: Tool + qualities: + - Screwing + useSound: + collection: Screwdriver diff --git a/Resources/Prototypes/_CP14/Recipes/Workbench/Anvil/misc.yml b/Resources/Prototypes/_CP14/Recipes/Workbench/Anvil/misc.yml index e13188f5a7..b08cb0b022 100644 --- a/Resources/Prototypes/_CP14/Recipes/Workbench/Anvil/misc.yml +++ b/Resources/Prototypes/_CP14/Recipes/Workbench/Anvil/misc.yml @@ -23,17 +23,6 @@ count: 2 result: CP14BaseWrench -- type: CP14Recipe - id: CP14Screwdriver - tag: CP14RecipeAnvil - category: Tools - craftTime: 4 - requirements: - - !type:StackResource - stack: CP14IronBar - count: 1 - result: CP14Screwdriver - - type: CP14Recipe id: CP14PlatePie tag: CP14RecipeAnvil @@ -300,4 +289,4 @@ - !type:StackResource stack: CP14CopperBar count: 1 - result: CP14EnergyCrystalMediumEmpty \ No newline at end of file + result: CP14EnergyCrystalMediumEmpty diff --git a/Resources/Prototypes/_CP14/Recipes/Workbench/Workbench/misc.yml b/Resources/Prototypes/_CP14/Recipes/Workbench/Workbench/misc.yml index a7e42aa549..825032d44c 100644 --- a/Resources/Prototypes/_CP14/Recipes/Workbench/Workbench/misc.yml +++ b/Resources/Prototypes/_CP14/Recipes/Workbench/Workbench/misc.yml @@ -216,3 +216,15 @@ - !type:ProtoIdResource protoId: CP14DyePurple result: CP14CrayonPurple + +- type: CP14Recipe + id: CP14Screwdriver + tag: CP14RecipeWorkbench + category: Tools + craftTime: 1 + requirements: + - !type:ProtoIdResource + protoId: CP14ModularGripWooden + - !type:ProtoIdResource + protoId: CP14CrossboltIron + result: CP14Screwdriver diff --git a/Resources/Textures/_CP14/Objects/Tools/screwdriver.rsi/inhand-left.png b/Resources/Textures/_CP14/Objects/Tools/screwdriver.rsi/inhand-left.png new file mode 100644 index 0000000000000000000000000000000000000000..2db1f7572d0931c80a3ab043f872ec20d9a0bb6a GIT binary patch literal 229 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=jKx9jP7LeL$-D$|=6kw0hE&XX zd+Q)?lY@Z6#e+8(Yzq`Z7^0fPrM9x=9ASF!Ce?OkMfwGSd)g1$@A596$pO^GkkGsF z{izFPs+%ph_)7lP+xoNc9G~6v@H3%vZ_Qb4l{7PW_Uzp;`I`FEuKw)aD!>2rVP=pn zh60wGmmliR-PG)Sd&--aAM_-1j^*nmzWwC#tLe!0<0b32y>Wk2QmJ%$Vf|)jc{v7; Zk8IHw)Mv@&@!SCE_H^}gS?83{1OV^-TuuN0 literal 0 HcmV?d00001 diff --git a/Resources/Textures/_CP14/Objects/Tools/screwdriver.rsi/inhand-right.png b/Resources/Textures/_CP14/Objects/Tools/screwdriver.rsi/inhand-right.png new file mode 100644 index 0000000000000000000000000000000000000000..1091c04bfc4d9f2a17fd0384ea342e1f9c8ad0b5 GIT binary patch literal 228 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=jKx9jP7LeL$-D$|=6Sj}hE&XX zduuOmvw;9xfN&~f*#di+hYWO!w=#36G9!^dRp_gANVy*oE%t}{><1H-ae znbP0l+XkKu>4y? literal 0 HcmV?d00001 diff --git a/Resources/Textures/_CP14/Objects/Tools/screwdriver.rsi/meta.json b/Resources/Textures/_CP14/Objects/Tools/screwdriver.rsi/meta.json new file mode 100644 index 0000000000..788dcdab99 --- /dev/null +++ b/Resources/Textures/_CP14/Objects/Tools/screwdriver.rsi/meta.json @@ -0,0 +1,22 @@ +{ + "version": 1, + "license": "CC-BY-SA-4.0", + "copyright": "Created by 4g10w", + "size": { + "x": 32, + "y": 32 + }, + "states": [ + { + "name": "screwdriver" + }, + { + "name": "inhand-left", + "directions": 4 + }, + { + "name": "inhand-right", + "directions": 4 + } + ] +} diff --git a/Resources/Textures/_CP14/Objects/Tools/screwdriver.rsi/screwdriver.png b/Resources/Textures/_CP14/Objects/Tools/screwdriver.rsi/screwdriver.png new file mode 100644 index 0000000000000000000000000000000000000000..da028faa848a10b186977cfb42f20fadf8313f55 GIT binary patch literal 384 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz#^NA%Cx&(BWL^R}Ea{HEjtmSN z`?>!lvI6A>X%mtFkdz~fIt?Ai-oMa=(A2&D%p}Kf87P{R#z^1(#o^pYu6g zE7R@~J!9^o%de&L&UR{Sv