public static void InitPet(CharacterItemRecord item, Character character) { Effect effect = item.Effects.FindAll(x => x.EffectEnum != EffectsEnum.Effect_PetFeedQuantity).Random(); if (effect != null) { item.Effects.Clear(); item.AddEffect(effect); } }