public static string GetName(Need __instance) { if (ByPawn) { return(__instance.GetType().Name + " " + __instance.pawn.Name); } else { return(__instance.GetType().Name); } }