From 111c8b9dbb71b1ef8af2e761eb390df830507414 Mon Sep 17 00:00:00 2001 From: cib Date: Thu, 24 May 2012 21:01:20 +0200 Subject: [PATCH] Hunger system tweaks. - Reverted hunger rate from 0.05 to 0.1 - Lessened the slowdown effect of being hungry to 1/4 - You will now receive hunger messages a bit earlier. --- code/modules/mob/living/carbon/human/human.dm | 2 +- code/modules/mob/living/carbon/human/life.dm | 8 ++++++-- code/setup.dm | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index 2f23dfd7ec2..0755df2b51b 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -283,7 +283,7 @@ if(health_deficiency >= 40) tally += (health_deficiency / 25) var/hungry = (500 - nutrition)/5 // So overeat would be 100 and default level would be 80 - if (hungry >= 70) tally += hungry/50 + if (hungry >= 70) tally += hungry/300 for(var/organ in list("l_leg","l_foot","r_leg","r_foot")) diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index b553650fefc..2544cfdaf2c 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -805,7 +805,11 @@ // nutrition decrease if (nutrition > 0 && stat != 2) - nutrition = max (0, nutrition - HUNGER_FACTOR) + // sleeping slows the metabolism, hunger increases more slowly + if(stat == 1) + nutrition = max (0, nutrition - HUNGER_FACTOR) + else + nutrition = max (0, nutrition - HUNGER_FACTOR / 4) if (nutrition > 450) if(overeatduration < 600) //capped so people don't take forever to unfat @@ -1439,7 +1443,7 @@ if(!M.nodamage) M.adjustBruteLoss(5) nutrition += 10 - if(nutrition <= 100) + if(nutrition <= 150) if (prob(1)) var/list/funny_comments = list( "You feel hungry..", diff --git a/code/setup.dm b/code/setup.dm index bd8d8940a97..05e8e837728 100644 --- a/code/setup.dm +++ b/code/setup.dm @@ -32,7 +32,7 @@ #define DOOR_CRUSH_DAMAGE 10 // Factor of how fast mob nutrition decreases -#define HUNGER_FACTOR 0.05 +#define HUNGER_FACTOR 0.1 #define REAGENTS_METABOLISM 0.05 #define REAGENTS_OVERDOSE 30