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:
ParadoxSpace
2020-01-01 15:33:32 +01:00
committed by Matt Atlas
parent f5fdc8b6ac
commit c66f1018da
3 changed files with 46 additions and 4 deletions
+1 -1
View File
@@ -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)
+3 -3
View File
@@ -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
@@ -0,0 +1,42 @@
################################
# Example Changelog File
#
# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb.
#
# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.)
# When it is, any changes listed below will disappear.
#
# Valid Prefixes:
# bugfix
# wip (For works in progress)
# tweak
# soundadd
# sounddel
# rscadd (general adding of nice things)
# rscdel (general deleting of nice things)
# imageadd
# imagedel
# maptweak
# spellcheck (typo fixes)
# experiment
# balance
# admin
# backend
# security
# refactor
#################################
# Your name.
author: ParadoxSpace
# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again.
delete-after: True
# Any changes you've made. See valid prefix list above.
# INDENT WITH TWO SPACES. NOT TABS. SPACES.
# SCREW THIS UP AND IT WON'T WORK.
# Also, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries.
# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog.
changes:
- rscadd: "Robotic limbs now become nonfunctional at about the same health as human limbs."
- rscadd: "Fixing them now takes more cable/fuel."