From 079fd425e54fcff84e4d585d1f6f2ee5ddb3c41f Mon Sep 17 00:00:00 2001 From: Ghommie <42542238+Ghommie@users.noreply.github.com> Date: Fri, 6 Mar 2020 19:05:45 +0100 Subject: [PATCH] Makes the monkeys' gorillize chances from radiation exponential. --- code/__DEFINES/radiation.dm | 4 ++++ code/modules/mob/living/carbon/monkey/life.dm | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/code/__DEFINES/radiation.dm b/code/__DEFINES/radiation.dm index 3e9731417a..596a6a0378 100644 --- a/code/__DEFINES/radiation.dm +++ b/code/__DEFINES/radiation.dm @@ -23,6 +23,10 @@ Ask ninjanomnom if they're around #define RAD_MOB_MUTATE 1250 // How much stored radiation to check for mutation +#define RAD_MONKEY_GORILLIZE 1650 // How much stored radiation to check for Harambe time. +#define RAD_MOB_GORILLIZE_FACTOR 100 +#define RAD_MONKEY_GORILLIZE_EXPONENT 0.5 + #define RAD_MOB_VOMIT 2000 // The amount of radiation to check for vomitting #define RAD_MOB_VOMIT_PROB 1 // Chance per tick of vomitting diff --git a/code/modules/mob/living/carbon/monkey/life.dm b/code/modules/mob/living/carbon/monkey/life.dm index 31589f1cab..ef2f4b80c7 100644 --- a/code/modules/mob/living/carbon/monkey/life.dm +++ b/code/modules/mob/living/carbon/monkey/life.dm @@ -30,9 +30,10 @@ /mob/living/carbon/monkey/handle_mutations_and_radiation() if(radiation) - if(radiation > RAD_MOB_MUTATE && prob((radiation - RAD_MOB_MUTATE) / 25)) - gorillize() - return + if(radiation > RAD_MONKEY_GORILLIZE) + if(prob((((radiation - RAD_MONKEY_GORILLIZE + RAD_MOB_GORILLIZE_FACTOR)/RAD_MOB_GORILLIZE_FACTOR)^RAD_MONKEY_GORILLIZE_EXPONENT) - 1)) + gorillize() + return if(radiation > RAD_MOB_KNOCKDOWN && prob(RAD_MOB_KNOCKDOWN_PROB)) if(!recoveringstam) emote("collapse")