From 8174488f34c9ab8ed47e537c56996f519930f929 Mon Sep 17 00:00:00 2001
From: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
Date: Sun, 30 Aug 2020 16:49:02 +1000
Subject: [PATCH 1/2] Makes borg cell replacement take priority over petting
---
.../modules/mob/living/silicon/robot/robot.dm | 40 ++++++++++---------
1 file changed, 22 insertions(+), 18 deletions(-)
diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm
index 5ba5b7deb8..a07c8bcc12 100644
--- a/code/modules/mob/living/silicon/robot/robot.dm
+++ b/code/modules/mob/living/silicon/robot/robot.dm
@@ -686,13 +686,34 @@
add_fingerprint(user)
- if(istype(user,/mob/living/carbon/human))
+ if(opened && !wiresexposed && (!istype(user, /mob/living/silicon)))
+ var/datum/robot_component/cell_component = components["power cell"]
+ if(cell)
+ cell.update_icon()
+ cell.add_fingerprint(user)
+ user.put_in_active_hand(cell)
+ to_chat(user, "You remove \the [cell].")
+ cell = null
+ cell_component.wrapped = null
+ cell_component.installed = 0
+ updateicon()
+ else if(cell_component.installed == -1)
+ cell_component.installed = 0
+ var/obj/item/broken_device = cell_component.wrapped
+ to_chat(user, "You remove \the [broken_device].")
+ user.put_in_active_hand(broken_device)
+
+ if(istype(user,/mob/living/carbon/human) && !opened)
var/mob/living/carbon/human/H = user
+<<<<<<< HEAD
//VOREStation Removal
//if(H.species.can_shred(H))
// attack_generic(H, rand(30,50), "slashed")
// return
//Adding borg petting. Help intent pets, Disarm intent taps, Grab should remove the battery for replacement, and Harm is punching(no damage)
+=======
+ //Adding borg petting. Help intent pets, Disarm intent taps and Harm is punching(no damage)
+>>>>>>> 4cd8585... Makes borg cell replacement take priority over petting (#7579)
switch(H.a_intent)
if(I_HELP)
visible_message("[H] pets [src].")
@@ -712,23 +733,6 @@
visible_message("[H] taps [src].")
return
- if(opened && !wiresexposed && (!istype(user, /mob/living/silicon)))
- var/datum/robot_component/cell_component = components["power cell"]
- if(cell)
- cell.update_icon()
- cell.add_fingerprint(user)
- user.put_in_active_hand(cell)
- to_chat(user, "You remove \the [cell].")
- cell = null
- cell_component.wrapped = null
- cell_component.installed = 0
- updateicon()
- else if(cell_component.installed == -1)
- cell_component.installed = 0
- var/obj/item/broken_device = cell_component.wrapped
- to_chat(user, "You remove \the [broken_device].")
- user.put_in_active_hand(broken_device)
-
//Robots take half damage from basic attacks.
/mob/living/silicon/robot/attack_generic(var/mob/user, var/damage, var/attack_message)
return ..(user,FLOOR(damage/2, 1),attack_message)
From ac15f36943b539aa3c17f3d61918167f7b25e617 Mon Sep 17 00:00:00 2001
From: Novacat <35587478+Novacat@users.noreply.github.com>
Date: Sun, 30 Aug 2020 14:59:10 -0400
Subject: [PATCH 2/2] Update robot.dm
---
code/modules/mob/living/silicon/robot/robot.dm | 8 --------
1 file changed, 8 deletions(-)
diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm
index a07c8bcc12..ad1e767aca 100644
--- a/code/modules/mob/living/silicon/robot/robot.dm
+++ b/code/modules/mob/living/silicon/robot/robot.dm
@@ -705,15 +705,7 @@
if(istype(user,/mob/living/carbon/human) && !opened)
var/mob/living/carbon/human/H = user
-<<<<<<< HEAD
- //VOREStation Removal
- //if(H.species.can_shred(H))
- // attack_generic(H, rand(30,50), "slashed")
- // return
- //Adding borg petting. Help intent pets, Disarm intent taps, Grab should remove the battery for replacement, and Harm is punching(no damage)
-=======
//Adding borg petting. Help intent pets, Disarm intent taps and Harm is punching(no damage)
->>>>>>> 4cd8585... Makes borg cell replacement take priority over petting (#7579)
switch(H.a_intent)
if(I_HELP)
visible_message("[H] pets [src].")