Fixes bugs

- Tables can't have NODROP or ABSTRACT items placed on them anymore,
same for lockers and crates.
- Fixes a runtime with trying to strip a NODROP or ABSTRACT item.
This commit is contained in:
DZD
2015-02-19 19:32:58 -05:00
parent a299793ab8
commit c11bb0d283
8 changed files with 28 additions and 16 deletions
+3
View File
@@ -20,6 +20,9 @@
I = usr.r_hand
if(!I)
return
if((I.flags & NODROP) || (I.flags & ABSTRACT))
usr << "<span class='notice'>That's not exactly something you can give."
return
if(src.r_hand == null || src.l_hand == null)
switch(alert(src,"[usr] wants to give you \a [I]?",,"Yes","No"))
if("Yes")
@@ -763,6 +763,8 @@ It can still be worn/put on as normal.
if(slot_to_process)
if(strip_item) //Stripping an item from the mob
var/obj/item/W = strip_item
if((W.flags & NODROP) || (W.flags & ABSTRACT)) //Just to be sure
return
target.unEquip(W)
if (target.client)
target.client.screen -= W