From a574e69ed2a3c5b04843074d19c56f8ca94ae5f7 Mon Sep 17 00:00:00 2001 From: Cameron653 Date: Wed, 17 Aug 2016 17:51:58 -0400 Subject: [PATCH 1/4] Create life_vr.dm --- code/modules/mob/living/carbon/human/life_vr.dm | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 code/modules/mob/living/carbon/human/life_vr.dm diff --git a/code/modules/mob/living/carbon/human/life_vr.dm b/code/modules/mob/living/carbon/human/life_vr.dm new file mode 100644 index 00000000000..eae5ed72100 --- /dev/null +++ b/code/modules/mob/living/carbon/human/life_vr.dm @@ -0,0 +1,7 @@ +/mob/living/carbon/human/proc/weightgain() + if (nutrition > 0 && stat != 2) + if (nutrition > 450 && weight < 500 && weight_gain) + weight += metabolism*(0.01*weight_gain) + + else if (nutrition <= 50 && stat != 2 && weight > 70 && weight_loss) + weight -= metabolism*(0.01*weight_loss) // starvation weight loss From 90d2596653412a4f8d4df9548ed16503ce3cb4e6 Mon Sep 17 00:00:00 2001 From: Cameron653 Date: Wed, 17 Aug 2016 17:52:19 -0400 Subject: [PATCH 2/4] Update life.dm --- code/modules/mob/living/carbon/human/life.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index 0b0af310c5c..f6d1b6f74f5 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -70,7 +70,7 @@ //Organs and blood handle_organs() stabilize_body_temperature() //Body temperature adjusts itself (self-regulation) - + weightgain() //VORESTATION EDIT handle_shock() handle_pain() @@ -1658,4 +1658,4 @@ ..() #undef HUMAN_MAX_OXYLOSS -#undef HUMAN_CRIT_MAX_OXYLOSS \ No newline at end of file +#undef HUMAN_CRIT_MAX_OXYLOSS From 2bb1729c0867900cf59d3ad59eb753147bb04238 Mon Sep 17 00:00:00 2001 From: Cameron653 Date: Wed, 17 Aug 2016 17:53:01 -0400 Subject: [PATCH 3/4] Update living_vr.dm --- code/modules/vore/eating/living_vr.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/vore/eating/living_vr.dm b/code/modules/vore/eating/living_vr.dm index f322bba4b00..0e159f0e822 100644 --- a/code/modules/vore/eating/living_vr.dm +++ b/code/modules/vore/eating/living_vr.dm @@ -9,6 +9,7 @@ var/weight_loss = 0.5 // How fast you lose weight var/egg_type = "egg" // Default egg type. var/feral = 0 // If the mob is feral or not. Does nothing for non xenochimera at the moment. + var/metabolism = 0.0015 // // Hook for generic creation of stuff on new creatures @@ -374,4 +375,4 @@ "oxygen" = 21, "nitrogen" = 79) temperature = 293.150 - total_moles = 40 \ No newline at end of file + total_moles = 40 From e0eb9f248a00268797df0124b343f92a17440228 Mon Sep 17 00:00:00 2001 From: Cameron653 Date: Wed, 17 Aug 2016 17:53:36 -0400 Subject: [PATCH 4/4] Update vorestation.dme --- vorestation.dme | 1 + 1 file changed, 1 insertion(+) diff --git a/vorestation.dme b/vorestation.dme index f8b335abb9a..c2ba1cbb4c6 100644 --- a/vorestation.dme +++ b/vorestation.dme @@ -1567,6 +1567,7 @@ #include "code\modules\mob\living\carbon\human\human_species_vr.dm" #include "code\modules\mob\living\carbon\human\inventory.dm" #include "code\modules\mob\living\carbon\human\life.dm" +#include "code\modules\mob\living\carbon\human\life_vr.dm" #include "code\modules\mob\living\carbon\human\login.dm" #include "code\modules\mob\living\carbon\human\logout.dm" #include "code\modules\mob\living\carbon\human\MedicalSideEffects.dm"