mirror of
https://github.com/KabKebab/GS13.git
synced 2026-07-09 15:05:38 +01:00
Fix Silicon Examine Text
Update silicon flavor text in after_spawn instead of on_equip to access client prefs.
This commit is contained in:
@@ -3000,6 +3000,9 @@ GLOBAL_LIST_EMPTY(preferences_datums)
|
||||
character.update_hair()
|
||||
character.update_body_parts()
|
||||
|
||||
// GS13: Silicon Examine Text
|
||||
/datum/preferences/proc/copy_to_robot(mob/living/silicon/robot/cyborg, icon_updates = 1, roundstart_checks = TRUE)
|
||||
SEND_SIGNAL(cyborg, COMSIG_SILICON_PREFS_COPIED_TO, src, icon_updates, roundstart_checks)
|
||||
|
||||
/datum/preferences/proc/get_default_name(name_id)
|
||||
switch(name_id)
|
||||
|
||||
@@ -88,3 +88,5 @@ Cyborg
|
||||
/datum/job/cyborg/after_spawn(mob/living/silicon/robot/R, mob/M)
|
||||
R.updatename(M.client)
|
||||
R.gender = NEUTER
|
||||
// GS13: Silicon Examine Text
|
||||
M.client?.prefs?.copy_to_robot(R)
|
||||
|
||||
@@ -372,9 +372,6 @@
|
||||
|
||||
var/mob/living/silicon/robot/R = new /mob/living/silicon/robot(loc)
|
||||
|
||||
// GS13: Silicon Examine Text
|
||||
SEND_SIGNAL(R, COMSIG_SILICON_PREFS_COPIED_TO, src)
|
||||
|
||||
R.gender = gender
|
||||
R.invisibility = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user