Fixing tutorial world usage of search.
This commit is contained in:
parent
59ccd3eb38
commit
1b0544c261
3 changed files with 227 additions and 227 deletions
|
|
@ -226,7 +226,7 @@ class Enemy(Mob):
|
||||||
# analyze result.
|
# analyze result.
|
||||||
if target.db.health <= 0:
|
if target.db.health <= 0:
|
||||||
# we reduced enemy to 0 health. Whisp them off to the prison room.
|
# 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
|
tstring = self.db.defeat_text
|
||||||
if not tstring:
|
if not tstring:
|
||||||
tstring = "You feel your conciousness slip away ... you fall to the ground as "
|
tstring = "You feel your conciousness slip away ... you fall to the ground as "
|
||||||
|
|
|
||||||
|
|
@ -365,7 +365,7 @@ class TeleportRoom(TutorialRoom):
|
||||||
# passed the puzzle
|
# passed the puzzle
|
||||||
teleport_to = self.db.success_teleport_to # this is a room name
|
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:
|
if not results or len(results) > 1:
|
||||||
# we cannot move anywhere since no valid target was found.
|
# we cannot move anywhere since no valid target was found.
|
||||||
print "no valid teleport target for %s was found." % teleport_to
|
print "no valid teleport target for %s was found." % teleport_to
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue