private void RemoveAmp(ActionSetAmp amp) { if (amp == null) { throw new ArgumentNullException(); } checked { AmpPoints += (byte)amp.Entry.PowerCost; } if (amp.PendingCreate) { amps.Remove((ushort)amp.Entry.Id); } else { amp.EnqueueDelete(true); saveMask |= ActionSetSaveMask.ActionSetAmps; } log.Trace($"Removed AMP {amp.Entry.Id} from action set {Index}."); }