Stacksplit (#20064)
Stacksplit (#20064)

* Added an AltClick function to split Stacks

Stacks now have an altclick function that lets you input how much you
would like to split the stack by

Also changed the regular click code by turning most of its code into a
proc, this reduced the amount of copy-pasting needed, as both the
regular and alt click on stacks do the same thing, except alt clicking
lets you input a number

* Wrong var name

* Edits based on feedback

-Removed trailing return
-removed uneeded if statement
-removed uneeded src as it should call the right method anyway

* Removed metal interact after splitting

Groxic/tgstation,Fox-McCloud/-tg-station,JJRcop/tgstation,Cruix/-tg-station,Xhuis/tgfork,PKPenguin321/-tg-station,Bawhoppen/-tg-station,JStheguy/tgstation,Robustin/tgstation,neersighted/tgstation,tgstation/tgstation,Cyberboss/tgstation,ChangelingRain/-tg-station,Xhuis/tgfork,McBawbaggings/HippieStation,Aranclanos/-tg-station,ChangelingRain/-tg-station,Y0SH1M4S73R/-tg-station,F-OS/tgstation,Kraseo/-tg-station,GuyonBroadway/HippieStation,GunHog/-tg-station,MrStonedOne/-tg-station,tgstation/tgstation,JJRcop/tgstation,TalkingCactus/tgstation,bear1ake/-tg-station,Bawhoppen/-tg-station,Niknakflak/-tg-station,ike709/FTL13,Groxic/tgstation,Iamgoofball/-tg-station,SamuelRowe/-tg-station,riftstation/riftstation,Core0verload/-tg-station,JStheguy/tgstation,CosmicScientist/-tg-station,Crexfu/tgstation,MicroWorldwide/SS13-TG-station,Tacolizard/tgstation,paprka/-tg-station,WJohn/-tg-station,neersighted/tgstation,Shadowlight213/-tg-station,4dplanner/tgstation,TehZombehz/-tg-station,TheVekter/-tg-station,Robustin/tgstation,Tacolizard/tgstation,PKPenguin321/-tg-station,TehZombehz/-tg-station,AnturK/-tg-station,xxalpha/-tg-station,securitycopper/-tg-station,McBawbaggings/HippieStation,4dplanner/tgstation,Mervill/tgstation,SamuelRowe/-tg-station,Cheridan/tgstation,OBA-code/tgstation,Ultimate-Chimera/tgstation,McBawbaggings/HippieStation,Jalleo/-tg-station,loqoman/tgstation,ChayseRamsay/Soteria-v3,McBawbaggings/HippieStation,lordpidey/-tg-station,ChayseRamsay/Soteria-v3,Jalleo/-tg-station,Y0SH1M4S73R/-tg-station,TheOneForgotten/white,Cyberboss/tgstation,NicholasM10/-tg-station,Aranclanos/-tg-station,loqoman/tgstation,TheRealGLH/-tg-station,coiax/-tg-station,Fox-McCloud/-tg-station,Thunder12345/-tg-station,Memendia/HippieStation13,Niknakflak/-tg-station,Mark9013100/tgstation-m9,securitycopper/-tg-station,Bawhoppen/-tg-station,Osokorn/tgstation,Xhuis/-tg-station,CPTANT/-tg-station,anconfuzedrock/tgstation,Razharas/-tg-station,SamuelRowe/-tg-station,xxalpha/-tg-station,optimumtact/-tg-station,Maks750rus/-tg-station,F-OS/tgstation,MrStonedOne/tgstation,4dplanner/tgstation,Expletive/tgstation,Jalleo/-tg-station,athompson11/Soteria-v3,Anonus/-tg-station,ohnopigeons/tgstation,Cheridan/-tg-station,tgstation/tgstation,infinitystation/-tg-station,Memendia/HippieStation13,riftstation/riftstation,Tokiko1/tgstation,securitycopper/-tg-station,CPTANT/-tg-station,Bawhoppen/-tg-station,JStheguy/tgstation,AuroranAI/FTL13,athompson11/Soteria-v3,Kraseo/-tg-station,TheOneForgotten/white,lordpidey/-tg-station,TheOneForgotten/white,ToGWtF/yogstation,XDTM/tgstation,NicholasM10/-tg-station,anconfuzedrock/tgstation,feemjmeem/-tg-station,Niknakflak/-tg-station,Tacolizard/tgstation,F-OS/tgstation,Robustin/tgstation,PJB3005/tgstation,Incoming5643/-tg-station,Kirill1243/-tg-station,Profakos/tgstation,Expletive/tgstation,Tacolizard/tgstation,Buggy123/-tg-station,MicroWorldwide/SS13-TG-station,McBawbaggings/HippieStation,ShizCalev/tgstation,MrStonedOne/tgstation,tgstation/tgstation,Ultimate-Chimera/tgstation,Incoming5643/-tg-station,athompson11/Soteria-v3,TheDreamweaver/-tg-station,feemjmeem/-tg-station,Penguaro/tgstation,Buggy123/-tg-station,JJRcop/tgstation,kevinz000/-tg-station,Bawhoppen/-tg-station,coiax/-tg-station,LegendaryPoro/FTL13,MrStonedOne/-tg-station,MicroWorldwide/SS13-TG-station,XDTM/tgstation,coiax/-tg-station,Bawhoppen/-tg-station,blockheads/-tg-station,MrStonedOne/tgstation,Jordie0608/tgstation,TehZombehz/-tg-station,Poojawa/tgstation-fork,WJohn/-tg-station,CPTANT/-tg-station,Bawhoppen/-tg-station,ChangelingRain/-tg-station,Aranclanos/-tg-station,AuroranAI/FTL13,loqoman/tgstation,Fox-McCloud/-tg-station,infinitystation/-tg-station,Incoming5643/-tg-station,Y0SH1M4S73R/-tg-station,JStheguy/tgstation,MrStonedOne/tgstation,tgstation/-tg-station,Qwertyon666/Necro,coiax/-tg-station,Fox-McCloud/-tg-station,kingofkosmos/-tg-station,Mark9013100/tgstation-m9,HippieStation/HippieStation,A-t48/-tg-station,paprka/-tg-station,Qwertyon666/Necro,neersighted/tgstation,TehZombehz/-tg-station,Arianya/tgstation,Jordie0608/-tg-station,kingofkosmos/-tg-station,Cyberboss/tgstation,vcordie/tgstation,xxalpha/-tg-station,AnturK/-tg-station,Shadowlight213/-tg-station,PKPenguin321/-tg-station,HippieStationCode/HippieStation13,Anonus/-tg-station,Profakos/tgstation,PKPenguin321/-tg-station,coiax/-tg-station,xxalpha/-tg-station,Mervill/tgstation,riftstation/riftstation,MrStonedOne/tgstation,optimumtact/-tg-station,Xhuis/tgfork,posttk421/tgstation,SamuelRowe/-tg-station,F-OS/tgstation,Incoming5643/-tg-station,lzimann/tgstation,HippieStationCode/HippieStation13,ZioZan/tgstation,Memendia/HippieStation,Xhuis/tgfork,feemjmeem/-tg-station,Memendia/HippieStation,PJB3005/tgstation,greytide/greytide,GunHog/-tg-station,Y0SH1M4S73R/-tg-station,TheDreamweaver/-tg-station,Poojawa/tgstation-fork,McBawbaggings/HippieStation,optimumtact/-tg-station,Xhuis/AquaStation,octareenroon91/-tg-station,lzimann/-tg-station,Incoming5643/-tg-station,nicbn/tgstation,vcordie/tgstation,TheDreamweaver/-tg-station,Jordie0608/tgstation,Poojawa/tgstation-fork,Cruix/-tg-station,Fox-McCloud/-tg-station,JStheguy/tgstation,Shadowlight213/-tg-station,GuyonBroadway/HippieStation,Core0verload/-tg-station,Cyberboss/tgstation,chickenboy10/tgstation,Jordie0608/-tg-station,QualityVan/tgstation,GunHog/-tg-station,Mark9013100/tgstation-m9,Mark9013100/tgstation-m9,Incoming5643/-tg-station,blockheads/-tg-station,Robustin/tgstation,duncathan/-tg-station,A-t48/-tg-station,Xhuis/AquaStation,Core0verload/-tg-station,TehZombehz/-tg-station,Yoshmaster/-tg-station,neersighted/tgstation,Thunder12345/-tg-station,infinitystation/-tg-station,Maks750rus/-tg-station,Poojawa/tgstation-fork,WJohn/-tg-station,GunHog/-tg-station,JJRcop/-tg-station,phil235/-tg-station,AuroranAI/FTL13,Razharas/-tg-station,NicholasM10/-tg-station,MrStonedOne/tgstation,Tacolizard/tgstation,AnturK/-tg-station,kevinz000/-tg-station,Cruix/-tg-station,Yoshmaster/-tg-station,vcordie/tgstation,CosmicScientist/-tg-station,paprka/-tg-station,lordpidey/-tg-station,infinitystation/-tg-station,kyrahabattoir/-tg-station,Xhuis/-tg-station,ike709/FTL13,bear1ake/-tg-station,ShizCalev/tgstation,LegendaryPoro/FTL13,Tacolizard/tgstation,Cyberboss/tgstation,Valanthe500/Soteria-v3,loqoman/tgstation,ChayseRamsay/Soteria-v3,Mark9013100/tgstation-m9,CosmicScientist/-tg-station,ChangelingRain/-tg-station,TehZombehz/-tg-station,nicbn/tgstation,Qwertyon666/Necro,anconfuzedrock/tgstation,Iamgoofball/-tg-station,loqoman/tgstation,xxalpha/-tg-station,phil235/-tg-station,dannno/-tg-station,Expletive/tgstation,Arianya/tgstation,bear1ake/-tg-station,tgstation/-tg-station,Cheridan/tgstation,paprka/-tg-station,nicbn/tgstation,GunHog/-tg-station,Kirill1243/-tg-station,Memendia/HippieStation,LegendaryPoro/FTL13,Jalleo/-tg-station,JStheguy/tgstation,lordpidey/-tg-station,Cruix/-tg-station,Thunder12345/-tg-station,lordpidey/-tg-station,lordpidey/-tg-station,Shadowlight213/-tg-station,Core0verload/-tg-station,ike709/FTL13,feemjmeem/-tg-station,feemjmeem/-tg-station,Shadowlight213/-tg-station,phil235/-tg-station,CosmicScientist/-tg-station,Penguaro/tgstation,lzimann/-tg-station,MrStonedOne/tgstation,dannno/-tg-station,QualityVan/tgstation,Y0SH1M4S73R/-tg-station,Maks750rus/-tg-station,Robustin/tgstation,Thunder12345/-tg-station,neersighted/tgstation,ZioZan/tgstation,feemjmeem/-tg-station,anconfuzedrock/tgstation,nicbn/tgstation,Y0SH1M4S73R/-tg-station,A-t48/-tg-station,Jordie0608/tgstation,QualityVan/tgstation,loqoman/tgstation,Poojawa/tgstation-fork,Maks750rus/-tg-station,PJB3005/tgstation,securitycopper/-tg-station,Ultimate-Chimera/tgstation,Fox-McCloud/-tg-station,octareenroon91/-tg-station,erwgd/-tg-station,Groxic/tgstation,xxalpha/-tg-station,kingofkosmos/-tg-station,GuyonBroadway/HippieStation,GuyonBroadway/HippieStation,Robustin/tgstation,kevinz000/-tg-station,MicroWorldwide/SS13-TG-station,ike709/FTL13,TheRealGLH/-tg-station,Aranclanos/-tg-station,loqoman/tgstation,4dplanner/tgstation,Poojawa/tgstation-fork,posttk421/tgstation,kevinz000/-tg-station,PKPenguin321/-tg-station,erwgd/-tg-station,Niknakflak/-tg-station,F-OS/tgstation,Arianya/tgstation,blockheads/-tg-station,TehZombehz/-tg-station,NicholasM10/-tg-station,paprka/-tg-station,Tokiko1/tgstation,Xhuis/tgfork,anconfuzedrock/tgstation,Mervill/tgstation,Iamgoofball/-tg-station,GuyonBroadway/HippieStation,HippieStation/HippieStation,kingofkosmos/-tg-station,TheVekter/-tg-station,Cyberboss/tgstation,WJohn/-tg-station,PJB3005/tgstation,tgstation/-tg-station,JJRcop/tgstation,riftstation/riftstation,kingofkosmos/-tg-station,Razharas/-tg-station,Shadowlight213/-tg-station,JJRcop/-tg-station,TheVekter/-tg-station,CPTANT/-tg-station,Buggy123/-tg-station,Xhuis/-tg-station,TalkingCactus/tgstation,NicholasM10/-tg-station,securitycopper/-tg-station,Fox-McCloud/-tg-station,HippieStation/HippieStation,MicroWorldwide/SS13-TG-station,octareenroon91/-tg-station,F-OS/tgstation,nicbn/tgstation,Xhuis/AquaStation,Xhuis/-tg-station,Jordie0608/tgstation,Cheridan/-tg-station,MicroWorldwide/SS13-TG-station,AnturK/-tg-station,Thunder12345/-tg-station,Tokiko1/tgstation,kingofkosmos/-tg-station,TehZombehz/-tg-station,ShizCalev/tgstation,anconfuzedrock/tgstation,Buggy123/-tg-station,Valanthe500/Soteria-v3,chickenboy10/tgstation,Thunder12345/-tg-station,Razharas/-tg-station,Memendia/HippieStation,Osokorn/tgstation,Anonus/-tg-station,ChangelingRain/-tg-station,Kirill1243/-tg-station,ChangelingRain/-tg-station,MicroWorldwide/SS13-TG-station,Razharas/-tg-station,greytide/greytide,QualityVan/tgstation,WJohn/-tg-station,ToGWtF/yogstation,paprka/-tg-station,ShizCalev/tgstation,F-OS/tgstation,optimumtact/-tg-station,Niknakflak/-tg-station,McBawbaggings/HippieStation,Memendia/HippieStation13,TheOneForgotten/white,HippieStation/HippieStation,Memendia/HippieStation,TalkingCactus/tgstation,ToGWtF/yogstation,TheVekter/-tg-station,neersighted/tgstation,Razharas/-tg-station,xxalpha/-tg-station,greytide/greytide,JJRcop/tgstation,GunHog/-tg-station,ohnopigeons/tgstation,Haevacht/tgstation,Niknakflak/-tg-station,kyrahabattoir/-tg-station,kyrahabattoir/-tg-station,erwgd/-tg-station,Cheridan/tgstation,HippieStationCode/HippieStation13,McBawbaggings/HippieStation,QualityVan/tgstation,Profakos/tgstation,athompson11/Soteria-v3,A-t48/-tg-station,Haevacht/tgstation,riftstation/riftstation,ChangelingRain/-tg-station,Y0SH1M4S73R/-tg-station,Jalleo/-tg-station,securitycopper/-tg-station,Cheridan/tgstation,Arianya/tgstation,tgstation/tgstation,Memendia/HippieStation,Mark9013100/tgstation-m9,AuroranAI/FTL13,Cheridan/-tg-station,Bawhoppen/-tg-station,vcordie/tgstation,duncathan/-tg-station,Shadowlight213/-tg-station,NicholasM10/-tg-station,InsaneHyena/tgstation,HippieStation/HippieStation,Cheridan/-tg-station,Penguaro/tgstation,ohnopigeons/tgstation,infinitystation/-tg-station,Valanthe500/Soteria-v3,lordpidey/-tg-station,Valanthe500/Soteria-v3,Cruix/-tg-station,Jordie0608/tgstation,Kraseo/-tg-station,Penguaro/tgstation,Profakos/tgstation,HippieStation/HippieStation,QualityVan/tgstation,coiax/-tg-station,NicholasM10/-tg-station,MicroWorldwide/SS13-TG-station,TheVekter/-tg-station,Crexfu/tgstation,Jalleo/-tg-station,HippieStation/HippieStation,Haevacht/tgstation,ShizCalev/tgstation,lordpidey/-tg-station,GunHog/-tg-station,Buggy123/-tg-station,lzimann/-tg-station,phil235/-tg-station,Razharas/-tg-station,PKPenguin321/-tg-station,Jordie0608/-tg-station,kevinz000/-tg-station,Thunder12345/-tg-station,lzimann/tgstation,Ultimate-Chimera/tgstation,Arianya/tgstation,Memendia/HippieStation,Jordie0608/tgstation,paprka/-tg-station,Arianya/tgstation,ShizCalev/tgstation,Yoshmaster/-tg-station,JJRcop/-tg-station,riftstation/riftstation,dannno/-tg-station,AnturK/-tg-station,Aranclanos/-tg-station,Kirill1243/-tg-station,riftstation/riftstation,neersighted/tgstation,InsaneHyena/tgstation,posttk421/tgstation,Cruix/-tg-station,duncathan/-tg-station,nicbn/tgstation,Y0SH1M4S73R/-tg-station,Profakos/tgstation,ChayseRamsay/Soteria-v3,OBA-code/tgstation,GuyonBroadway/HippieStation,MrStonedOne/tgstation,kevinz000/-tg-station,Yoshmaster/-tg-station,Memendia/HippieStation,F-OS/tgstation,CPTANT/-tg-station,riftstation/riftstation,XDTM/tgstation,feemjmeem/-tg-station,CosmicScientist/-tg-station,Qwertyon666/Necro,Iamgoofball/-tg-station,Aranclanos/-tg-station,chickenboy10/tgstation,AnturK/-tg-station,MrStonedOne/-tg-station,Cruix/-tg-station,infinitystation/-tg-station,Xhuis/tgfork,CosmicScientist/-tg-station,Jordie0608/tgstation,Groxic/tgstation,infinitystation/-tg-station,chickenboy10/tgstation,Xhuis/AquaStation,posttk421/tgstation,HippieStationCode/HippieStation13,optimumtact/-tg-station,coiax/-tg-station,Tacolizard/tgstation,LegendaryPoro/FTL13,Cyberboss/tgstation,XDTM/tgstation,Jordie0608/tgstation,Cruix/-tg-station,tgstation/tgstation,tgstation/-tg-station,kingofkosmos/-tg-station,Crexfu/tgstation,paprka/-tg-station,OBA-code/tgstation,TheRealGLH/-tg-station,Incoming5643/-tg-station,greytide/greytide,4dplanner/tgstation,ToGWtF/yogstation,lzimann/tgstation,Buggy123/-tg-station,Buggy123/-tg-station,Crexfu/tgstation,Aranclanos/-tg-station,Kraseo/-tg-station,securitycopper/-tg-station,Niknakflak/-tg-station,JJRcop/tgstation,QualityVan/tgstation,GuyonBroadway/HippieStation,neersighted/tgstation,Robustin/tgstation,AnturK/-tg-station,Aranclanos/-tg-station,tgstation/tgstation,optimumtact/-tg-station,JJRcop/-tg-station,WJohn/-tg-station,nicbn/tgstation,Osokorn/tgstation,PKPenguin321/-tg-station,Jalleo/-tg-station,Xhuis/tgfork,optimumtact/-tg-station,octareenroon91/-tg-station,Buggy123/-tg-station,Jordie0608/-tg-station,XDTM/tgstation,ShizCalev/tgstation,octareenroon91/-tg-station,4dplanner/tgstation,GuyonBroadway/HippieStation,feemjmeem/-tg-station,xxalpha/-tg-station,tgstation/tgstation,CPTANT/-tg-station,ZioZan/tgstation,Memendia/HippieStation13,TheVekter/-tg-station,Profakos/tgstation,JStheguy/tgstation,kevinz000/-tg-station,CPTANT/-tg-station,WJohn/-tg-station,TheDreamweaver/-tg-station,loqoman/tgstation,dannno/-tg-station,Mark9013100/tgstation-m9,Mervill/tgstation,ChangelingRain/-tg-station,Incoming5643/-tg-station,Arianya/tgstation,TalkingCactus/tgstation,kevinz000/-tg-station,kyrahabattoir/-tg-station,4dplanner/tgstation,NicholasM10/-tg-station,Tacolizard/tgstation,JJRcop/tgstation,InsaneHyena/tgstation,XDTM/tgstation,anconfuzedrock/tgstation,duncathan/-tg-station,infinitystation/-tg-station,Xhuis/tgfork,XDTM/tgstation,Profakos/tgstation,PKPenguin321/-tg-station,blockheads/-tg-station,4dplanner/tgstation,Expletive/tgstation,OBA-code/tgstation,InsaneHyena/tgstation,Razharas/-tg-station,lzimann/-tg-station,CosmicScientist/-tg-station,Tokiko1/tgstation,Poojawa/tgstation-fork,securitycopper/-tg-station,CPTANT/-tg-station,Anonus/-tg-station,Robustin/tgstation,bear1ake/-tg-station,Jalleo/-tg-station,TheVekter/-tg-station,MrStonedOne/-tg-station,ohnopigeons/tgstation,Haevacht/tgstation,CosmicScientist/-tg-station,TheRealGLH/-tg-station,Shadowlight213/-tg-station,ShizCalev/tgstation