mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-21 20:11:04 +01:00
Robolimb Durability Buff (#7827)
Instead of breaking at ten damage, robolimbs now break at around the same time as human limbs. However, more fuel and cable is required to fix them.
This commit is contained in:
@@ -1094,7 +1094,7 @@ Note that amputating the affected organ does in fact remove the infection from t
|
||||
return ..() && !is_dislocated() && !(status & ORGAN_TENDON_CUT) && (!can_feel_pain() || get_pain() < pain_disability_threshold) && brute_ratio < 1 && burn_ratio < 1
|
||||
|
||||
/obj/item/organ/external/proc/is_malfunctioning()
|
||||
return ((status & ORGAN_ROBOT) && (brute_dam + burn_dam) >= 10 && prob(brute_dam + burn_dam))
|
||||
return (BP_IS_ROBOTIC(src) && (brute_ratio + burn_ratio) >= 0.3 && prob(brute_dam + burn_dam))
|
||||
|
||||
/obj/item/organ/external/proc/embed(var/obj/item/W, var/silent = 0, var/supplied_message)
|
||||
if(!owner || loc != owner)
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
if(tool.iswelder())
|
||||
var/obj/item/weldingtool/welder = tool
|
||||
if(!welder.isOn() || !welder.remove_fuel(1,user))
|
||||
if(!welder.isOn() || !welder.remove_fuel(2,user))
|
||||
return 0
|
||||
return affected && affected.open == 3 && affected.brute_dam > 0 && target_zone != BP_MOUTH
|
||||
|
||||
@@ -170,8 +170,8 @@
|
||||
var/limb_can_operate = (affected && affected.open == 3 && affected.burn_dam > 0 && target_zone != BP_MOUTH)
|
||||
if(limb_can_operate)
|
||||
if(istype(C))
|
||||
if(!C.get_amount() >= 3)
|
||||
to_chat(user, "<span class='danger'>You need three or more cable pieces to repair this damage.</span>")
|
||||
if(!C.get_amount() >= 6)
|
||||
to_chat(user, "<span class='danger'>You need six or more cable pieces to repair this damage.</span>")
|
||||
return SURGERY_FAILURE
|
||||
C.use(3)
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user