mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-12 16:44:43 +01:00
Adds the mech tesla cannon (#24252)
* Adds the mech tesla cannon * makes it not stun * fixes a dumb * fixes another dumb * makes it not blow fucking doors up instantly * corrects an oversight * Revert "corrects an oversight" This reverts commit 73c713a3649deee6945f005f3c14ec926c9559f2.
This commit is contained in:
@@ -188,3 +188,24 @@
|
||||
/obj/item/projectile/energy/tesla_revolver/Destroy()
|
||||
qdel(chain)
|
||||
return ..()
|
||||
|
||||
|
||||
/obj/item/projectile/energy/tesla_cannon
|
||||
name = "tesla bolt"
|
||||
icon_state = "tesla_projectile"
|
||||
impact_effect_type = /obj/effect/overlay/temp/impact_effect/blue_laser
|
||||
var/chain
|
||||
|
||||
/obj/item/projectile/energy/tesla_cannon/fire(setAngle)
|
||||
if(firer)
|
||||
chain = firer.Beam(src, icon_state = "lightning[rand(1, 12)]", time = INFINITY, maxdistance = INFINITY)
|
||||
..()
|
||||
|
||||
/obj/item/projectile/energy/tesla_cannon/on_hit(atom/target)
|
||||
. = ..()
|
||||
tesla_zap(src, 3, 10000, explosive = FALSE, stun_mobs = FALSE)
|
||||
qdel(src)
|
||||
|
||||
/obj/item/projectile/energy/tesla_cannon/Destroy()
|
||||
qdel(chain)
|
||||
return ..()
|
||||
|
||||
@@ -175,6 +175,17 @@
|
||||
construction_time = 100
|
||||
category = list("Exosuit Equipment")
|
||||
|
||||
/datum/design/mech_tesla
|
||||
name = "Exosuit Weapon (MKI Tesla Cannon)"
|
||||
desc = "Allows for the construction of MKI Tesla Cannon."
|
||||
id = "mech_tesla"
|
||||
build_type = MECHFAB
|
||||
req_tech = list("combat" = 6, "magnets" = 5, "materials" = 5)
|
||||
build_path = /obj/item/mecha_parts/mecha_equipment/weapon/energy/tesla
|
||||
materials = list(MAT_METAL=20000,MAT_SILVER=8000)
|
||||
construction_time = 100
|
||||
category = list("Exosuit Equipment")
|
||||
|
||||
/datum/design/mech_laser
|
||||
name = "Exosuit Weapon (CH-PS \"Immolator\" Laser)"
|
||||
desc = "Allows for the construction of CH-PS Laser."
|
||||
|
||||
Reference in New Issue
Block a user