anchor.diff:  					var/loadout_item = loadout_data[LOADOUT_ITEM]
   					if(loadout_item)
   						var/datum/gear/loadout_gear = text2path(loadout_item)
  -						gear_points -= loadout
  +						gear_points -= initial(loadout_gear.cost)
   			else
   				chosen_gear = list()
   
  
positive.code: 			if(!G)
  				return
  			var/toggle = text2num(href_list["toggle_gear"])
  			if(!toggle && has_loadout_gear(chosen_gear, G.type))//toggling off and the item effectively is in chosen gear)
  				remove_gear_from_loadout(chosen_gear, G.type)
  			else if(toggle && (!(has_loadout_gear(chosen_gear, G.type))))
  				if(!is_loadout_slot_available(G.category))
  					to_chat(user, "<span class='danger'>You cannot take this loadout, as you've already chosen too many of the same category!</span>")
  					return
  
negative.code: 				return TRUE
  
  /datum/preferences/proc/has_loadout_gear(gear_list, gear_type)
  	message_admins("do they have [gear_type]")
  	for(var/loadout_gear in gear_list)
  		message_admins("while searching we found [loadout_gear[LOADOUT_ITEM]]")
  		if(loadout_gear[LOADOUT_ITEM] == gear_type)
  			return loadout_gear
  	return FALSE
  
  