ID:2678930
 
(See the best response by Kaiochao.)
Code:
obj/MouseDrag()if(istype(usr,/mob/Witch))mouse_drag_pointer=icon(src.icon,src.icon_state,src.dir)
obj/New()
..()
mouse_drag_pointer=icon(src.icon,src.icon_state,src.dir)
obj/MouseDrop(o_o,s_l,o_l) //make it so if an object has been dragged to someplace...


Problem description:
So I want to mousedrop obj and mobs but I can only do one or the other without copy&pasting the same code under mob. Is there a way to put this one code under both obj and mob? Obv I don't want to mousedrop turfs so I can't use atom. Thank you!
Best response
mob and obj both have the parent type /atom/movable.
Right but if I do
atom/Mousedrop

then you can move turfs and things you shouldn't be moving.
oh movable? I just looked that up and now I get what you're saying! Thanks :D