mob
player
proc
build_sharepoint_list(var/list/l)
var/list/sharepoint_list=new/list()
for(var/obj/Sharepoint/s in l)
sharepoint_list+=s
return sharepoint_list
verb
Manage_Sharepoint(var/obj/Sharepoint/s as obj in build_sharepoint_list(oview(1)))
set src=usr
if(s.adminkey!=usr.key)
showError("You are not this sharepoint's administrator.")
return
Problem description:
Ok, so I have the above code in a file called admin.dm(not sure if that matters) and most of my /mob/player stuff is in another file. For some reason, the verb Manage Sharepoint comes up whenever I right click any object in the game...
Anyone know what I'm doing wrong?