Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only /item archeology finds try to set origin tech #9316

Merged
merged 1 commit into from
Jan 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading