public void Add(string[] args) { string weaponName = args[1]; int socketIndex = int.Parse(args[2]); string gemType = args[3]; IWeapon weapon = this.Weapons.FirstOrDefault(x => x.Name == weaponName); if (weapon != null) { int weaponIndex = this.weapons.IndexOf(weapon); weapon.AddingGem(socketIndex, gemType); this.weapons[weaponIndex] = weapon; } }