X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=plugins%2Fserver%2FTheCrawlingEater.py;h=ab88cadd54766d0e994fcb7be0f4f79d324635e7;hb=2bf9dbbeca48cfde11566275d10ca91912257a0b;hp=52807b83019ae76ccf136a09510418c9c2c2aa40;hpb=9b9e6dbd332e4b72abdd4d03e3d151a10b0e56fa;p=plomrogue diff --git a/plugins/server/TheCrawlingEater.py b/plugins/server/TheCrawlingEater.py index 52807b8..ab88cad 100644 --- a/plugins/server/TheCrawlingEater.py +++ b/plugins/server/TheCrawlingEater.py @@ -126,14 +126,10 @@ def actor_eat(t): height = world_db["MAP"][pos] - ord("0") if t["T_STOMACH"] >= 32 or height == 5: return - eaten = False - if height == 3 and 0 == int(rand.next() % 2): - t["T_STOMACH"] += height - eaten = True - elif height == 4 and 0 == int(rand.next() % 5): - t["T_STOMACH"] += height - eaten = True + t["T_STOMACH"] += 1 log("You EAT.") + eaten = (height == 3 and 0 == int(rand.next() % 2)) or \ + (height == 4 and 0 == int(rand.next() % 5)) if eaten: world_db["MAP"][pos] = ord("0") if t["T_STOMACH"] > 32: