anchor.diff:  						final_candidate = candidate
   						break
   			else
  +				// Maximum weight is 400.
   				weight = min(400, weight * 1.5)
   				var/DBQuery/query = dbcon.NewQuery("UPDATE [format_table_name("player")] SET `antag_weight` = [weight] WHERE `ckey` = '[ckey]'")
   				query.Execute()
   
  +		// If after all this we still don't have a candidate, then use the legacy system
   		if(!final_candidate)
   			return pick(antag_candidates)
   		else
  
positive.code: 	if(security_level < SEC_LEVEL_BLUE)
  		set_security_level(SEC_LEVEL_BLUE)
  
  /datum/game_mode/proc/pick_candidate(role)
  	if(dbcon.IsConnected())
  		var/list/ckeys_to_drafted = list()
  		var/ckeys_drafted = ""
  
  		for (var/datum/mind/player in antag_candidates)
  			ckeys_to_drafted += get_ckey(player)
  
  		ckeys_drafted = list2string(ckeys_to_drafted, "', '")
  
  		var/DBQuery/query_whitelist = dbcon.NewQuery("SELECT `ckey`, `antag_weight` FROM [format_table_name("player")] WHERE `ckey` IN ('[ckeys_drafted]')")
  
  		if(!query_whitelist.Execute())
  			return 0
  
  		var/list/output = list()
  
  		var/total = 0
  		while(query_whitelist.NextRow())
  			var/ckey = query_whitelist.item[1]
  
negative.code: 			output[ckey] = weight
  			total += weight
  
  		// Find a number between 0 and our weight upper bound
  		var/R = rand(0, total)
  
  		var/cumulativeWeight = 0
  		var/datum/mind/final_candidate
  		// We will loop through each antag candidate until we find the point where the
  		// random number given intersects with a candidate. All other candidates will
  		// have their chance to be antag increased while the selected candidate will have
  		// their chance decreased
  		for(var/ckey in output)
  			var/weight = output[ckey]
  			cumulativeWeight += weight
  
  			if(R <= cumulativeWeight && !final_candidate)
  				// Lowest weight is 25.
  				weight = max(25, weight / 1.5)
  				var/DBQuery/query = dbcon.NewQuery("UPDATE [format_table_name("player")] SET `antag_weight` = [weight] WHERE `ckey` = '[ckey]'")
  				query.Execute()
  