Skip to content

Commit

Permalink
Merge pull request #9316 from Spookerton/spkrtn/fix/saboatage
Browse files Browse the repository at this point in the history
only /item archeology finds try to set origin tech
  • Loading branch information
Atermonera authored Jan 31, 2024
2 parents 8841edb + 25b14e6 commit e3393dc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions code/modules/xenoarcheaology/finds/find_spawning.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit e3393dc

Please sign in to comment.