Fixing tutorial world usage of search.

This commit is contained in:
Griatch 2012-09-27 21:36:20 +02:00
parent 59ccd3eb38
commit 1b0544c261
3 changed files with 227 additions and 227 deletions

View file

@ -226,7 +226,7 @@ class Enemy(Mob):
# analyze result.
if target.db.health <= 0:
# we reduced enemy to 0 health. Whisp them off to the prison room.
tloc = search_object(self.db.defeat_location, global_search=True)
tloc = search_object(self.db.defeat_location)
tstring = self.db.defeat_text
if not tstring:
tstring = "You feel your conciousness slip away ... you fall to the ground as "

View file

@ -365,7 +365,7 @@ class TeleportRoom(TutorialRoom):
# passed the puzzle
teleport_to = self.db.success_teleport_to # this is a room name
results = search_object(teleport_to, global_search=True)
results = search_object(teleport_to)
if not results or len(results) > 1:
# we cannot move anywhere since no valid target was found.
print "no valid teleport target for %s was found." % teleport_to