mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-15 09:03:23 +01:00
BRUTAL Part 1 - No proc var/ in procs
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
GLOBAL_VAR(create_object_html)
|
||||
GLOBAL_LIST_INIT(create_object_forms, list(/obj, /obj/structure, /obj/machinery, /obj/effect, /obj/item, /obj/mecha, /obj/item/clothing, /obj/item/stack, /obj/item/reagent_containers, /obj/item/gun))
|
||||
|
||||
/datum/admins/proc/create_object(var/mob/user)
|
||||
/datum/admins/proc/create_object(mob/user)
|
||||
if(!GLOB.create_object_html)
|
||||
var/objectjs = null
|
||||
objectjs = jointext(typesof(/obj), ";")
|
||||
@@ -10,7 +10,7 @@ GLOBAL_LIST_INIT(create_object_forms, list(/obj, /obj/structure, /obj/machinery,
|
||||
|
||||
user << browse(replacetext(GLOB.create_object_html, "/* ref src */", UID()), "window=create_object;size=425x475")
|
||||
|
||||
/datum/admins/proc/quick_create_object(var/mob/user)
|
||||
/datum/admins/proc/quick_create_object(mob/user)
|
||||
var/path = input("Select the path of the object you wish to create.", "Path", /obj) in GLOB.create_object_forms
|
||||
var/html_form = GLOB.create_object_forms[path]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user