internal static void RemoveItemStat(this SimGameState sim, string id, Type type, bool damaged) { if (mechComponentRef != null && !EnginePersistence.RemoveItemStat(sim, mechComponentRef, id, type, damaged)) { return; } sim.RemoveItemStat(id, type, damaged); }