home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Server: Fix AI bug (searching too costly consumable when not player).
[plomrogue]
/
server
/
config
/
commands.py
diff --git
a/server/config/commands.py
b/server/config/commands.py
index 96c31cc40d5dc2f4ba56d1e684567610f344492d..ec5583a353a871da18fc9babdfae1d523735bd26 100644
(file)
--- a/
server/config/commands.py
+++ b/
server/config/commands.py
@@
-66,3
+66,8
@@
commands_db = {
"ai": (0, False, command_ai)
}
# TODO: Unhandled cases: (Un-)killing animates (esp. player!) with T_LIFEPOINTS.
"ai": (0, False, command_ai)
}
# TODO: Unhandled cases: (Un-)killing animates (esp. player!) with T_LIFEPOINTS.
+
+command_worldactive_test_hook = lambda: True
+play_move_attempt_hook = lambda x, y, z: False
+play_use_attempt_hook = lambda x, y: None
+play_pickup_attempt_hook = lambda x: True