X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=plomrogue-server.py;h=2d53bb56fdea150011f046a68c1d798a88e4831a;hb=b3b4cee8b7088a4a2c575ffb4f08c12dd408846d;hp=cc7ddf761158aa61365ba36f2dda000c0fc45a4c;hpb=1a9bd858d96cede6890cc5e37f62098ec61b1b2b;p=plomrogue diff --git a/plomrogue-server.py b/plomrogue-server.py index cc7ddf7..2d53bb5 100755 --- a/plomrogue-server.py +++ b/plomrogue-server.py @@ -668,15 +668,15 @@ def actor_use(t): t["T_CARRIES"].remove(id) del world_db["Things"][id] t["T_SATIATION"] += world_db["ThingTypes"][type]["TT_CONSUMABLE"] - t["T_LIFEPOINTS"] += 1 - # Wrongly increment HPs is a replica of the original code. - strong_write(io_db["file_out"], "LOG You consume this object.\n") - else: - strong_write(io_db["file_out"], "LOG You try to use this object," + - "but fail.\n") - else: - strong_write(io_db["file_out"], "LOG You try to use an object, but " + - "you own none.\n") + if t == world_db["Things"][0]: + strong_write(io_db["file_out"], + "LOG You consume this object.\n") + elif t == world_db["Things"][0]: + strong_write(io_db["file_out"], + "LOG You try to use this object, but fail.\n") + elif t == world_db["Things"][0]: + strong_write(io_db["file_out"], + "LOG You try to use an object, but you own none.\n") def thingproliferation(t):