mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-29 16:19:36 +01:00
[MIRROR] Moves destroy_on_drop to TG style and adds signal (#11640)
Co-authored-by: Will <7099514+Willburd@users.noreply.github.com> Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Will
Cameron Lennox
parent
e62583c5c4
commit
e97dd3d6e2
@@ -115,14 +115,22 @@ var/list/slot_equipment_priority = list( \
|
||||
//Puts the item into your l_hand if possible and calls all necessary triggers/updates. returns 1 on success.
|
||||
/mob/proc/put_in_l_hand(var/obj/item/W)
|
||||
if(!istype(W))
|
||||
return 0
|
||||
return 1
|
||||
return FALSE
|
||||
if(QDELETED(W))
|
||||
if(!(W.item_flags & DROPDEL))
|
||||
log_runtime("[src] tried to pick up a qdeleted object [W]")
|
||||
return FALSE
|
||||
return TRUE
|
||||
|
||||
//Puts the item into your r_hand if possible and calls all necessary triggers/updates. returns 1 on success.
|
||||
/mob/proc/put_in_r_hand(var/obj/item/W)
|
||||
if(!istype(W))
|
||||
return 0
|
||||
return 1
|
||||
return FALSE
|
||||
if(QDELETED(W))
|
||||
if(!(W.item_flags & DROPDEL))
|
||||
log_runtime("[src] tried to pick up a qdeleted object [W]")
|
||||
return FALSE
|
||||
return TRUE
|
||||
|
||||
//Puts the item into our active hand if possible. returns 1 on success.
|
||||
/mob/proc/put_in_active_hand(var/obj/item/W)
|
||||
|
||||
Reference in New Issue
Block a user