mirror of
https://github.com/pret/pokemon-reverse-engineering-tools.git
synced 2026-08-08 18:34:12 -05:00
simplify the date/clock check in text_wait
This commit is contained in:
parent
811630a5dd
commit
d8ab944d43
|
|
@ -462,8 +462,7 @@ class crystal(object):
|
|||
# date/time box (day choice)
|
||||
# 0x47ab is the one from the intro, 0x49ab is the one from mom.
|
||||
elif 0x47ab in stack or 0x49ab in stack: # was any([x in stack for x in range(0x46EE, 0x47AB)])
|
||||
# if not in battle
|
||||
if self.vba.read_memory_at(0xd22d) == 0:
|
||||
if not self.is_in_battle():
|
||||
print "probably at a date/time box ? exiting."
|
||||
break
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user