mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-10 10:01:40 +00:00
Merge pull request #42382 from coiax/heirloom-observer-check
Observers can tell if an object is a family heirloom on examine()
This commit is contained in:
@@ -14,6 +14,10 @@
|
|||||||
/datum/component/heirloom/proc/examine(datum/source, mob/user)
|
/datum/component/heirloom/proc/examine(datum/source, mob/user)
|
||||||
if(user.mind == owner)
|
if(user.mind == owner)
|
||||||
to_chat(user, "<span class='notice'>It is your precious [family_name] family heirloom. Keep it safe!</span>")
|
to_chat(user, "<span class='notice'>It is your precious [family_name] family heirloom. Keep it safe!</span>")
|
||||||
|
else if(isobserver(user))
|
||||||
|
to_chat(user, "<span class='notice'>It is the [family_name] family heirloom, belonging to [owner].</span>")
|
||||||
|
else
|
||||||
var/datum/antagonist/creep/creeper = user.mind.has_antag_datum(/datum/antagonist/creep)
|
var/datum/antagonist/creep/creeper = user.mind.has_antag_datum(/datum/antagonist/creep)
|
||||||
if(creeper && creeper.trauma.obsession == owner)
|
if(creeper && creeper.trauma.obsession == owner)
|
||||||
to_chat(user, "<span class='nicegreen'>This must be [owner]'s family heirloom! It smells just like them...</span>")
|
to_chat(user, "<span class='nicegreen'>This must be [owner]'s family heirloom! It smells just like them...</span>")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user