home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Consistent use of "pickup" instead of "pickup" as command name.
[plomrogue]
/
server
/
ai.py
diff --git
a/server/ai.py
b/server/ai.py
index 9d5fc8d2282b0a34d06fab26d2c224391935ea40..21241fcd5b900502e6441d6ad3cbbed4ecceebd7 100644
(file)
--- a/
server/ai.py
+++ b/
server/ai.py
@@
-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
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"]
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:
else:
going_to_known_food_spot = get_dir_to_target(t, "c")
if not going_to_known_food_spot: