// // Methods // public void AddRobotToContainer(ArcBaseRobot bot) { bool flag = AttachmentUtility.HasAttachment(bot, ThingDefOf.Fire); if (flag) { AttachmentUtility.GetAttachment(bot, ThingDefOf.Fire).Destroy(0); } bot.stances.CancelBusyStanceHard(); bot.jobs.StopAll(false); bot.pather.StopDead(); bool drafted = bot.Drafted; if (drafted) { bot.drafter.Drafted = false; } bool flag2 = !this.container.Contains(bot); if (flag2) { this.container.Add(bot); } List <Map> maps = Find.Maps; for (int i = 0; i < maps.Count; i++) { maps [i].designationManager.RemoveAllDesignationsOn(bot, false); } this.DespawnRobot(bot, false); }