mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 19:22:56 +00:00
check antag "call shuttle" overrides fake recall, can use marked datum as arg in the bs12 call proc command
This commit is contained in:
@@ -133,7 +133,7 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
|
||||
|
||||
var/i
|
||||
for(i=0; i<argNum; i++)
|
||||
class = input("Type of Argument #[i]","Variable Type", "text") in list("text","num","type","reference","icon","file","cancel")
|
||||
class = input("Type of Argument #[i]","Variable Type", "text") in list("text","num","type","reference","icon","file","marked datum","cancel")
|
||||
switch(class)
|
||||
if("cancel")
|
||||
return
|
||||
@@ -156,6 +156,9 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
|
||||
if("file")
|
||||
argL.Add( input("Pick file:","File",null) as file )
|
||||
|
||||
if("marked datum")
|
||||
argL.Add(usr.client.holder.marked_datum)
|
||||
|
||||
usr << "\blue Calling '[procname]'"
|
||||
returnval = call(procname)(arglist(argL))
|
||||
|
||||
@@ -182,7 +185,7 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
|
||||
|
||||
var/i
|
||||
for(i=0; i<argNum; i++)
|
||||
class = input("Type of Argument #[i]","Variable Type", "text") in list("text","num","type","reference","icon","file","cancel")
|
||||
class = input("Type of Argument #[i]","Variable Type", "text") in list("text","num","type","reference","icon","file","marked datum","cancel")
|
||||
switch(class)
|
||||
if("cancel")
|
||||
return
|
||||
@@ -205,6 +208,9 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
|
||||
if("file")
|
||||
argL.Add( input("Pick file:","File",null) as file )
|
||||
|
||||
if("marked datum")
|
||||
argL.Add(usr.client.holder.marked_datum)
|
||||
|
||||
usr << "\blue Calling '[procname]' on '[target]'"
|
||||
returnval = call(target,procname)(arglist(argL))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user