Tibialyzer.Hunt.GetHighestKillCreature C# (CSharp) Method

GetHighestKillCreature() public method

public GetHighestKillCreature ( ) : Tibialyzer.Creature
return Tibialyzer.Creature
        public Creature GetHighestKillCreature()
        {
            Creature cr = null;
            int kills = -1;
            lock (huntLock) {
                foreach (KeyValuePair<Creature, int> kvp in this.loot.killCount) {
                    if (kvp.Value > kills && kvp.Key.skin != null) {
                        cr = kvp.Key;
                        kills = kvp.Value;
                    }
                }
            }
            return cr;
        }

Usage Example

Example #1
0
 public static Creature GetHighestKillCreature(Hunt h)
 {
     return h.GetHighestKillCreature();
 }
All Usage Examples Of Tibialyzer.Hunt::GetHighestKillCreature