]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Crusher Dagger Knife Component (#35259)
authorPronana <66055347+Pronana@users.noreply.github.com>
Tue, 18 Feb 2025 15:16:47 +0000 (07:16 -0800)
committerGitHub <noreply@github.com>
Tue, 18 Feb 2025 15:16:47 +0000 (16:16 +0100)
* Added Knife Component to Crusher dagger, allowing
it to be used in a few new crafting recipes such
as baseball bats.

* Changed BaseKnife to CombatKnife, reordered parents

* now inherits from baseknife, throwing and disarm added manually

Resources/Prototypes/Entities/Objects/Weapons/Melee/mining.yml

index 5b565127a2d971ccc63348e9faa1d30c8bfe4b97..7ae4480d8544f226cba53e314950053ac246a324 100644 (file)
   - type: Prying
 
 - type: entity
-  parent: [ BaseWeaponCrusher, BaseSecurityCargoContraband]
+  parent: [ BaseKnife, BaseWeaponCrusher, BaseSecurityCargoContraband]
   id: WeaponCrusherDagger
   name: crusher dagger
   description: A scaled down version of a proto-kinetic crusher. Uses kinetic energy to vibrate the blade at high speeds.
     damage:
       types:
         Slash: 15
-  - type: Tag
-    tags:
-    - Knife
+  - type: EmbeddableProjectile
+    sound: /Audio/Weapons/star_hit.ogg
+    offset: -0.15,0.0
+  - type: LandAtCursor
+  - type: DamageOtherOnHit
+    damage:
+      types:
+        Slash: 10
+  - type: DisarmMalus
+    malus: 0.225
+  - type: ThrowingAngle
+    angle: 225
 
 # Like a crusher... but better
 - type: entity