mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Update closets.dm (#21866)
This commit is contained in:
@@ -324,12 +324,14 @@ GLOBAL_LIST_EMPTY(lockers)
|
||||
/obj/structure/closet/attackby(obj/item/attacking_item, mob/user, params)
|
||||
if(user in src)
|
||||
return
|
||||
if(user.a_intent == INTENT_HARM)
|
||||
if(user.a_intent == INTENT_HARM) //if you're on harm intent, just hit it
|
||||
return ..()
|
||||
if(attacking_item.GetID())
|
||||
if(attacking_item.GetID()) //if you're hitting with an id item, toggle the lock
|
||||
togglelock(user)
|
||||
return TRUE
|
||||
if(user.transferItemToLoc(attacking_item, drop_location()))
|
||||
if(!opened) //if it's closed, just hit it
|
||||
return ..()
|
||||
if(user.transferItemToLoc(attacking_item, drop_location())) //try to transfer the held item to it
|
||||
return TRUE
|
||||
|
||||
/obj/structure/closet/welder_act(mob/living/user, obj/item/tool)
|
||||
|
||||
Reference in New Issue
Block a user