This commit is contained in:
kevinz000
2019-12-15 00:36:20 -07:00
parent 600017f4e1
commit a4ffef5b1f
3 changed files with 4 additions and 4 deletions

View File

@@ -34,7 +34,7 @@
//Errors go to user.
/proc/generate_custom_holoform_from_prefs_safe(datum/preferences/prefs, mob/user)
if(user)
if(user.prefs.last_custom_holoform < world.time + CUSTOM_HOLOFORM_DELAY)
if(user.client.prefs.last_custom_holoform < world.time + CUSTOM_HOLOFORM_DELAY)
return
return generate_custom_holoform_from_prefs(prefs, null, null, TRUE)

View File

@@ -1,8 +1,8 @@
/client/verb/clear_custom_holoform()
set naame = "Clear Custom Holoform"
set name = "Clear Custom Holoform"
set desc = "Clear your current custom holoform"
prefs?.custom_holoform = null
prefs?.custom_holoform_icon = null
to_chat(src, "<span class='boldnotice'>Holoform removed.</span>")
/client/verb/set_custom_holoform()

View File

@@ -91,7 +91,7 @@
..()
update_resting_icon(resting)
/mob/living/silicon/pai/update_icon()
/mob/living/silicon/pai/proc/update_icon()
if((chassis == "custom") && !custom_holoform_icon)
chassis = pick(possible_chassis - "custom")
if(chassis != "custom")