From bfacc81b972b1518632cb4a39ce478a982e26156 Mon Sep 17 00:00:00 2001 From: Adrer Date: Thu, 15 Sep 2022 00:14:46 +0200 Subject: [PATCH] Makes empty implanters initialize properly. (#19043) * Empty implanters initialize properly * Sean's suggestion Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com> Co-authored-by: adrermail@gmail.com Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com> --- code/game/objects/items/weapons/implants/implanter.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/game/objects/items/weapons/implants/implanter.dm b/code/game/objects/items/weapons/implants/implanter.dm index c9c56651d72..fceca0a97f6 100644 --- a/code/game/objects/items/weapons/implants/implanter.dm +++ b/code/game/objects/items/weapons/implants/implanter.dm @@ -11,7 +11,7 @@ materials = list(MAT_METAL = 600, MAT_GLASS = 200) toolspeed = 1 var/obj/item/implant/imp - var/implant_type = /obj/item/implant + var/obj/item/implant/implant_type /obj/item/implanter/update_icon_state() if(imp) @@ -46,5 +46,7 @@ /obj/item/implanter/Initialize(mapload) . = ..() + if(!implant_type) + return imp = new implant_type() update_icon(UPDATE_ICON_STATE)