X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=plomrogue-server.py;fp=plomrogue-server.py;h=5223e4bf0438945036378543b88e31926e7ed80d;hb=8a394c0ef05885ed07212822e7d9aa8329790310;hp=b22701f8405c3e0e9959dda6781d96f2cb1722c1;hpb=488f00137b0cb6797cdb88c3b4aa386327993ceb;p=plomrogue diff --git a/plomrogue-server.py b/plomrogue-server.py index b22701f..5223e4b 100755 --- a/plomrogue-server.py +++ b/plomrogue-server.py @@ -820,9 +820,10 @@ def turn_over(): id = 0 whilebreaker = False while world_db["Things"][0]["T_LIFEPOINTS"]: - for id in [id for id in world_db["Things"]]: - if not id in world_db["Things"]: # Thing may have been consumed - continue # during turn … + for id in [id for id in world_db["Things"]]: # Only what is from start! + if not id in world_db["Things"] or \ + world_db["Things"][id]["carried"]:# Thing may have been consumed + continue # or picked up during turn … Thing = world_db["Things"][id] if Thing["T_LIFEPOINTS"]: if not Thing["T_COMMAND"]: