public void AddVerb(int priority, ItemCapabilityVerb verb) { if (verbs.ContainsKey(priority)) //Shuffle the list to insert the specified verb and move the one in that spot down. { ItemCapabilityVerb tverb = verbs[priority]; RemoveVerb(priority); AddVerb(priority, verb); AddVerb(priority + 1, tverb); } else verbs.Add(priority, verb); }