swarmer runtime fix (#47707)
swarmer runtime fix (#47707)

* swarmer runtime fix

* swarmer code cleanup

* code review fixes

Jordie0608/tgstation,CPTANT/-tg-station,tgstation/tgstation,Arianya/tgstation,Bawhoppen/-tg-station,Arianya/tgstation,Cruix/-tg-station,kingofkosmos/-tg-station,nicbn/tgstation,optimumtact/-tg-station,AnturK/-tg-station,Profakos/tgstation,SamuelRowe/-tg-station,TheVekter/-tg-station,coiax/-tg-station,coiax/-tg-station,Jordie0608/tgstation,kingofkosmos/-tg-station,Fox-McCloud/-tg-station,Cruix/-tg-station,anconfuzedrock/tgstation,Cruix/-tg-station,Razharas/-tg-station,QualityVan/tgstation,HippieStation/HippieStation,infinitystation/-tg-station,Bawhoppen/-tg-station,infinitystation/-tg-station,MrStonedOne/tgstation,MrStonedOne/tgstation,nicbn/tgstation,infinitystation/-tg-station,WJohn/-tg-station,Bawhoppen/-tg-station,kingofkosmos/-tg-station,Fox-McCloud/-tg-station,Razharas/-tg-station,Bawhoppen/-tg-station,Thunder12345/-tg-station,JJRcop/tgstation,PKPenguin321/-tg-station,GunHog/-tg-station,infinitystation/-tg-station,infinitystation/-tg-station,TheVekter/-tg-station,Fox-McCloud/-tg-station,Thunder12345/-tg-station,Bawhoppen/-tg-station,Cyberboss/tgstation,Cyberboss/tgstation,coiax/-tg-station,AnturK/-tg-station,CPTANT/-tg-station,HippieStation/HippieStation,optimumtact/-tg-station,Razharas/-tg-station,HippieStation/HippieStation,TheVekter/-tg-station,anconfuzedrock/tgstation,XDTM/tgstation,ShizCalev/tgstation,anconfuzedrock/tgstation,QualityVan/tgstation,coiax/-tg-station,SamuelRowe/-tg-station,SamuelRowe/-tg-station,Bawhoppen/-tg-station,TheVekter/-tg-station,Razharas/-tg-station,JJRcop/tgstation,Thunder12345/-tg-station,infinitystation/-tg-station,Profakos/tgstation,nicbn/tgstation,tgstation/tgstation,nicbn/tgstation,Razharas/-tg-station,PKPenguin321/-tg-station,Bawhoppen/-tg-station,tgstation/-tg-station,JJRcop/tgstation,ShizCalev/tgstation,SamuelRowe/-tg-station,Cyberboss/tgstation,anconfuzedrock/tgstation,Cruix/-tg-station,Cyberboss/tgstation,CPTANT/-tg-station,ShizCalev/tgstation,WJohn/-tg-station,Cyberboss/tgstation,JJRcop/tgstation,ShizCalev/tgstation,Fox-McCloud/-tg-station,MicroWorldwide/SS13-TG-station,AnturK/-tg-station,Razharas/-tg-station,QualityVan/tgstation,XDTM/tgstation,kingofkosmos/-tg-station,HippieStation/HippieStation,erwgd/-tg-station,kingofkosmos/-tg-station,AnturK/-tg-station,Jordie0608/tgstation,WJohn/-tg-station,ShizCalev/tgstation,optimumtact/-tg-station,TheVekter/-tg-station,WJohn/-tg-station,JJRcop/tgstation,TheVekter/-tg-station,XDTM/tgstation,CPTANT/-tg-station,Arianya/tgstation,Fox-McCloud/-tg-station,tgstation/-tg-station,MicroWorldwide/SS13-TG-station,AnturK/-tg-station,kingofkosmos/-tg-station,PKPenguin321/-tg-station,MrStonedOne/tgstation,Jordie0608/tgstation,QualityVan/tgstation,Jordie0608/tgstation,Arianya/tgstation,QualityVan/tgstation,AnturK/-tg-station,tgstation/-tg-station,infinitystation/-tg-station,nicbn/tgstation,XDTM/tgstation,Cruix/-tg-station,tgstation/tgstation,nicbn/tgstation,Cyberboss/tgstation,tgstation/tgstation,AnturK/-tg-station,Fox-McCloud/-tg-station,optimumtact/-tg-station,optimumtact/-tg-station,GunHog/-tg-station,coiax/-tg-station,CPTANT/-tg-station,coiax/-tg-station,Profakos/tgstation,Thunder12345/-tg-station,Arianya/tgstation,PKPenguin321/-tg-station,MicroWorldwide/SS13-TG-station,PKPenguin321/-tg-station,Arianya/tgstation,Mark9013100/tgstation-m9,Razharas/-tg-station,tgstation/tgstation,Cruix/-tg-station,tgstation/tgstation,GunHog/-tg-station,PKPenguin321/-tg-station,HippieStation/HippieStation,tgstation/tgstation,XDTM/tgstation,Mark9013100/tgstation-m9,Mark9013100/tgstation-m9,optimumtact/-tg-station,GunHog/-tg-station,TalkingCactus/tgstation,XDTM/tgstation,MicroWorldwide/SS13-TG-station,TalkingCactus/tgstation,PKPenguin321/-tg-station,Cruix/-tg-station,Fox-McCloud/-tg-station,TalkingCactus/tgstation,GunHog/-tg-station,Profakos/tgstation,Mark9013100/tgstation-m9,Mark9013100/tgstation-m9,Cyberboss/tgstation,tgstation/-tg-station,WJohn/-tg-station,Arianya/tgstation,XDTM/tgstation,MrStonedOne/tgstation,nicbn/tgstation,anconfuzedrock/tgstation,ShizCalev/tgstation,coiax/-tg-station,TheVekter/-tg-station,Profakos/tgstation,Razharas/-tg-station,HippieStation/HippieStation,Profakos/tgstation,JJRcop/tgstation,Thunder12345/-tg-station,Bawhoppen/-tg-station,TalkingCactus/tgstation,MrStonedOne/tgstation,MrStonedOne/tgstation,GunHog/-tg-station,HippieStation/HippieStation,kingofkosmos/-tg-station,PKPenguin321/-tg-station,Jordie0608/tgstation,ShizCalev/tgstation,MicroWorldwide/SS13-TG-station,optimumtact/-tg-station,Mark9013100/tgstation-m9,Mark9013100/tgstation-m9,MicroWorldwide/SS13-TG-station,WJohn/-tg-station,tgstation/tgstation,erwgd/-tg-station,Cruix/-tg-station,anconfuzedrock/tgstation,Thunder12345/-tg-station,QualityVan/tgstation,MicroWorldwide/SS13-TG-station,WJohn/-tg-station,CPTANT/-tg-station,GunHog/-tg-station,Profakos/tgstation,MrStonedOne/tgstation,CPTANT/-tg-station,QualityVan/tgstation,MicroWorldwide/SS13-TG-station,infinitystation/-tg-station,JJRcop/tgstation,Jordie0608/tgstation,Thunder12345/-tg-station,ShizCalev/tgstation,Jordie0608/tgstation,anconfuzedrock/tgstation,CPTANT/-tg-station,erwgd/-tg-station,MrStonedOne/tgstation