mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-30 07:27:57 +01:00
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 <adrermail@gmail.com> Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com>
This commit is contained in:
co-authored by
S34N
adrermail@gmail.com <adrermail@gmail.com>
parent
3974a98073
commit
bfacc81b97
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user