mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Fixes wormhole projectors (#36622)
This commit is contained in:
committed by
yogstation13-bot
parent
108380eab6
commit
3e4ffeab00
@@ -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
|
||||
|
||||
@@ -185,7 +185,16 @@
|
||||
/obj/item/gun/energy/wormhole_projector/update_icon()
|
||||
icon_state = "[initial(icon_state)][select]"
|
||||
item_state = icon_state
|
||||
return
|
||||
|
||||
/obj/item/gun/energy/wormhole_projector/update_ammo_types()
|
||||
. = ..()
|
||||
for(var/i in 1 to ammo_type.len)
|
||||
var/obj/item/ammo_casing/energy/wormhole/W = ammo_type[i]
|
||||
if(istype(W))
|
||||
W.gun = src
|
||||
var/obj/item/projectile/beam/wormhole/WH = W.BB
|
||||
if(istype(WH))
|
||||
WH.gun = src
|
||||
|
||||
/obj/item/gun/energy/wormhole_projector/process_chamber()
|
||||
..()
|
||||
|
||||
Reference in New Issue
Block a user