mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 10:11:09 +00:00
* 1/4 done? maybe? * more * stuff * incremental stuff * stuff * stuff & things * mostly done but not yet * stuffing * stuffing 2: electric boogaloo * Git Commit and the Kingdom of the Crystal Skull * make it actually compile * found more stuff * fixes * fix AI laws appearing out of order * fix windows * should be the remaining stuff * this time for real * i guess it should compile too * fix sechuds
23 lines
929 B
Plaintext
23 lines
929 B
Plaintext
/datum/component/heirloom
|
|
var/datum/mind/owner
|
|
var/family_name
|
|
|
|
/datum/component/heirloom/Initialize(new_owner, new_family_name)
|
|
if(!isitem(parent))
|
|
return COMPONENT_INCOMPATIBLE
|
|
|
|
owner = new_owner
|
|
family_name = new_family_name
|
|
|
|
RegisterSignal(parent, COMSIG_PARENT_EXAMINE, .proc/examine)
|
|
|
|
/datum/component/heirloom/proc/examine(datum/source, mob/user, list/examine_list)
|
|
if(user.mind == owner)
|
|
examine_list += "<span class='notice'>It is your precious [family_name] family heirloom. Keep it safe!</span>"
|
|
else if(isobserver(user))
|
|
examine_list += "<span class='notice'>It is the [family_name] family heirloom, belonging to [owner].</span>"
|
|
else
|
|
var/datum/antagonist/obsessed/creeper = user.mind.has_antag_datum(/datum/antagonist/obsessed)
|
|
if(creeper && creeper.trauma.obsession == owner)
|
|
examine_list += "<span class='nicegreen'>This must be [owner]'s family heirloom! It smells just like them...</span>"
|