From 5aa3990323ebfec74ac2a848b2f026775df35737 Mon Sep 17 00:00:00 2001 From: Spookerton Date: Sun, 14 Jan 2024 12:18:31 +0000 Subject: [PATCH] only /item archeology finds try to set origin tech --- code/modules/xenoarcheaology/finds/find_spawning.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/modules/xenoarcheaology/finds/find_spawning.dm b/code/modules/xenoarcheaology/finds/find_spawning.dm index 7789923b445..8aaf57bc1e9 100644 --- a/code/modules/xenoarcheaology/finds/find_spawning.dm +++ b/code/modules/xenoarcheaology/finds/find_spawning.dm @@ -706,12 +706,14 @@ if(!desc) desc = "This item is completely [pick("alien","bizarre")]." + var/is_item = istype(new_item, /obj/item) + //icon and icon_state should have already been set if(new_item) new_item.name = name new_item.desc = src.desc - if(talkative) + if(talkative && is_item) new_item.talking_atom = new(new_item) LAZYINITLIST(new_item.origin_tech) new_item.origin_tech[TECH_ARCANE] += 1 @@ -726,7 +728,7 @@ qdel(src) - else if(talkative) + else if(talkative && is_item) src.talking_atom = new(src) LAZYINITLIST(origin_tech) origin_tech[TECH_ARCANE] += 1