turf/hiddenwalls
leafwall
Enter(mob/M)
if(M.village != "Leaf")
var/entry = 0
for(var/obj/inventory/leafpass in M.contents)
entry = 1
if(entry == 1)
return 1
else
M << "You can't go in the leaf village without a passport!"
return 0
else
return 1
Problem description:Anyone can go through the wall, even people without a passport.
You can check for the pass in their inventory without a loop as well.
You should also be sure you're NOT in the Leaf village.