]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Snap Booms (fake snap pops) (#38654)
authorVelken <8467292+Velken@users.noreply.github.com>
Sun, 7 Dec 2025 13:25:57 +0000 (10:25 -0300)
committerGitHub <noreply@github.com>
Sun, 7 Dec 2025 13:25:57 +0000 (13:25 +0000)
* snap booms

* damage nerf

* fixing brain issue of being 8am and i havent slept yet

* typo

* Update damage and name

* Fix linter issues

* fixed typo snapPopFake -> snapPopExplosive

---------

Co-authored-by: SlamBamActionman <slambamactionman@gmail.com>
Resources/Prototypes/Entities/Objects/Fun/snap_pops.yml
Resources/Prototypes/Entities/Objects/Weapons/Bombs/funny.yml
Resources/Prototypes/Recipes/Construction/Graphs/weapons/snappop_explosive.yml [new file with mode: 0644]

index df567912ecf923ea2ad92ed50bf04e0cd5cc1397..43921038050978a4d45ed7847b6c041abfcaca33 100644 (file)
@@ -33,6 +33,9 @@
     maxIntensity: 0.01
     intensitySlope: 1
     totalIntensity: 0.01
+  - type: Construction
+    graph: SnapPopExplosiveGraph
+    node: snapPop
 
 - type: entity
   parent: BaseStorageItem
index 298b9d7c123a8fe58594cd1cb5c07f99d454df40..1618611e2ce7873e56b3453655d28e9d9fa4e6fa 100644 (file)
   - type: Tag
     tags:
     - Banana
+
+- type: entity
+  parent: SnapPop
+  id: SnapPopExplosive
+  suffix: explosive
+  components:
+  - type: Explosive
+    explosionType: Default
+    maxIntensity: 0.8
+    intensitySlope: 1
+    totalIntensity: 3.5
+    canCreateVacuum: false
+  - type: Construction
+    graph: SnapPopExplosiveGraph
+    node: snapPopExplosive
diff --git a/Resources/Prototypes/Recipes/Construction/Graphs/weapons/snappop_explosive.yml b/Resources/Prototypes/Recipes/Construction/Graphs/weapons/snappop_explosive.yml
new file mode 100644 (file)
index 0000000..7f6905a
--- /dev/null
@@ -0,0 +1,25 @@
+- type: constructionGraph
+  id: SnapPopExplosiveGraph
+  start: start
+  graph:
+  - node: start
+    edges:
+    - to: snapPop #have to make a start step to have the behaviour of clicking on a snap pop with gunpowder to make the fake one. Since there is no recipe for them on the construction menu, the materials bellow have no real meaning.
+      steps:
+      - material: Gunpowder
+        amount: 1
+      - material: Paper
+        amount: 4
+        doAfter: 4
+  - node: snapPop
+    entity: SnapPop
+    edges:
+      - to: snapPopExplosive
+        steps:
+          - material: Gunpowder
+            doAfter: 1
+  - node: snapPopExplosive
+    actions:
+    - !type:AdminLog
+      message: "A fake snap pop was crafted"
+    entity: SnapPopExplosive