home · contact · privacy
Add client plugin infrastructure.
[plomrogue] / server / ai.py
index 9d5fc8d2282b0a34d06fab26d2c224391935ea40..21241fcd5b900502e6441d6ad3cbbed4ecceebd7 100644 (file)
@@ -1,3 +1,8 @@
+# This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3
+# or any later version. For details on its copyright, license, and warranties,
+# see the file NOTICE in the root directory of the PlomRogue source package.
+
+
 from server.config.world_data import world_db
 
 
@@ -280,7 +285,7 @@ def ai(t):
     elif standing_on_food(t):
             t["T_COMMAND"] = [id for id in world_db["ThingActions"]
                               if world_db["ThingActions"][id]["TA_NAME"]
-                              == "pick_up"][0]
+                              == "pickup"][0]
     else:
         going_to_known_food_spot = get_dir_to_target(t, "c")
         if not going_to_known_food_spot: