Cult papers can't be placed on airlocks

This commit is contained in:
joep van der velden
2019-12-18 23:04:18 +01:00
parent 953f7847d9
commit c7c5b5a899
+1 -10
View File
@@ -979,19 +979,10 @@ About the new airlock wires panel:
else if(istype(C, /obj/item/pai_cable)) // -- TLE
var/obj/item/pai_cable/cable = C
cable.plugin(src, user)
else if(istype(C, /obj/item/paper) || istype(C, /obj/item/photo))
else if((istype(C, /obj/item/paper) && !istype(C, /obj/item/paper/talisman)) || istype(C, /obj/item/photo))
if(note)
to_chat(user, "<span class='warning'>There's already something pinned to this airlock! Use wirecutters or your hands to remove it.</span>")
return
if(!user.canUnEquip(C))
to_chat(user, "<span class='warning'>For some reason, you can't attach [C]!</span>")
return
// QOL for cultists
if(!do_after_once(user, 10, target = src))
return
if(!user.unEquip(C))
to_chat(user, "<span class='warning'>For some reason, you can't attach [C]!</span>")
return