Buffs arm implants (#19773)

* fuck it signal time

* heres a great example of simplifcation!

* fuck it sometimes you have to ball, fuck stoplag

* fuck yeah baby, mob signals instead

* bam good code

* add support for drop button

* lets not drop nulls

* sirryan review
This commit is contained in:
Contrabang
2022-12-29 17:49:31 +00:00
committed by GitHub
parent 8ef4aa727e
commit b013639cf5
6 changed files with 29 additions and 11 deletions
+2 -1
View File
@@ -25,8 +25,9 @@
/datum/keybinding/mob/drop_held_object/down(client/C)
. = ..()
var/obj/item/I = C.mob.get_active_hand()
SEND_SIGNAL(C.mob, COMSIG_MOB_WILLINGLY_DROP)
if(I)
C.mob.drop_item(I)
C.mob.drop_item()
else
to_chat(C, "<span class='warning'>You have nothing to drop in your hand!</span>")