Makes husking harder, adds husk healing to instabitaluri (#48717)

* Makes husking harder, adds husk healing to isntabitaluri

* Adds amount limit to instab unhusking, removes roundstart.

* treshold define, upped instab limit, nice feedback
This commit is contained in:
skoglol
2020-01-19 18:32:38 -05:00
committed by moo
parent e81a3754fc
commit 03f4a81f16
9 changed files with 8 additions and 7 deletions
@@ -49775,7 +49775,6 @@
/area/space/nearstation)
"gZG" = (
/obj/structure/closet/crate/freezer/surplus_limbs,
/obj/item/reagent_containers/glass/beaker/instabitaluri,
/turf/open/floor/plasteel/white/side{
dir = 8
},
@@ -13245,7 +13245,6 @@
/area/medical/surgery)
"aKl" = (
/obj/structure/closet/crate/freezer/surplus_limbs,
/obj/item/reagent_containers/glass/beaker/instabitaluri,
/turf/open/floor/plasteel/white/side{
dir = 8
},
@@ -45643,7 +45643,6 @@
dir = 4
},
/obj/structure/closet/crate/freezer/surplus_limbs,
/obj/item/reagent_containers/glass/beaker/instabitaluri,
/turf/open/floor/plasteel/white,
/area/medical/storage)
"bYY" = (
@@ -34200,7 +34200,6 @@
/area/medical/medbay/central)
"bHb" = (
/obj/structure/closet/crate/freezer/surplus_limbs,
/obj/item/reagent_containers/glass/beaker/instabitaluri,
/obj/machinery/newscaster/security_unit{
pixel_y = 32
},
-1
View File
@@ -87,7 +87,6 @@
"am" = (
/obj/effect/decal/cleanable/dirt/dust,
/obj/structure/closet/crate/freezer/surplus_limbs,
/obj/item/reagent_containers/glass/beaker/instabitaluri,
/obj/effect/turf_decal/bot,
/turf/open/floor/plasteel,
/area/shuttle/abandoned/medbay)
+2
View File
@@ -31,6 +31,8 @@
#define REACT_REAGENTS 5 // a reaction occured
#define MIMEDRINK_SILENCE_DURATION 30 //ends up being 60 seconds given 1 tick every 2 seconds
#define TRESHOLD_UNHUSK 50 //Health treshold for instabitaluri and rezadone to unhusk someone
//used by chem masters and pill presses
#define PILL_STYLE_COUNT 22 //Update this if you add more pill icons or you die
#define RANDOM_PILL_STYLE 22 //Dont change this one though
+1 -1
View File
@@ -517,7 +517,7 @@
staminaloss = round(total_stamina, DAMAGE_PRECISION)
update_stat()
update_mobility()
if(((maxHealth - total_burn) < HEALTH_THRESHOLD_DEAD) && stat == DEAD )
if(((maxHealth - total_burn) < HEALTH_THRESHOLD_DEAD*2) && stat == DEAD )
become_husk("burn")
med_hud_set_health()
@@ -341,6 +341,10 @@
if(show_message)
to_chat(Carbies, "<span class='danger'>You feel your burns and bruises healing! It stings like hell!</span>")
SEND_SIGNAL(Carbies, COMSIG_ADD_MOOD_EVENT, "painful_medicine", /datum/mood_event/painful_medicine)
//Has to be at less than TRESHOLD_UNHUSK burn damage and have 100 isntabitaluri before unhusking. Corpses dont metabolize.
if(HAS_TRAIT_FROM(M, TRAIT_HUSK, "burn") && Carbies.getFireLoss() < TRESHOLD_UNHUSK && Carbies.reagents.has_reagent(/datum/reagent/medicine/C2/instabitaluri, 100))
Carbies.cure_husk("burn")
Carbies.visible_message("<span class='nicegreen'>You successfully replace most of the burnt off flesh of [Carbies].")
..()
return TRUE
@@ -203,7 +203,7 @@
. = ..()
if(iscarbon(M))
var/mob/living/carbon/patient = M
if(reac_volume >= 5 && HAS_TRAIT_FROM(patient, TRAIT_HUSK, "burn") && patient.getFireLoss() < 50) //One carp yields 12u rezadone.
if(reac_volume >= 5 && HAS_TRAIT_FROM(patient, TRAIT_HUSK, "burn") && patient.getFireLoss() < TRESHOLD_UNHUSK) //One carp yields 12u rezadone.
patient.cure_husk("burn")
patient.visible_message("<span class='nicegreen'>[patient]'s body rapidly absorbs moisture from the enviroment, taking on a more healthy appearance.")