]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Toy Tesla (#23370)
authorEd <96445749+TheShuEd@users.noreply.github.com>
Thu, 4 Jan 2024 05:51:22 +0000 (08:51 +0300)
committerGitHub <noreply@github.com>
Thu, 4 Jan 2024 05:51:22 +0000 (16:51 +1100)
* teddy tesla

* Update Resources/Prototypes/Entities/Objects/Fun/toys.yml

---------

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Resources/Prototypes/Entities/Objects/Fun/toys.yml

index 41233ffecdfe8545e8d0d2173ac65a39a3c1ac29..63d956f7b3e4e72a1051145624642e9cb9e79d22 100644 (file)
     sprite: Objects/Fun/toys.rsi
     heldPrefix: singularitytoy
 
+- type: entity
+  parent: BaseItem
+  id: TeslaToy
+  name: Teddy Tesla
+  description: The favorite toy of the great engineer Nikola Tesla.
+  components:
+  - type: Sprite
+    sprite: Structures/Power/Generation/Tesla/energy_miniball.rsi
+    shader: unshaded
+    layers:
+    - state: tesla_projectile
+  - type: PointLight
+    enabled: true
+    radius: 5
+    color: "#4080FF"
+  - type: Electrified
+    shockDamage: 2
+    shockTime: 0.8
+    requirePower: false
+  - type: EmitSoundOnCollide
+    sound:
+      path: /Audio/Effects/Lightning/lightningshock.ogg
+      params:
+        variation: 0.65
+        volume: -10
+    
 - type: entity
   parent: BaseItem
   id: PonderingOrb