Aggro(mob/attacker, amount)
if(attacker in Threat)
Threat[attacker] += amount
checkThreat(Threat)
else
Threat[attacker] = amount
checkThreat(Threat)
checkThreat(list/L)
var/max
for(var/a in L)
if(max == null || L[a] > max) max = L[a]
return max
Problem description:
using this code, however I dont want to return the max value, I want to return the item WITH the max value