mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
You can now deconstruct cyborgs
This is a less destructive way to extract the MMI from a cyborg. Also, you can no longer use broken flashes for eyes.
This commit is contained in:
@@ -251,18 +251,20 @@
|
||||
/obj/item/robot_parts/head/attackby(obj/item/W as obj, mob/user as mob)
|
||||
..()
|
||||
if(istype(W, /obj/item/device/flash))
|
||||
var/obj/item/device/flash/F = W
|
||||
if(src.flash1 && src.flash2)
|
||||
user << "\blue You have already inserted the eyes!"
|
||||
return
|
||||
else if(src.flash1)
|
||||
user.drop_item()
|
||||
W.loc = src
|
||||
src.flash2 = W
|
||||
user << "\blue You insert the flash into the eye socket!"
|
||||
else if(F.broken)
|
||||
user << "\blue You can't use a broken flash!"
|
||||
return
|
||||
else
|
||||
user.drop_item()
|
||||
W.loc = src
|
||||
src.flash1 = W
|
||||
F.loc = src
|
||||
if(src.flash1)
|
||||
src.flash2 = F
|
||||
else
|
||||
src.flash1 = F
|
||||
user << "\blue You insert the flash into the eye socket!"
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user