- Fixed department security, so you no longer spawn in walls

- Applied some changes that happened to jobs since department security was started.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5467 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
baloh.matevz@gmail.com
2013-01-05 03:37:22 +00:00
parent a6c1a64d89
commit 9cf23741ca
2 changed files with 15 additions and 1 deletions
@@ -30,7 +30,15 @@ proc/assign_sec_to_department(var/mob/living/carbon/human/H)
if(destination)
spawn(15)
if(H)
H.loc = pick(get_area_turfs(destination))
var/turf/T
var/safety = 0
while(safety < 25)
T = pick(get_area_turfs(destination))
if(!H.Move(T))
safety += 1
continue
else
break
H << "<b>You have been assigned to [department]!</b>"
if(locate(/obj/item/weapon/card/id, H))
var/obj/item/weapon/card/id/I = locate(/obj/item/weapon/card/id, H)
@@ -131,6 +131,12 @@
return 1
return 0
/obj/item/proc/GetAccess()
return list()
/obj/item/proc/GetID()
return null
/obj/proc/check_access(obj/item/weapon/card/id/I)
if (istype(I, /obj/item/device/pda))