From ee298cf27d57b9ef701abf49d7cfd50c66becd33 Mon Sep 17 00:00:00 2001 From: "baloh.matevz" Date: Sat, 29 Oct 2011 16:16:07 +0000 Subject: [PATCH] - View variables' options drop-down menu now also has the mob type transformation things. You can still only transform from a human mob type tho. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2443 316c924e-a436-60f5-8080-3fe189b3f50e --- code/datums/datumvars.dm | 92 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) diff --git a/code/datums/datumvars.dm b/code/datums/datumvars.dm index 2f7d47c3c54..433fd4c0af4 100644 --- a/code/datums/datumvars.dm +++ b/code/datums/datumvars.dm @@ -227,6 +227,13 @@ client body += "" body += "" body += "" + if(ishuman(D)) + body += "" + body += "" + body += "" + body += "" + body += "" + body += "" body += "" body += "" if(isobj(D)) @@ -559,6 +566,91 @@ client if("left") A.dir = turn(A.dir, 45) href_list["datumrefresh"] = href_list["rotatedatum"] + else if (href_list["makemonkey"]) + var/mob/M = locate(href_list["makemonkey"]) + if(!M) + return + if(!ishuman(M)) + usr << "This can only be done to objects of type /mob/living/carbon/human" + return + if(!src.holder) + usr << "You are not an administrator." + return + var/action_type = alert("Confirm mob type change?",,"Transform","Cancel") + if(!action_type || action_type == "Cancel") + return + if(!M) + usr << "Mob doesn't exist anymore" + return + holder.Topic(href, list("monkeyone"=href_list["makemonkey"])) + else if (href_list["makerobot"]) + var/mob/M = locate(href_list["makerobot"]) + if(!M) + return + if(!ishuman(M)) + usr << "This can only be done to objects of type /mob/living/carbon/human" + return + if(!src.holder) + usr << "You are not an administrator." + return + var/action_type = alert("Confirm mob type change?",,"Transform","Cancel") + if(!action_type || action_type == "Cancel") + return + if(!M) + usr << "Mob doesn't exist anymore" + return + holder.Topic(href, list("makerobot"=href_list["makerobot"])) + else if (href_list["makealien"]) + var/mob/M = locate(href_list["makealien"]) + if(!M) + return + if(!ishuman(M)) + usr << "This can only be done to objects of type /mob/living/carbon/human" + return + if(!src.holder) + usr << "You are not an administrator." + return + var/action_type = alert("Confirm mob type change?",,"Transform","Cancel") + if(!action_type || action_type == "Cancel") + return + if(!M) + usr << "Mob doesn't exist anymore" + return + holder.Topic(href, list("makealien"=href_list["makealien"])) + else if (href_list["makemetroid"]) + var/mob/M = locate(href_list["makemetroid"]) + if(!M) + return + if(!ishuman(M)) + usr << "This can only be done to objects of type /mob/living/carbon/human" + return + if(!src.holder) + usr << "You are not an administrator." + return + var/action_type = alert("Confirm mob type change?",,"Transform","Cancel") + if(!action_type || action_type == "Cancel") + return + if(!M) + usr << "Mob doesn't exist anymore" + return + holder.Topic(href, list("makemetroid"=href_list["makemetroid"])) + else if (href_list["makeai"]) + var/mob/M = locate(href_list["makeai"]) + if(!M) + return + if(!ishuman(M)) + usr << "This can only be done to objects of type /mob/living/carbon/human" + return + if(!src.holder) + usr << "You are not an administrator." + return + var/action_type = alert("Confirm mob type change?",,"Transform","Cancel") + if(!action_type || action_type == "Cancel") + return + if(!M) + usr << "Mob doesn't exist anymore" + return + holder.Topic(href, list("makeai"=href_list["makeai"])) else ..()