Fixed problems with changed Deoxys handling in RHH's pokeexpansion, thanks to "Subzero Eclipse" for pointing it out
This commit is contained in:
parent
edc476f863
commit
c15138fdbb
1 changed files with 18 additions and 3 deletions
21
src/debug.c
21
src/debug.c
|
@ -1594,7 +1594,12 @@ static void DebugAction_Give_PokemonSimple(u8 taskId)
|
||||||
gTasks[taskId].data[5] = 0; //Complex?
|
gTasks[taskId].data[5] = 0; //Complex?
|
||||||
FreeMonIconPalettes(); //Free space for new pallete
|
FreeMonIconPalettes(); //Free space for new pallete
|
||||||
LoadMonIconPalette(gTasks[taskId].data[3]); //Loads pallete for current mon
|
LoadMonIconPalette(gTasks[taskId].data[3]); //Loads pallete for current mon
|
||||||
gTasks[taskId].data[6] = CreateMonIcon(gTasks[taskId].data[3], SpriteCB_MonIcon, DEBUG_NUMBER_ICON_X, DEBUG_NUMBER_ICON_Y, 4, 0, TRUE); //Create pokemon sprite
|
#ifndef POKEMON_EXPANSION
|
||||||
|
gTasks[taskId].data[6] = CreateMonIcon(gTasks[taskId].data[3], SpriteCB_MonIcon, DEBUG_NUMBER_ICON_X, DEBUG_NUMBER_ICON_Y, 4, 0, TRUE); //Create pokemon sprite
|
||||||
|
#endif
|
||||||
|
#ifdef POKEMON_EXPANSION
|
||||||
|
gTasks[taskId].data[6] = CreateMonIcon(gTasks[taskId].data[3], SpriteCB_MonIcon, DEBUG_NUMBER_ICON_X, DEBUG_NUMBER_ICON_Y, 4, 0); //Create pokemon sprite
|
||||||
|
#endif
|
||||||
gSprites[gTasks[taskId].data[6]].oam.priority = 0; //Mon Icon ID
|
gSprites[gTasks[taskId].data[6]].oam.priority = 0; //Mon Icon ID
|
||||||
}
|
}
|
||||||
static void DebugAction_Give_PokemonComplex(u8 taskId)
|
static void DebugAction_Give_PokemonComplex(u8 taskId)
|
||||||
|
@ -1632,7 +1637,12 @@ static void DebugAction_Give_PokemonComplex(u8 taskId)
|
||||||
gTasks[taskId].data[5] = 1; //Complex?
|
gTasks[taskId].data[5] = 1; //Complex?
|
||||||
FreeMonIconPalettes(); //Free space for new palletes
|
FreeMonIconPalettes(); //Free space for new palletes
|
||||||
LoadMonIconPalette(gTasks[taskId].data[3]); //Loads pallete for current mon
|
LoadMonIconPalette(gTasks[taskId].data[3]); //Loads pallete for current mon
|
||||||
gTasks[taskId].data[6] = CreateMonIcon(gTasks[taskId].data[3], SpriteCB_MonIcon, DEBUG_NUMBER_ICON_X, DEBUG_NUMBER_ICON_Y, 4, 0, TRUE); //Create pokemon sprite
|
#ifndef POKEMON_EXPANSION
|
||||||
|
gTasks[taskId].data[6] = CreateMonIcon(gTasks[taskId].data[3], SpriteCB_MonIcon, DEBUG_NUMBER_ICON_X, DEBUG_NUMBER_ICON_Y, 4, 0, TRUE); //Create pokemon sprite
|
||||||
|
#endif
|
||||||
|
#ifdef POKEMON_EXPANSION
|
||||||
|
gTasks[taskId].data[6] = CreateMonIcon(gTasks[taskId].data[3], SpriteCB_MonIcon, DEBUG_NUMBER_ICON_X, DEBUG_NUMBER_ICON_Y, 4, 0); //Create pokemon sprite
|
||||||
|
#endif
|
||||||
gSprites[gTasks[taskId].data[6]].oam.priority = 0; //Mon Icon ID
|
gSprites[gTasks[taskId].data[6]].oam.priority = 0; //Mon Icon ID
|
||||||
gTasks[taskId].data[7] = 0; //iterator
|
gTasks[taskId].data[7] = 0; //iterator
|
||||||
}
|
}
|
||||||
|
@ -1680,7 +1690,12 @@ static void DebugAction_Give_Pokemon_SelectId(u8 taskId)
|
||||||
FreeAndDestroyMonIconSprite(&gSprites[gTasks[taskId].data[6]]);
|
FreeAndDestroyMonIconSprite(&gSprites[gTasks[taskId].data[6]]);
|
||||||
FreeMonIconPalettes(); //Free space for new pallete
|
FreeMonIconPalettes(); //Free space for new pallete
|
||||||
LoadMonIconPalette(gTasks[taskId].data[3]); //Loads pallete for current mon
|
LoadMonIconPalette(gTasks[taskId].data[3]); //Loads pallete for current mon
|
||||||
gTasks[taskId].data[6] = CreateMonIcon(gTasks[taskId].data[3], SpriteCB_MonIcon, DEBUG_NUMBER_ICON_X, DEBUG_NUMBER_ICON_Y, 4, 0, TRUE); //Create new pokemon sprite
|
#ifndef POKEMON_EXPANSION
|
||||||
|
gTasks[taskId].data[6] = CreateMonIcon(gTasks[taskId].data[3], SpriteCB_MonIcon, DEBUG_NUMBER_ICON_X, DEBUG_NUMBER_ICON_Y, 4, 0, TRUE); //Create pokemon sprite
|
||||||
|
#endif
|
||||||
|
#ifdef POKEMON_EXPANSION
|
||||||
|
gTasks[taskId].data[6] = CreateMonIcon(gTasks[taskId].data[3], SpriteCB_MonIcon, DEBUG_NUMBER_ICON_X, DEBUG_NUMBER_ICON_Y, 4, 0); //Create pokemon sprite
|
||||||
|
#endif
|
||||||
gSprites[gTasks[taskId].data[6]].oam.priority = 0;
|
gSprites[gTasks[taskId].data[6]].oam.priority = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue