Skip to content

Commit

Permalink
calorie debug messages once per second, increased min debug level
Browse files Browse the repository at this point in the history
  • Loading branch information
caligari87 committed Jun 29, 2018
1 parent fbddeeb commit 3dacdfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hdscav_zscript/hunger/tracker.zsc
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ class HDScav_HungerTracker : CustomInventory {
if(calories == 0) { minfatigue += 2; lastcalories += 60; }
else { minfatigue -= 2; }
if(minfatigue < 0) { minfatigue = 0; }
if(hd_debug) { A_Log(string.format("Energy: %i\tMinFatigue: %i", calories, minfatigue)); }
if(hd_debug) { A_Log(string.format("lastmeal: %i\tlastcalories: %i", lastmeal, lastcalories)); }
}

//Per second
Expand All @@ -35,6 +33,8 @@ class HDScav_HungerTracker : CustomInventory {
calories -= (ownr.fatigue - minfatigue);
if(calories < 0) { calories = 0; }
HungerStatus();
if(hd_debug==2) { A_Log(string.format("Energy: %i\tMinFatigue: %i", calories, minfatigue)); }
if(hd_debug==2) { A_Log(string.format("lastmeal: %i\tlastcalories: %i", lastmeal, lastcalories)); }
}

//Per tic
Expand Down

0 comments on commit 3dacdfe

Please sign in to comment.