home · contact · privacy
Consistent use of "pickup" instead of "pickup" as command name.
authorChristian Heller <c.heller@plomlompom.de>
Fri, 19 Feb 2016 11:25:47 +0000 (12:25 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 19 Feb 2016 11:25:47 +0000 (12:25 +0100)
client/config/commands.py
confserver/world
server/actions.py
server/ai.py
server/commands.py
server/config/actions.py
server/config/commands.py

index b7919475fc811e7a86d73b7fcbaf10a0bc1213b0..e76d1918412c5c1c3c0b9a4072626ae88737b3d8 100644 (file)
@@ -13,7 +13,7 @@ commands = {
     "D": (command_sender("drop", "inventory_selection"),),
     "J": (command_look_scroller("down"),),
     "K": (command_look_scroller("up"),),
-    "P": (command_sender("pick_up"),),
+    "P": (command_sender("pickup"),),
     "Q": (command_quit,),
     "U": (command_sender("use", "inventory_selection"),),
     "W": (command_sender("wait"),),
index 639dd71478cfaf57dc4071defbeae8ed7871f037..325899dbc657992ce8b75bbafdc05e509743b7b5 100644 (file)
@@ -11,7 +11,7 @@ TA_NAME move
 
 TA_ID 3
 TA_EFFORT 15
-TA_NAME pick_up
+TA_NAME pickup
 
 TA_ID 4
 TA_EFFORT 5
index 1c835814ab51b6714413945c3648996e86f69eb1..537dcb175512fc89779f7f49f9b3e1a3d223c203 100644 (file)
@@ -53,7 +53,7 @@ def actor_move(t):
             log("You MOVE " + dir + ".")
 
 
-def actor_pick_up(t):
+def actor_pickup(t):
     """Make t pick up (topmost?) Thing from ground into inventory.
 
     Define topmostness by how low the thing's type ID is.
index ed65fbdfd13fa80a4b53ff9c49cf348a85de2587..21241fcd5b900502e6441d6ad3cbbed4ecceebd7 100644 (file)
@@ -285,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:
index c17635e3f369d7119f10c0c15cd89b308b5d0ef2..346661a5db11d342ad2133f3e68f110e8754b56b 100644 (file)
@@ -305,7 +305,7 @@ def command_taname(name):
     setting no ThingAction with name "wait" remains, call set_world_inactive().
     """
     if name == "wait" or name == "move" or name == "use" or name == "drop" \
-       or name == "pick_up":
+       or name == "pickup":
         world_db["ThingActions"][command_taid.id]["TA_NAME"] = name
         if 1 == world_db["WORLD_ACTIVE"]:
             wait_defined = False
@@ -436,7 +436,7 @@ def action_exists(action):
 
 
 def play_pickup():
-    """Try "pick_up" as player's T_COMMAND"."""
+    """Try "pickup" as player's T_COMMAND"."""
     if action_exists("pickup"):
         t = world_db["Things"][0]
         ids = [id for id in world_db["Things"] if id
@@ -446,7 +446,7 @@ def play_pickup():
         if not len(ids):
              log("NOTHING to pick up.")
         else:
-            set_command("pick_up")
+            set_command("pickup")
 
 
 def play_drop(str_arg):
index 0971c128dc2f9f2b17f89439c193948a52fa4d27..3e10f3231dfb2b089814bc4fb44189e115dc3012 100644 (file)
@@ -3,13 +3,13 @@
 # see the file NOTICE in the root directory of the PlomRogue source package.
 
 
-from server.actions import actor_wait, actor_move, actor_pick_up, actor_drop, \
+from server.actions import actor_wait, actor_move, actor_pickup, actor_drop, \
     actor_use
 
 action_db = {
     "actor_wait": actor_wait,
     "actor_move": actor_move,
-    "actor_pick_up": actor_pick_up,
+    "actor_pickup": actor_pickup,
     "actor_drop": actor_drop,
     "actor_use": actor_use
 }
index 197f7ee82dcfc63ed5c19c98743b1e5eaeb98142..84ac8e298c32d79c381bd1278a4ba3f9e20f252a 100644 (file)
@@ -60,7 +60,7 @@ commands_db = {
     "T_POSX": (1, False, setter_tpos("X")),
     "wait": (0, False, play_wait),
     "move": (1, False, play_move),
-    "pick_up": (0, False, play_pickup),
+    "pickup": (0, False, play_pickup),
     "drop": (1, False, play_drop),
     "use": (1, False, play_use),
     "ai": (0, False, command_ai)