anchor.diff:  
   /obj/mecha/proc/get_stats_html()
   	. = {"<html>
  -						<head><title>[src.name] data</title>
  -						<style>
  -						body {color: #00ff00; background: #000000; font-family:"Lucida Console",monospace; font-size: 12px;}
  -						hr {border: 1px solid #0f0; color: #0f0; background-color: #0f0;}
  -						a {padding:2px 5px;;color:#0f0;}
  -						.wr {margin-bottom: 5px;}
  -						.header {cursor:pointer;}
  -						.open, .closed {background: #32CD32; color:#000; padding:1px 2px;}
  -						.links a {margin-bottom: 2px;padding-top:3px;}
  -						.visible {display: block;}
  -						.hidden {display: none;}
  -						</style>
  -						<script language='javascript' type='text/javascript'>
  -						[js_byjax]
  -						[js_dropdowns]
  -						function SSticker() {
  -						    setInterval(function(){
  -						        window.location='byond://?src=[REF(src)]&update_content=1';
  -						    }, 1000);
  -						}
  -
  -						window.onload = function() {
  -							dropdowns();
  -							SSticker();
  -						}
  -						</script>
  -						</head>
  -						<body>
  -						<div id='content'>
  -						[src.get_stats_part()]
  -						</div>
  -						<div id='eq_list'>
  -						[src.get_equipment_list()]
  -						</div>
  -						<hr>
  -						<div id='commands'>
  -						[src.get_commands()]
  -						</div>
  -						</body>
  -						</html>
  -					 "}
  -
  -
  -
  +			<head><title>[name] data</title>
  +				<style>
  +					body {color: #00ff00; background: #000000; font-family:"Lucida Console",monospace; font-size: 12px;}
  +					hr {border: 1px solid #0f0; color: #0f0; background-color: #0f0;}
  +					a {padding:2px 5px;;color:#0f0;}
  +					.wr {margin-bottom: 5px;}
  +					.header {cursor:pointer;}
  +					.open, .closed {background: #32CD32; color:#000; padding:1px 2px;}
  +					.links a {margin-bottom: 2px;padding-top:3px;}
  +					.visible {display: block;}
  +					.hidden {display: none;}
  +				</style>
  +				<script language='javascript' type='text/javascript'>
  +					[js_byjax]
  +					[js_dropdowns]
  +					function SSticker() {
  +						setInterval(function(){
  +							window.location='byond://?src=[REF(src)]&update_content=1';
  +						}, 1000);
  +					}
  +
  +					window.onload = function() {
  +						dropdowns();
  +						SSticker();
  +					}
  +				</script>
  +			</head>
  +			<body>
  +				<div id='content'>
  +					[get_stats_part()]
  +				</div></div>
  +				<div id='eq_list'>
  +					[get_equipment_list()]
  +				</div>
  +				<hr>
  +				<div id='commands'>
  +					[get_commands()]
  +				</div>
  +				<div id='equipment_menu'>
  +					[get_equipment_menu()]
  +				</div>
  +			</body>
  +		</html>"}
  +
  +///Returns the status of the mech.
  +/obj/mecha/proc/get_stats_part()
  +	var/integrity = obj_integrity/max_integrity*100
  +	var/cell_charge = get_charge()
  +	var/datum/gas_mixture/int_tank_air = 0
  +	var/tank_pressure = 0
  +	var/tank_temperature = 0
  +	var/cabin_pressure = 0
  +	if (internal_tank)
  +		int_tank_air = internal_tank.return_air()
  +		tank_pressure = internal_tank ? round(int_tank_air.return_pressure(),0.01) : "None"
  +		tank_temperature = internal_tank ? int_tank_air.temperature : "Unknown"
  +		cabin_pressure = round(return_pressure(),0.01)
  +	. =	{"[report_internal_damage()]
  +		[integrity<30?"<span class='userdanger'>DAMAGE LEVEL CRITICAL</span><br>":null]
  +		<b>Integrity: </b> [integrity]%<br>
  +		<b>Powercell charge: </b>[isnull(cell_charge)?"No powercell installed":"[cell.percent()]%"]<br>
  +		<b>Air source: </b>[internal_tank?"[use_internal_tank?"Internal Airtank":"Environment"]":"Environment"]<br>
  +		<b>Airtank pressure: </b>[internal_tank?"[tank_pressure]kPa":"N/A"]<br>
  +		<b>Airtank temperature: </b>[internal_tank?"[tank_temperature]&deg;K|[tank_temperature - T0C]&deg;C":"N/A"]<br>
  +		<b>Cabin pressure: </b>[internal_tank?"[cabin_pressure>WARNING_HIGH_PRESSURE ? "<span class='danger'>[cabin_pressure]</span>": cabin_pressure]kPa":"N/A"]<br>
  +		<b>Cabin temperature: </b> [internal_tank?"[return_temperature()]&deg;K|[return_temperature() - T0C]&deg;C":"N/A"]<br>
  +		[dna_lock?"<b>DNA-locked:</b><br> <span style='font-size:10px;letter-spacing:-1px;'>[dna_lock]</span> \[<a href='?src=[REF(src)];reset_dna=1'>Reset</a>\]<br>":""]<br>"}
  +	. += "[get_actions()]<br>"
  +
  +///Returns HTML for mech actions. Ideally, this proc would be empty for the base mecha. Segmented for easy refactoring.
  +/obj/mecha/proc/get_actions()
  +	. = ""
  +	. += "[thrusters_action.owner ? "<b>Thrusters: </b> [thrusters_active ? "Enabled" : "Disabled"]<br>" : ""]"
  +	. += "[defense_action.owner ? "<b>Defense Mode: </b> [defense_mode ? "Enabled" : "Disabled"]<br>" : ""]"
  +	. += "[overload_action.owner ? "<b>Leg Actuators Overload: </b> [leg_overload_mode ? "Enabled" : "Disabled"]<br>" : ""]"
  +	. += "[smoke_action.owner ? "<b>Smoke: </b> [smoke]<br>" : ""]"
  +	. += "[zoom_action.owner ? "<b>Zoom: </b> [zoom_mode ? "Enabled" : "Disabled"]<br>" : ""]"
  +	. += "[switch_damtype_action.owner ? "<b>Damtype: </b> [damtype]<br>" : ""]"
  +	. += "[phasing_action.owner ? "<b>Phase Modulator: </b> [phasing ? "Enabled" : "Disabled"]<br>" : ""]"
  +
  +///HTML for internal damage.
   /obj/mecha/proc/report_internal_damage()
   	. = ""
  -	var/list/dam_reports = list(
  +	var/static/list/dam_reports = list(
   		"[MECHA_INT_FIRE]" = "<span class='userdanger'>INTERNAL FIRE</span>",
   		"[MECHA_INT_TEMP_CONTROL]" = "<span class='userdanger'>LIFE SUPPORT SYSTEM MALFUNCTION</span>",
   		"[MECHA_INT_TANK_BREACH]" = "<span class='userdanger'>GAS TANK BREACH</span>",
  
positive.code: 	if(!id_card || !user)
  		return
  	. = {"<html>
  						<head>
  						<style>
  						body {color: #00ff00; background: #000000; font-family:"Courier New", Courier, monospace; font-size: 12px;}
  						a {padding:2px 5px; background:#32CD32;color:#000;display:block;margin:2px;text-align:center;text-decoration:none;}
  						</style>
  						</head>
  						<body>
  						[add_req_access?"<a href='?src=[REF(src)];req_access=1;id_card=[REF(id_card)];user=[REF(user)]'>Edit operation keycodes</a>":null]
  						[maint_access?"<a href='?src=[REF(src)];maint_access=1;id_card=[REF(id_card)];user=[REF(user)]'>[(state>0) ? "Terminate" : "Initiate"] maintenance protocol</a>":null]
  						[(state>0) ?"<a href='?src=[REF(src)];set_internal_tank_valve=1;user=[REF(user)]'>Set Cabin Air Pressure</a>":null]
  						</body>
  						</html>"}
  	user << browse(., "window=exosuit_maint_console")
  	onclose(user, "exosuit_maint_console")
  
  
negative.code: 		if(!a_name)
  			continue //there's some strange access without a name
  		. += "[a_name] - <a href='?src=[REF(src)];add_req_access=[a];user=[REF(user)];id_card=[REF(id_card)]'>Add</a><br>"
  	. +={"<hr><a href='?src=[REF(src)];finish_req_access=1;user=[REF(user)]'>Lock ID panel</a><br>
  		<span class='danger'>(Warning! The ID upload panel can be unlocked only through Exosuit Interface.)</span>
  		</body>
  		</html>"}
  	user << browse(., "window=exosuit_add_access")
  	onclose(user, "exosuit_add_access")
  
  