From 1b56d95aa0f39146a37043a36cf19f46b00f68c3 Mon Sep 17 00:00:00 2001 From: "U-Fish-PC\\Daniel" Date: Sun, 13 Oct 2013 10:49:07 -0400 Subject: Add pokered music commands --- pokemontools/crystal.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'pokemontools/crystal.py') diff --git a/pokemontools/crystal.py b/pokemontools/crystal.py index 45eb306..5d602c9 100644 --- a/pokemontools/crystal.py +++ b/pokemontools/crystal.py @@ -2453,7 +2453,22 @@ def create_music_command_classes(debug=False): return klasses music_classes = create_music_command_classes() - +class callchannel(Command): + id = 0xFD + macro_name = "callchannel" + size = 3 + param_types = { + 0: {"name": "address", "class": PointerLabelParam}, + } + +class loopchannel(Command): + id = 0xFE + macro_name = "loopchannel" + size = 4 + param_types = { + 0: {"name": "count", "class": SingleByteParam}, + 1: {"name": "address", "class": PointerLabelParam}, + } effect_commands = { 0x1: ['checkturn'], -- cgit v1.2.3