anchor.diff:  			gear_points = CONFIG_GET(number/initial_gear_points)
   			save_preferences()
   		if(href_list["select_category"])
  -			gear_category = text2num(href_list["select_category"])
  -			gear_subcategory = 1
  +			gear_category = html_decode(href_list["select_category"])
  +			gear_subcategory = GLOB.loadout_categories[gear_category][1]
   		if(href_list["select_subcategory"])
  -			gear_subcategory = text2num(href_list["select_subcategory"])
  +			gear_subcategory = html_decode(href_list["select_subcategory"])
   		if(href_list["toggle_gear_path"])
  -			var/category = GLOB.loadout_items[gear_category]
  -			var/subcategory = GLOB.loadout_items[category][gear_subcategory]
  -			var/datum/gear/G = GLOB.loadout_items[category][subcategory][html_decode(href_list["toggle_gear_path"])]
  +			var/name = html_decode(href_list["toggle_gear_path"])
  +			var/datum/gear/G = GLOB.loadout_items[gear_category][gear_subcategory][name]
   			if(!G)
   				return
   			var/toggle = text2num(href_list["toggle_gear"])
  
positive.code: 			if(!length(GLOB.loadout_items))
  				dat += "<center>ERROR: No loadout categories - something is horribly wrong!"
  			else
  				gear_category = clamp(gear_category, 1, length(GLOB.loadout_items))		// no runtimes
  				var/firstcat
  				var/chosen_category
  				for(var/i in 1 to length(GLOB.loadout_items))
  					var/category = GLOB.loadout_items[i]
  					if(firstcat)
  						firstcat = FALSE
  					else
  						dat += " |"
  					if(i == gear_category)
  						dat += " <span class='linkOn'>[category]</span> "
  						chosen_category = category
  					else
  						dat += " <a href='?_src_=prefs;preference=gear;select_category=[i]'>[category]</a> "
  
  				dat += "</b></center></td></tr>"
  				dat += "<tr><td colspan=4><hr></td></tr>"
  
negative.code: 	var/gear_points = 10
  	var/list/gear_categories
  	var/list/chosen_gear = list()
  	var/gear_category
  	var/gear_subcategory
  
  	var/screenshake = 100
  	var/damagescreenshake = 2
  