2010-04-01, 06:41 AM
I think it's simply something like
foreach (Mob mob in Mobs.Sort(blahblah))
if (mob.InRange(blahblah))
{
mob.Hit
break;
}
which means if two mobs are in the exact same position (and that's almost never true) it's pretty much according to the order they appear in the mob list, which should be either the order they appear on the screen or it's exact opposite.
foreach (Mob mob in Mobs.Sort(blahblah))
if (mob.InRange(blahblah))
{
mob.Hit
break;
}
which means if two mobs are in the exact same position (and that's almost never true) it's pretty much according to the order they appear in the mob list, which should be either the order they appear on the screen or it's exact opposite.

