mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-05 23:12:26 +00:00
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.
This commit is contained in:
@@ -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"))
|
||||
|
||||
@@ -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..",
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user