mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 05:57:24 +01:00
Sending a message should no longer work if you are incapacitated. Fixes issue 1120.
Moved some mob vars to carbon: mob/var/handcuffed -> mob/living/carbon/var/handcuffed mob/var/legcuffed -> mob/living/carbon/var/legcuffed As a result, I've turned some procs into pure virtual procs and moved their code into carbon.dm. mob/proc/restrained() -> mob/living/carbon/restrained() mob/proc/can_use_hands() -> mob/living/carbon/can_use_hands() The hand and legcuff portion of mob/proc/u_equip() was moved into mob/living/carbon/u_equip(). The handcuffed portion of mob/proc/show_inv() was moved into mob/living/carbon/show_inv(). Fixes issue 1114. Made parrots immune to bear traps since parrots should be flying over them anyway. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5184 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -90,13 +90,13 @@
|
||||
icon_state = "cutters-y"
|
||||
item_state = "cutters_yellow"
|
||||
|
||||
/obj/item/weapon/wirecutters/attack(mob/M as mob, mob/user as mob)
|
||||
if((M.handcuffed) && (istype(M:handcuffed, /obj/item/weapon/handcuffs/cable)))
|
||||
usr.visible_message("\The [usr] cuts \the [M]'s restraints with \the [src]!",\
|
||||
"You cut \the [M]'s restraints with \the [src]!",\
|
||||
/obj/item/weapon/wirecutters/attack(mob/living/carbon/C as mob, mob/user as mob)
|
||||
if((C.handcuffed) && (istype(C.handcuffed, /obj/item/weapon/handcuffs/cable)))
|
||||
usr.visible_message("\The [usr] cuts \the [C]'s restraints with \the [src]!",\
|
||||
"You cut \the [C]'s restraints with \the [src]!",\
|
||||
"You hear cable being cut.")
|
||||
M.handcuffed = null
|
||||
M.update_inv_handcuffed()
|
||||
C.handcuffed = null
|
||||
C.update_inv_handcuffed()
|
||||
return
|
||||
else
|
||||
..()
|
||||
|
||||
Reference in New Issue
Block a user