home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
def5610
)
Fix bug in seeing_thing().
author
Christian Heller
<c.heller@plomlompom.de>
Sun, 15 Mar 2015 03:14:49 +0000
(
04:14
+0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Sun, 15 Mar 2015 03:14:49 +0000
(
04:14
+0100)
roguelike-server
patch
|
blob
|
history
diff --git
a/roguelike-server
b/roguelike-server
index 0bb69884d40f31adbd73d16e23efe89c71e0cea4..3c4fd894b9c187553d71f9eaf984102615ac5274 100755
(executable)
--- a/
roguelike-server
+++ b/
roguelike-server
@@
-1167,11
+1167,13
@@
def get_dir_to_target(t, filter):
if t["fovmap"] and "a" == filter:
for id in world_db["Things"]:
if animate_in_fov(world_db["Things"][id]):
if t["fovmap"] and "a" == filter:
for id in world_db["Things"]:
if animate_in_fov(world_db["Things"][id]):
- return good_attack_target(world_db["Things"][id])
+ if good_attack_target(world_db["Things"][id]):
+ return True
elif t["fovmap"] and "f" == filter:
for id in world_db["Things"]:
if animate_in_fov(world_db["Things"][id]):
elif t["fovmap"] and "f" == filter:
for id in world_db["Things"]:
if animate_in_fov(world_db["Things"][id]):
- return good_flee_target(world_db["Things"][id])
+ if good_flee_target(world_db["Things"][id]):
+ return True
elif t["T_MEMMAP"] and "c" == filter:
eat_cost = eat_vs_hunger_threshold(t["T_TYPE"])
for mt in t["T_MEMTHING"]:
elif t["T_MEMMAP"] and "c" == filter:
eat_cost = eat_vs_hunger_threshold(t["T_TYPE"])
for mt in t["T_MEMTHING"]: