mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user