From f2b16cd17dfc572583fca2461ae7f8ae57793116 Mon Sep 17 00:00:00 2001 From: Kyle Spier-Swenson Date: Fri, 17 Jun 2016 01:45:57 -0700 Subject: [PATCH] Redpills ghost vv. Fixes being unable to edit icon or fun_verbs in vv on ghosts. --- code/modules/mob/dead/observer/observer.dm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm index 5f721b106ec..cfcfa68446d 100644 --- a/code/modules/mob/dead/observer/observer.dm +++ b/code/modules/mob/dead/observer/observer.dm @@ -656,3 +656,17 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp /mob/dead/observer/is_literate() return 1 + +/mob/dead/observer/on_varedit(var_name) + switch(var_name) + if("icon") + ghostimage.icon = icon + ghostimage_default.icon = icon + ghostimage_simple.icon = icon + if("fun_verbs") + if(fun_verbs) + verbs += /mob/dead/observer/verb/boo + verbs += /mob/dead/observer/verb/possess + else + verbs -= /mob/dead/observer/verb/boo + verbs -= /mob/dead/observer/verb/possess