makes crusher+accelerator upgrades gc and fixes a ghost upgrade issue (#20495)

This commit is contained in:
GDN
2023-03-13 22:17:23 +00:00
committed by GitHub
parent 7e297d154d
commit 89a48529c1
2 changed files with 12 additions and 0 deletions
@@ -255,6 +255,12 @@
H.trophies -= src
return TRUE
/obj/item/crusher_trophy/Destroy()
if(istype(loc, /obj/item/twohanded/kinetic_crusher))
var/obj/item/twohanded/kinetic_crusher/crusher = loc
crusher.trophies -= src
return ..()
/obj/item/crusher_trophy/proc/on_melee_hit(mob/living/target, mob/living/user) //the target and the user
/obj/item/crusher_trophy/proc/on_projectile_fire(obj/item/projectile/destabilizer/marker, mob/living/user) //the projectile fired and the user