Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
BeagleGaming1 committed Aug 6, 2023
1 parent 3efcda3 commit ffdfd53
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions code/modules/reagents/chemistry_properties/prop_positive.dm
Original file line number Diff line number Diff line change
Expand Up @@ -517,13 +517,20 @@
if(!ishuman(current_mob))
return
var/mob/living/carbon/human/current_human = current_mob
var/stabilized_effectiveness = Clamp(POTENCY_MULTIPLIER_VHIGH * level, 0, 100)
/// How much damage the organ can take before stabilizing becomes less efficient or stops working
var/stabilized_damage = Clamp(POTENCY_MULTIPLIER_EXTREME * potency, 0, 100)
/// The chance of the organ still doing its damage effect
var/stabilized_effectiveness = Clamp(POTENCY_MULTIPLIER_EXTREME * level, 0, 100)
for(var/datum/internal_organ/organ in current_human.internal_organs)
if(organ.damage <= stabilized_effectiveness)
if(organ.damage < stabilized_damage / 2) // Full efficiency when less than half of max
organ.stabilized = TRUE
organ.stabilized_effectiveness = 100
else if(organ.damage <= stabilized_damage)
organ.stabilized = TRUE
organ.stabilized_effectiveness = stabilized_effectiveness
else
organ.stabilized = FALSE
organ.stabilized_effectiveness = stabilized_effectiveness
organ.stabilized_effectiveness = 0

/datum/chem_property/positive/organstabilize/process_overdose(mob/living/current_mob, potency = 1, delta_time)
current_mob.apply_damage(POTENCY_MULTIPLIER_LOW * potency * delta_time, BRUTE)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/reagents/chemistry_reagents/stims.dm
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@
PROPERTY_BONEMENDING = 100,
PROPERTY_ORGAN_HEALING = 100,
PROPERTY_HYPERDENSIFICATING = 1,
PROPERTY_ORGANSTABILIZE = 20,
PROPERTY_ORGANSTABILIZE = 10,
)

0 comments on commit ffdfd53

Please sign in to comment.