mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
Regular cable coil can now be used for mending cyborg limbs.
This commit is contained in:
@@ -454,6 +454,28 @@
|
||||
|
||||
return
|
||||
|
||||
/obj/item/weapon/cable_coil/attack(mob/M as mob, mob/user as mob)
|
||||
if(hasorgans(M))
|
||||
var/datum/organ/external/S = M:organs[user.zone_sel.selecting]
|
||||
if(!(S.status & ROBOT) || user.a_intent != "help")
|
||||
return ..()
|
||||
if(S.burn_dam > 0)
|
||||
S.heal_damage(0,15,0,1)
|
||||
if(user != M)
|
||||
user.visible_message("\red You repair some burn damage on \the [M]'s [S.display_name]",\
|
||||
"\red \The [user] repairs some burn damage on \the [M]'s [S.display_name] with \the [src]",\
|
||||
"You wires being cut.")
|
||||
else
|
||||
user.visible_message("\red You repair some burn damage on your [S.display_name]",\
|
||||
"\red \The [user] repairs some burn damage on their [S.display_name] with \the [src]",\
|
||||
"You wires being cut.")
|
||||
else
|
||||
user << "Nothing to fix!"
|
||||
else
|
||||
return ..()
|
||||
|
||||
|
||||
|
||||
/obj/structure/cable/proc/mergeConnectedNetworks(var/direction)
|
||||
var/turf/TB
|
||||
if((d1 == direction || d2 == direction) != 1)
|
||||
|
||||
Reference in New Issue
Block a user