anchor.diff:  
   /obj/machinery/porta_turret/proc/assess_perp(mob/living/carbon/human/perp)
   	var/threatcount = 0	//the integer returned
  -
  +	
   	if(obj_flags & EMAGGED)
   		return 10	//if emagged, always return 10.
   
  
positive.code: 
  			if(allowed(perp)) //if the perp has security access, return 0
  				return 0
  
  			if(perp.is_holding_item_of_type(/obj/item/gun) ||  perp.is_holding_item_of_type(/obj/item/melee/baton))
  				threatcount += 4
  
  
negative.code: 
  	if(shoot_unloyal)
  		if (!HAS_TRAIT(perp, TRAIT_MINDSHIELD))
  
  			if (!shoot_heads_of_staff)
  			
  				if (perp.get_id_name() in GLOB.command_positions)
  					return 0
  				else 
  					threatcount += 4
  			else
  				threatcount += 4
  	if (shoot_cyborgs)
  		if (iscyborg(perp))
  			threatcount +=4
  	return threatcount
  
  
  