anchor.diff: +#define SLIGHT_INSANITY_PEN 1
   #define MINOR_INSANITY_PEN 5
   #define MAJOR_INSANITY_PEN 10
   #define MOOD_INSANITY_MALUS 0.0054 // per point of sanity below SANITY_DISTURBED, a 40% debuff to skills at rock bottom depression.
  
positive.code: 		return
  	//var/mob/living/master = parent
  	//master.crit_threshold = (master.crit_threshold - insanity_effect) + newval
  	insanity_effect = newval
  	if(insanity_effect)
  		RegisterSignal(parent, COMSIG_MOB_ACTION_SKILL_MOD, .proc/on_mob_action_skill_mod)
  		RegisterSignal(parent, COMSIG_MOB_ITEM_ACTION_SKILLS_MOD, .proc/on_item_action_skills_mod)
  	else
  		UnregisterSignal(parent, list(COMSIG_MOB_ACTION_SKILL_MOD, COMSIG_MOB_ITEM_ACTION_SKILLS_MOD))
  
  /datum/component/mood/proc/modify_sanity(datum/source, amount, minimum = SANITY_INSANE, maximum = SANITY_AMAZING)
  	setSanity(sanity + amount, minimum, maximum)
  
negative.code: 		return
  	return_value[1] *= SKILL_AFFINITY_MOOD_BONUS
  
  #undef SLIGHT_INSANITY_PEN
  #undef MINOR_INSANITY_PEN
  #undef MAJOR_INSANITY_PEN
  #undef MOOD_INSANITY_MALUS
  