]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Improvised shell crafting recipe (#25545)
authorFungiFellow <151778459+FungiFellow@users.noreply.github.com>
Tue, 12 Mar 2024 23:52:32 +0000 (18:52 -0500)
committerGitHub <noreply@github.com>
Tue, 12 Mar 2024 23:52:32 +0000 (10:52 +1100)
* Changed Projectile Sprite to Shard

* Removed Notes on Recipe

* Made Recipe

* Added a space

* Update improvised.yml

* Update shotgun.yml

* Removed Note

* Reduced needed matches from 8->6

* Update improvised_shotgun_shell.yml

* Matchbox fix didn't work

* Reduced glass needed from 5-4

* Added backspace

* Update Resources/Prototypes/Recipes/Crafting/Graphs/improvised/improvised_shotgun_shell.yml

---------

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Cartridges/shotgun.yml
Resources/Prototypes/Entities/Objects/Weapons/Guns/Ammunition/Projectiles/shotgun.yml
Resources/Prototypes/Recipes/Crafting/Graphs/improvised/improvised_shotgun_shell.yml [new file with mode: 0644]
Resources/Prototypes/Recipes/Crafting/improvised.yml

index b7b98ba6991d328b6154e1c8353cf21832c3b2ff..e26c4e95404374680ee0069ed0bb3dc2eb9c0683 100644 (file)
     maxTransferAmount: 7
   - type: SpentAmmoVisuals
     state: "practice"
-
-#Not yet craftable due to balance concerns. Should take a good bit of setup to create like the /tg/station recipe.
-#Either the improvised shotgun or its recipe (as of July 2023) will also probably have to be nerfed if you decide to make this craftable.
+    
 - type: entity
   id: ShellShotgunImprovised
   name: improvised shotgun shell
-  description: A homemade shotgun shell that shoots painful metal shrapnel. The spread is so wide that it couldn't hit the broad side of a barn.
+  description: A homemade shotgun shell that shoots painful glass shrapnel. The spread is so wide that it couldn't hit the broad side of a barn.
   parent: BaseShellShotgun
   components:
   - type: Sprite
     layers:
       - state: improvised
         map: [ "enum.AmmoVisualLayers.Base" ]
+  - type: Construction
+    graph: ImprovisedShotgunShellGraph
+    node: shell
   - type: CartridgeAmmo
     count: 10
-    spread: 45 #deadly if you can get up close... otherwise, good luck doing any kind of real damage
+    spread: 45 
     proto: PelletShotgunImprovised
   - type: SpentAmmoVisuals
     state: "improvised"
index e62fb9115e318d586a6fcf25339cf5a77e6a001d..757b8934d433e8b085fa5f3b867bfbf320b152a5 100644 (file)
   components:
   - type: Sprite
     sprite: Objects/Weapons/Guns/Projectiles/projectiles2.rsi
-    state: buckshot
+    state: shard
   - type: Projectile
     damage:
       types:
         Piercing: 3
-        Slash: 3 #remember, it's metal shrapnel!
+        Slash: 3 
+        
 
 - type: entity
   id: PelletShotgunTranquilizer
diff --git a/Resources/Prototypes/Recipes/Crafting/Graphs/improvised/improvised_shotgun_shell.yml b/Resources/Prototypes/Recipes/Crafting/Graphs/improvised/improvised_shotgun_shell.yml
new file mode 100644 (file)
index 0000000..9f666dd
--- /dev/null
@@ -0,0 +1,76 @@
+- type: constructionGraph
+  id: ImprovisedShotgunShellGraph
+  start: start
+  graph:
+    - node: start
+      edges:
+        - to: shell
+          steps:
+            - material: Steel
+              amount: 1
+              doAfter: 0.5 
+            - material: Plastic
+              amount: 1
+              doAfter: 0.5 
+            - tag: GlassShard
+              name: glass shard
+              icon:
+                sprite: Objects/Materials/Shards/shard.rsi
+                state: shard1
+              doAfter: 0.5 
+            - tag: GlassShard
+              name: glass shard
+              icon:
+                sprite: Objects/Materials/Shards/shard.rsi
+                state: shard2
+              doAfter: 0.5 
+            - tag: GlassShard
+              name: glass shard
+              icon:
+                sprite: Objects/Materials/Shards/shard.rsi
+                state: shard1
+              doAfter: 0.5 
+            - tag: GlassShard
+              name: glass shard
+              icon:
+                sprite: Objects/Materials/Shards/shard.rsi
+                state: shard3
+              doAfter: 0.5 
+            - tag: Matchstick
+              name: match stick
+              icon:
+                sprite: Objects/Tools/matches.rsi
+                state: match_unlit
+              doAfter: 0.5 
+            - tag: Matchstick
+              name: match stick
+              icon:
+                sprite: Objects/Tools/matches.rsi
+                state: match_unlit
+              doAfter: 0.5 
+            - tag: Matchstick
+              name: match stick
+              icon:
+                sprite: Objects/Tools/matches.rsi
+                state: match_unlit
+              doAfter: 0.5 
+            - tag: Matchstick
+              name: match stick
+              icon:
+                sprite: Objects/Tools/matches.rsi
+                state: match_unlit
+              doAfter: 0.5 
+            - tag: Matchstick
+              name: match stick
+              icon:
+                sprite: Objects/Tools/matches.rsi
+                state: match_unlit
+              doAfter: 0.5 
+            - tag: Matchstick
+              name: match stick
+              icon:
+                sprite: Objects/Tools/matches.rsi
+                state: match_unlit
+              doAfter: 0.5
+    - node: shell
+      entity: ShellShotgunImprovised
index 12fbe97e28fc18fa476269a7a881317348de7aa5..23b9eb2c92b2731ff6bf660cee783ada65192736 100644 (file)
     sprite: Objects/Weapons/Guns/Shotguns/improvised_shotgun.rsi
     state: icon
 
+- type: construction
+  name: improvised shotgun shell
+  id: ShellShotgunImprovised
+  graph: ImprovisedShotgunShellGraph
+  startNode: start
+  targetNode: shell
+  category: construction-category-weapons
+  objectType: Item
+  description: A homemade shotgun shell that shoots painful glass shrapnel. The spread is so wide that it couldn't hit the broad side of a Barn
+  icon:
+    sprite: Objects/Weapons/Guns/Ammunition/Casings/shotgun_shell.rsi
+    state: improvised
+
 - type: construction
   name: rifle stock
   id: riflestock