turf/door
icon = 'door.dmi'
name = "Door"
icon_state = "closed"
density = 1
proc/toggle()
if(density)
density = 0
icon_state = "open"
return
if(!density)
density = 1
icon_state = "closed"
return
Click()
if(!(src in view(1,usr)))
return 0
toggle()
return
Problem description:
Opening the door works fine, but when i close it, nothing happens, it just stays in its open state and is passable :(
Edit: I made a verb on the door just to test to see, i cant even access that verb once its opened, what is this black magic?
I think it would be cleaner if you tried something like this:
Also there is no need to return after calling toggle() in Click().