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
+4 -3
View File
@@ -103,6 +103,7 @@
/mob/proc/drop_item_v() //this is dumb.
if(stat == CONSCIOUS && isturf(loc))
SEND_SIGNAL(usr, COMSIG_MOB_WILLINGLY_DROP)
return drop_item()
return 0
@@ -125,10 +126,10 @@
/mob/proc/canUnEquip(obj/item/I, force)
if(!I)
return 1
return TRUE
if((I.flags & NODROP) && !force)
return 0
return 1
return FALSE
return TRUE
/mob/proc/unEquip(obj/item/I, force, silent = FALSE) //Force overrides NODROP for things like wizarditis and admin undress.
if(!I) //If there's nothing to drop, the drop is automatically succesfull. If(unEquip) should generally be used to check for NODROP.
+1
View File
@@ -44,6 +44,7 @@
var/memory = ""
var/next_move = null
var/notransform = FALSE //Carbon
/// True for left hand active, otherwise for right hand active
var/hand = null
var/real_name = null
var/flavor_text = ""