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 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 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 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"