mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
Revert "Allows admins to pass parameters to New() (#26613)"
This reverts commit 9d0185c023.
This commit is contained in:
@@ -145,8 +145,8 @@ GLOBAL_PROTECT(AdminProcCallCount)
|
||||
|
||||
|
||||
|
||||
/client/proc/get_callproc_args(is_atom_new = FALSE)
|
||||
var/argnum = input("Number of arguments[is_atom_new ? " (Excluding loc)" : ""]","Number:",0) as num|null
|
||||
/client/proc/get_callproc_args()
|
||||
var/argnum = input("Number of arguments","Number:",0) as num|null
|
||||
if(isnull(argnum))
|
||||
return
|
||||
|
||||
|
||||
@@ -213,14 +213,7 @@ GLOBAL_PROTECT(VVpixelmovement)
|
||||
.["class"] = null
|
||||
return
|
||||
.["type"] = type
|
||||
|
||||
var/list/arguments
|
||||
if(alert(usr, "Would you like to add arguments?", "New Atom", "No", "Yes") == "Yes")
|
||||
arguments = get_callproc_args(FALSE)
|
||||
else
|
||||
arguments = list()
|
||||
|
||||
.["value"] = new type(arglist(arguments))
|
||||
.["value"] = new type()
|
||||
|
||||
if (VV_NEW_DATUM)
|
||||
var/type = pick_closest_path(FALSE, get_fancy_list_of_datum_types())
|
||||
@@ -228,13 +221,7 @@ GLOBAL_PROTECT(VVpixelmovement)
|
||||
.["class"] = null
|
||||
return
|
||||
.["type"] = type
|
||||
var/list/arguments
|
||||
if(alert(usr, "Would you like to add arguments?", "New Atom", "No", "Yes") == "Yes")
|
||||
arguments = get_callproc_args(FALSE)
|
||||
else
|
||||
arguments = list()
|
||||
|
||||
.["value"] = new type(arglist(arguments))
|
||||
.["value"] = new type()
|
||||
|
||||
if (VV_NEW_TYPE)
|
||||
var/type = current_value
|
||||
@@ -250,14 +237,7 @@ GLOBAL_PROTECT(VVpixelmovement)
|
||||
.["class"] = null
|
||||
return
|
||||
.["type"] = type
|
||||
|
||||
var/list/arguments
|
||||
if(alert(usr, "Would you like to add arguments?", "New Atom", "No", "Yes") == "Yes")
|
||||
arguments = get_callproc_args(FALSE);
|
||||
else
|
||||
arguments = list()
|
||||
|
||||
.["value"] = new type(arglist(arguments))
|
||||
.["value"] = new type()
|
||||
|
||||
|
||||
if (VV_NEW_LIST)
|
||||
|
||||
Reference in New Issue
Block a user