Fixes wormhole projectors (#36622)
This commit is contained in:
committed by
CitadelStationBot
parent
c579d81f4c
commit
f8697faf8f
@@ -37,7 +37,7 @@
|
||||
//proc to magically refill a casing with a new projectile
|
||||
/obj/item/ammo_casing/proc/newshot() //For energy weapons, syringe gun, shotgun shells and wands (!).
|
||||
if(!BB)
|
||||
BB = new projectile_type(src)
|
||||
BB = new projectile_type(src, src)
|
||||
|
||||
/obj/item/ammo_casing/attackby(obj/item/I, mob/user, params)
|
||||
if(istype(I, /obj/item/ammo_box))
|
||||
|
||||
@@ -12,3 +12,9 @@
|
||||
/obj/item/ammo_casing/energy/wormhole/Initialize(mapload, obj/item/gun/energy/wormhole_projector/wh)
|
||||
. = ..()
|
||||
gun = wh
|
||||
|
||||
/obj/item/ammo_casing/energy/wormhole/throw_proj()
|
||||
. = ..()
|
||||
if(istype(BB, /obj/item/projectile/beam/wormhole))
|
||||
var/obj/item/projectile/beam/wormhole/WH = BB
|
||||
WH.gun = gun
|
||||
|
||||
Reference in New Issue
Block a user