mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
Lazarus Reagent Change, Decay Rate change, and Formaldehyde Buff (#25324)
* Changes necrosis_prob to use decaylevel. * Reverts previous change to create a new branch. * Changes Lazarus Reagent to use decaylevel. * Changes decay rates while leaving the point at which they're skeletonized the same. This is to give only a 3 minute timer for lazarus instead of a 5 minute timer without any consequence. * Changes the later halves of decay rate. * Apply suggestions from code review Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Signed-off-by: Spaghetti-bit <60483458+Spaghetti-bit@users.noreply.github.com> * Update code/modules/mob/living/carbon/human/human_life.dm Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Signed-off-by: Spaghetti-bit <60483458+Spaghetti-bit@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Signed-off-by: Spaghetti-bit <60483458+Spaghetti-bit@users.noreply.github.com> --------- Signed-off-by: Spaghetti-bit <60483458+Spaghetti-bit@users.noreply.github.com> Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com> Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
co-authored by
Burzah
DGamerL
S34N
parent
3b351c8636
commit
cd4fc1dd25
@@ -923,12 +923,12 @@
|
||||
M.adjustFireLoss(rand(0, 15))
|
||||
if(ishuman(M))
|
||||
var/mob/living/carbon/human/H = M
|
||||
var/necrosis_prob = 15 * H.decaylevel
|
||||
H.decaylevel = 0
|
||||
var/necrosis_prob = 40 * min((20 MINUTES), max((time_dead - (1 MINUTES)), 0)) / ((20 MINUTES) - (1 MINUTES))
|
||||
for(var/obj/item/organ/O in (H.bodyparts | H.internal_organs))
|
||||
// Per non-vital body part:
|
||||
// 0% chance of necrosis within 1 minute of death
|
||||
// 40% chance of necrosis after 20 minutes of death
|
||||
// 15% * H.decaylevel (1 to 4)
|
||||
// Min of 0%, Max of 60%
|
||||
if(prob(necrosis_prob) && !O.is_robotic() && !O.vital)
|
||||
// side effects may include: Organ failure
|
||||
O.necrotize(FALSE)
|
||||
|
||||
Reference in New Issue
Block a user