Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
Update Oracle task to create permonst the new way.
Browse files Browse the repository at this point in the history
  • Loading branch information
Heinrich Kuttler committed Jul 29, 2020
1 parent 595a192 commit 065a86b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nle/env/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.oracle_glyph = None
for glyph in range(nethack.GLYPH_MON_OFF, nethack.GLYPH_PET_OFF):
if nethack.glyph_to_mon(glyph).mname == "Oracle":
if nethack.permonst(nethack.glyph_to_mon(glyph)).mname == "Oracle":
self.oracle_glyph = glyph
break
assert self.oracle_glyph is not None
Expand Down

0 comments on commit 065a86b

Please sign in to comment.