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