home · contact · privacy
Server, plugin: Refactor actor_use plugin hooking.
[plomrogue] / server / actions.py
index 7f1f657452ea00a30a044c783b868f34593ac24a..ee68866b000dfb238b7c5debd0976d95ad42c85f 100644 (file)
@@ -101,5 +101,6 @@ def actor_use(t):
             t["T_SATIATION"] += world_db["ThingTypes"][type]["TT_TOOLPOWER"]
             if t == world_db["Things"][0]:
                 log("You CONSUME this thing.")
-        elif t == world_db["Things"][0]:
-            log("You try to use this object, but FAIL.")
+        else:
+            from server.config.actions import actor_use_attempts_hook
+            actor_use_attempts_hook(t, type)