From a20d50bc371d1d2ccdeb6845cebf238ac0ab0ffd Mon Sep 17 00:00:00 2001 From: Christian Heller <c.heller@plomlompom.de> Date: Tue, 8 Sep 2015 14:00:11 +0200 Subject: [PATCH] get_nventory_slot_to_consume(t): Eat anything if deep in the red. --- roguelike-server | 1 + 1 file changed, 1 insertion(+) diff --git a/roguelike-server b/roguelike-server index ac4f6e8..c6e096e 100755 --- a/roguelike-server +++ b/roguelike-server @@ -997,6 +997,7 @@ def get_inventory_slot_to_consume(t): nutvalue = world_db["ThingTypes"][type]["TT_TOOLPOWER"] tmp_cmp = abs(t["T_SATIATION"] + nutvalue - consume_hungering) if (cmp_food < 0 and tmp_cmp < abs(t["T_SATIATION"])) \ + or (cmp_food < 0 and 0 > t["T_SATIATION"] + nutvalue) \ or tmp_cmp < cmp_food: cmp_food = tmp_cmp selection = i -- 2.30.2