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 76380a1061b7026b99db924f89ce43fefa6a1698..ec5583a353a871da18fc9babdfae1d523735bd26 100644
(file)
--- a/
server/config/commands.py
+++ b/
server/config/commands.py
@@
-68,3
+68,6
@@
commands_db = {
# TODO: Unhandled cases: (Un-)killing animates (esp. player!) with T_LIFEPOINTS.
command_worldactive_test_hook = lambda: True
# 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