Fixed several things.

This commit is contained in:
SkyMarshal
2011-12-27 13:44:52 -07:00
parent cfbb6eb704
commit 08ff9b06e7
6 changed files with 15 additions and 13 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ var/list/CustomItemList = list(
var/path = Entry[3]
var/obj/item/Item = new path()
if(istype(M.back,/obj/item/weapon/storage) && M.back:len < M.back:storage_slots) // Try to place it in something on the mob's back first
if(istype(M.back,/obj/item/weapon/storage) && M.back:contents.len < M.back:storage_slots) // Try to place it in something on the mob's back first
Item.loc = M.back
ok = 1
else
+1 -1
View File
@@ -106,7 +106,7 @@
breaktape(null, user)
/obj/item/policetape/proc/breaktape(obj/item/weapon/W as obj, mob/user as mob)
if(!W || !is_cut(W))
if(!W || (!is_sharp(W) && src.allowed(user)) ||(!is_cut(W) && !src.allowed(user)))
user << "You can't break the tape with that!"
return
user.show_viewers(text("\blue [] breaks the police tape!", user))