anchor.diff:  	var/list/cached_reagents = reagent_list
   	var/datum/reagent/master
   	var/max_volume = 0
  -	for(var/reagent in cached_reagents)
  -		var/datum/reagent/R = reagent
  -		if(R.volume > max_volume)
  -			max_volume = R.volume
  -			master = R
  +	for(var/datum/reagent/reagent as anything in cached_reagents)
  +		if(reagent.volume > max_volume)
  +			max_volume = reagent.volume
  +			master = reagent
   
   	return master
   
  
positive.code: 	var/list/cached_reagents = reagent_list
  	var/max_type
  	var/max_volume = 0
  	for(var/reagent in cached_reagents)
  		var/datum/reagent/R = reagent
  		if(R.volume > max_volume)
  			max_volume = R.volume
  			max_type = R.type
  
  	return max_type
  
  
negative.code: * * upper_limit - how high the pH can go
  */
  /datum/reagents/proc/adjust_specific_reagent_ph(input_reagent, value, lower_limit = 0, upper_limit = 14)
  	var/datum/reagent/reagent = get_reagent(input_reagent)
  	if(!reagent) //We can call this with missing reagents.
  		return FALSE
  	reagent.ph = clamp(reagent.ph + value, lower_limit, upper_limit)
  
  /*
  * Updates the reagents datum pH based off the volume weighted sum of the reagent_list's reagent pH
  