mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 23:58:07 +01:00
Heirlooms have additional examine text, rather than being renamed (#41676)
cl coiax add: Heirlooms are no longer named "Cherry family bag of dice", but rather their heirloom status can be determined by the owner on examine. /cl Because names are inherent to an object when anyone looks at it, I feel it can be somewhat confusing that you can tell that this screwdriver is a precious family heirloom just because of its name, rather than because of the significance that someone holds it. Only the owner of the heirloom receives the special examine text; so I'm sure this could probably be used to bluff ownership of something non-standard, if and when heirlooms become more exotic. Heirlooms still work in the same way though, mood bonus from holding, mood penalty if you don't have it.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
/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)
|
||||
if(user.mind == owner)
|
||||
to_chat(user, "<span class='notice'>It is your precious [family_name] family heirloom. Keep it safe!</span>")
|
||||
Reference in New Issue
Block a user