mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 21:19:00 +01:00
Training Wheels Come Off (#12587)
This commit is contained in:
committed by
variableundefined
parent
a5d3b48947
commit
45bb5241f0
@@ -165,15 +165,8 @@
|
||||
desc = "Wall-mounted Medical Equipment dispenser. This one seems just a tiny bit smaller."
|
||||
req_access = list()
|
||||
|
||||
products = list(/obj/item/reagent_containers/food/pill/patch/styptic = 5,
|
||||
/obj/item/reagent_containers/food/pill/patch/silver_sulf = 5,
|
||||
/obj/item/reagent_containers/food/pill/charcoal = 2,
|
||||
/obj/item/stack/medical/bruise_pack/advanced = 1,
|
||||
/obj/item/stack/medical/ointment/advanced = 1,
|
||||
/obj/item/reagent_containers/hypospray/autoinjector = 2,
|
||||
/obj/item/stack/medical/splint = 1)
|
||||
contraband = list(/obj/item/reagent_containers/food/pill/tox = 2,
|
||||
/obj/item/reagent_containers/food/pill/morphine = 2)
|
||||
products = list(/obj/item/stack/medical/splint = 2)
|
||||
contraband = list()
|
||||
|
||||
//Computer
|
||||
/obj/item/gps/computer
|
||||
|
||||
@@ -48,12 +48,7 @@
|
||||
var/list/our_organs = H.bodyparts.Copy()
|
||||
shuffle(our_organs)
|
||||
for(var/obj/item/organ/external/L in our_organs)
|
||||
if(istype(L))
|
||||
if(L.brute_dam < L.min_broken_damage)
|
||||
L.status &= ~ORGAN_BROKEN
|
||||
L.status &= ~ORGAN_SPLINTED
|
||||
H.handle_splints()
|
||||
L.perma_injury = 0
|
||||
if(L.mend_fracture())
|
||||
break // We're only checking one limb here, bucko
|
||||
if(prob(3))
|
||||
H.say(pick("Thanks Mr. Skeltal", "Thank for strong bones", "Doot doot!"))
|
||||
|
||||
@@ -474,6 +474,16 @@
|
||||
human_mob.update_dna()
|
||||
return
|
||||
|
||||
/mob/living/proc/remove_CC(should_update_canmove = TRUE)
|
||||
SetWeakened(0, FALSE)
|
||||
SetStunned(0, FALSE)
|
||||
SetParalysis(0, FALSE)
|
||||
SetSleeping(0, FALSE)
|
||||
setStaminaLoss(0)
|
||||
SetSlowed(0)
|
||||
if(should_update_canmove)
|
||||
update_canmove()
|
||||
|
||||
/mob/living/proc/UpdateDamageIcon()
|
||||
return
|
||||
|
||||
|
||||
@@ -109,9 +109,7 @@
|
||||
var/var/mob/living/carbon/human/H = target
|
||||
for(var/obj/item/organ/external/E in H.bodyparts)
|
||||
if(prob(10))
|
||||
if(E.mend_fracture())
|
||||
E.perma_injury = 0
|
||||
return
|
||||
E.mend_fracture()
|
||||
|
||||
/obj/item/gun/medbeam/proc/on_beam_release(var/mob/living/target)
|
||||
return
|
||||
|
||||
@@ -22,8 +22,7 @@
|
||||
var/obj/item/organ/internal/I = thing
|
||||
I.receive_damage(-5, FALSE)
|
||||
for(var/obj/item/organ/external/E in H.bodyparts)
|
||||
if(E.mend_fracture())
|
||||
E.perma_injury = 0
|
||||
E.mend_fracture()
|
||||
M.SetEyeBlind(0, FALSE)
|
||||
M.CureNearsighted(FALSE)
|
||||
M.CureBlind(FALSE)
|
||||
|
||||
@@ -165,11 +165,8 @@
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
user.visible_message("<span class='notice'> [user] has mended the damaged bones in [target]'s [affected.name] with \the [tool].</span>" , \
|
||||
"<span class='notice'> You have mended the damaged bones in [target]'s [affected.name] with \the [tool].</span>" )
|
||||
affected.status &= ~ORGAN_BROKEN
|
||||
affected.status &= ~ORGAN_SPLINTED
|
||||
affected.perma_injury = 0
|
||||
target.handle_splints()
|
||||
return 1
|
||||
affected.mend_fracture()
|
||||
return TRUE
|
||||
|
||||
/datum/surgery_step/finish_bone/fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool)
|
||||
var/obj/item/organ/external/affected = target.get_organ(target_zone)
|
||||
|
||||
@@ -625,12 +625,17 @@ Note that amputating the affected organ does in fact remove the infection from t
|
||||
|
||||
/obj/item/organ/external/proc/mend_fracture()
|
||||
if(is_robotic())
|
||||
return 0 //ORGAN_BROKEN doesn't have the same meaning for robot limbs
|
||||
if(brute_dam > min_broken_damage)
|
||||
return 0 //will just immediately fracture again
|
||||
return FALSE //ORGAN_BROKEN doesn't have the same meaning for robot limbs
|
||||
|
||||
if(!(status & ORGAN_BROKEN))
|
||||
return FALSE
|
||||
|
||||
status &= ~ORGAN_BROKEN
|
||||
return 1
|
||||
status &= ~ORGAN_SPLINTED
|
||||
perma_injury = 0
|
||||
if(owner)
|
||||
owner.handle_splints()
|
||||
return TRUE
|
||||
|
||||
/obj/item/organ/external/robotize(company, make_tough = 0, convert_all = 1)
|
||||
..()
|
||||
|
||||
Reference in New Issue
Block a user