- Fox Fixes.
- Clear messages when emagged or EMPed.
- Parole suit can no longer be locked on people with sec or head access.
This commit is contained in:
Kyep
2016-06-24 23:55:08 -07:00
parent aa55eed211
commit 8a610e5a84
3 changed files with 22 additions and 13 deletions
+10 -2
View File
@@ -134,10 +134,18 @@
if (!istype(I))
to_chat(user,"<span class='danger'>[H] is not wearing an ID.</span>")
return
if (emagged)
visible_message(J,"<span class='danger'>[J] emits an error tone.</span>")
if (J.emagged)
to_chat(user, "<span class='danger'>[J] emits an error tone.</span>")
else if (J.emped)
to_chat(user, "<span class='danger'>The circuits on [J] appear to be fried.</span>")
else if (J.parole_locked && J.flags & NODROP && I.flags & NODROP)
J.unlock()
else if (access_heads in I.access)
to_chat(user, "<span class='danger'>[J] cannot be locked on someone wearing an ID with head access. They might need to use their ID on a keycard swiper.")
return
else if (access_security in I.access)
to_chat(user, "<span class='danger'>[J] cannot be locked on someone wearing an ID with security access.")
return
else if (!J.parole_locked && !(J.flags & NODROP) && !(I.flags & NODROP))
J.lock(I)
else