+def actor_use(t):
+ if len(t["T_CARRIES"]):
+ id = t["T_CARRIES"][t["T_ARGUMENT"]]
+ type = world_db["Things"][id]["T_TYPE"]
+ if type == world_db["SLIPPERS"]:
+ if t == world_db["Things"][0]:
+ log("You use the " + world_db["ThingTypes"][type]["TT_NAME"]
+ + ". It glows in wondrous colors, and emits a sound as if "
+ + "from a dying cat. The Island God laughs.\n")
+ t["T_LIFEPOINTS"] = 1
+ decrement_lifepoints(t)
+ elif world_db["ThingTypes"][type]["TT_TOOL"] == "food":
+ t["T_CARRIES"].remove(id)
+ del world_db["Things"][id]
+ t["T_SATIATION"] += world_db["ThingTypes"][type]["TT_TOOLPOWER"]
+ if t == world_db["Things"][0]:
+ log("You CONSUME this object.")
+ elif t == world_db["Things"][0]:
+ log("You try to use this object, but FAIL.")
+