diff options
author | Bryan Bishop <kanzure@gmail.com> | 2012-04-26 13:13:24 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2012-04-26 13:13:24 -0500 |
commit | 1bba364ba63a347a5188b21b267a66738fa11ff7 (patch) | |
tree | 443090dae75cca42005f253d100433e1ec055907 /extras/crystal.py | |
parent | 2446153f98e51926fdc9db85f8f183b85dc419e2 (diff) |
change Signpost to extend Command and set byte_type in a few places
Diffstat (limited to 'extras/crystal.py')
-rw-r--r-- | extras/crystal.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/extras/crystal.py b/extras/crystal.py index 864fa4af6..f0cc25310 100644 --- a/extras/crystal.py +++ b/extras/crystal.py @@ -1123,6 +1123,7 @@ class SingleByteParam(): """or SingleByte(CommandParam)""" size = 1 should_be_decimal = False + byte_type = "db" def __init__(self, *args, **kwargs): for (key, value) in kwargs.items(): @@ -1167,6 +1168,7 @@ class MultiByteParam(): """or MultiByte(CommandParam)""" size = 2 should_be_decimal = False + byte_type = "dw" def __init__(self, *args, **kwargs): self.prefix = "$" #default.. feel free to set 0x in kwargs @@ -2633,7 +2635,7 @@ class SignpostRemoteUnknownChunk(SignpostRemoteBase): #this could potentially extend Command #see how class Warp does this -class Signpost: +class Signpost(Command): """parse some number of signposts from the data [Y position][X position][Function][Script pointer (2byte)] @@ -2660,6 +2662,7 @@ class Signpost: """ size = 5 macro_name = "signpost" + override_byte_check = True def __init__(self, address, id, bank=None, map_group=None, map_id=None, debug=True, label=None): self.address = address |