mirror of
https://github.com/pret/pokeemerald.git
synced 2026-08-26 12:41:20 -05:00
Upgrading the debug menu's 'Poison Party' (#4235)
* Upgrading the debug menu's 'Poison Party' * Optimized the 'No Pokémon' check in Debug_EventScript_InflictStatus1 * Killed a pointless function call in Script_SetStatus1 * Added Frostbite support to ¡inflict status1'
This commit is contained in:
@@ -98,7 +98,7 @@ Debug_BoxFilledMessage_Text:
|
||||
Debug_EventScript_CheckEV::
|
||||
lockall
|
||||
getpartysize
|
||||
goto_if_eq VAR_RESULT, 0, Debug_HatchAnEgg_NoPokemon
|
||||
goto_if_eq VAR_RESULT, 0, Debug_NoPokemon
|
||||
special ChoosePartyMon
|
||||
waitstate
|
||||
goto_if_ge VAR_0x8004, PARTY_SIZE, Debug_EventScript_CheckEV_End
|
||||
@@ -119,7 +119,7 @@ Debug_EventScript_Text_DefensiveEV:
|
||||
Debug_EventScript_CheckIV::
|
||||
lockall
|
||||
getpartysize
|
||||
goto_if_eq VAR_RESULT, 0, Debug_HatchAnEgg_NoPokemon
|
||||
goto_if_eq VAR_RESULT, 0, Debug_NoPokemon
|
||||
special ChoosePartyMon
|
||||
waitstate
|
||||
goto_if_ge VAR_0x8004, PARTY_SIZE, Debug_EventScript_CheckIV_End
|
||||
@@ -202,7 +202,7 @@ Debug_ROMSize::
|
||||
Debug_HatchAnEgg::
|
||||
lockall
|
||||
getpartysize
|
||||
goto_if_eq VAR_RESULT, 0, Debug_HatchAnEgg_NoPokemon
|
||||
goto_if_eq VAR_RESULT, 0, Debug_NoPokemon
|
||||
special ChoosePartyMon
|
||||
waitstate
|
||||
goto_if_ge VAR_0x8004, PARTY_SIZE, Debug_HatchAnEgg_End
|
||||
@@ -214,8 +214,8 @@ Debug_HatchAnEgg_End::
|
||||
releaseall
|
||||
end
|
||||
|
||||
Debug_HatchAnEgg_NoPokemon::
|
||||
msgbox DebugScript_HatchAnEgg_Text_EmptyParty, MSGBOX_DEFAULT
|
||||
Debug_NoPokemon::
|
||||
msgbox DebugScript_Text_EmptyParty, MSGBOX_DEFAULT
|
||||
releaseall
|
||||
end
|
||||
|
||||
@@ -224,7 +224,7 @@ DebugScript_HatchAnEgg_CantForceHatch::
|
||||
releaseall
|
||||
end
|
||||
|
||||
DebugScript_HatchAnEgg_Text_EmptyParty::
|
||||
DebugScript_Text_EmptyParty::
|
||||
.string "You have no Pokémon nor Eggs.$"
|
||||
|
||||
DebugScript_HatchAnEgg_Text_NotAnEgg::
|
||||
@@ -295,3 +295,153 @@ Debug_FlagsAndVarNotSetBattleConfigMessage_Text:
|
||||
.string "Feature unavailable! Please define a\n"
|
||||
.string "usable flag and a usable var in:\l"
|
||||
.string "'include/config/battle.h'!$"
|
||||
|
||||
Debug_EventScript_InflictStatus1::
|
||||
lockall
|
||||
getpartysize
|
||||
goto_if_eq VAR_RESULT, 0, Debug_NoPokemon
|
||||
dynmultipush Debug_EventScript_InflictStatus1_Text_Single, 0
|
||||
dynmultipush Debug_EventScript_InflictStatus1_Text_PartyWide, 1
|
||||
dynmultipush Debug_EventScript_InflictStatus1_Text_Close, 2
|
||||
dynmultistack 0, 0, FALSE, 3 FALSE, 0, NULL
|
||||
switch VAR_RESULT
|
||||
case 0, Debug_EventScript_InflictStatus1_Single
|
||||
case 1, Debug_EventScript_InflictStatus1_Party
|
||||
case 2, Debug_EventScript_InflictStatus1_Close
|
||||
Debug_EventScript_InflictStatus1_Close:
|
||||
releaseall
|
||||
end
|
||||
|
||||
Debug_EventScript_InflictStatus1_Single:
|
||||
special ChoosePartyMon
|
||||
waitstate
|
||||
goto_if_ge VAR_0x8004, PARTY_SIZE, Debug_EventScript_InflictStatus1_Close
|
||||
specialvar VAR_RESULT, ScriptGetPartyMonSpecies
|
||||
goto_if_eq VAR_RESULT, SPECIES_EGG, Debug_EventScript_InflictStatus1_Close
|
||||
dynmultipush Debug_EventScript_InflictStatus1_Text_Poison, 0
|
||||
dynmultipush Debug_EventScript_InflictStatus1_Text_Paralysis, 1
|
||||
dynmultipush Debug_EventScript_InflictStatus1_Text_Sleep, 2
|
||||
dynmultipush Debug_EventScript_InflictStatus1_Text_Burn, 3
|
||||
dynmultipush Debug_EventScript_InflictStatus1_Text_Freeze, 4
|
||||
dynmultipush Debug_EventScript_InflictStatus1_Text_Frostbite, 5
|
||||
dynmultipush Debug_EventScript_InflictStatus1_Text_Close, 6
|
||||
dynmultistack 0, 0, FALSE, 7, FALSE, 0, NULL
|
||||
switch VAR_RESULT
|
||||
case 0, Debug_EventScript_InflictStatus1_Single_Poison
|
||||
case 1, Debug_EventScript_InflictStatus1_Single_Paralysis
|
||||
case 2, Debug_EventScript_InflictStatus1_Single_Sleep
|
||||
case 3, Debug_EventScript_InflictStatus1_Single_Burn
|
||||
case 4, Debug_EventScript_InflictStatus1_Single_Freeze
|
||||
case 5, Debug_EventScript_InflictStatus1_Single_Frostbite
|
||||
case 6, Debug_EventScript_InflictStatus1_Close
|
||||
case MULTI_B_PRESSED, Debug_EventScript_InflictStatus1_Close
|
||||
releaseall
|
||||
end
|
||||
|
||||
Debug_EventScript_InflictStatus1_Single_Poison:
|
||||
setstatus1 STATUS1_POISON, VAR_0x8004
|
||||
releaseall
|
||||
end
|
||||
|
||||
Debug_EventScript_InflictStatus1_Single_Paralysis:
|
||||
setstatus1 STATUS1_PARALYSIS, VAR_0x8004
|
||||
releaseall
|
||||
end
|
||||
|
||||
Debug_EventScript_InflictStatus1_Single_Sleep:
|
||||
setstatus1 STATUS1_SLEEP, VAR_0x8004
|
||||
releaseall
|
||||
end
|
||||
|
||||
Debug_EventScript_InflictStatus1_Single_Burn:
|
||||
setstatus1 STATUS1_BURN, VAR_0x8004
|
||||
releaseall
|
||||
end
|
||||
|
||||
Debug_EventScript_InflictStatus1_Single_Freeze:
|
||||
setstatus1 STATUS1_FREEZE, VAR_0x8004
|
||||
releaseall
|
||||
end
|
||||
|
||||
Debug_EventScript_InflictStatus1_Single_Frostbite:
|
||||
setstatus1 STATUS1_FROSTBITE, VAR_0x8004
|
||||
releaseall
|
||||
end
|
||||
|
||||
Debug_EventScript_InflictStatus1_Party:
|
||||
dynmultipush Debug_EventScript_InflictStatus1_Text_Poison, 0
|
||||
dynmultipush Debug_EventScript_InflictStatus1_Text_Paralysis, 1
|
||||
dynmultipush Debug_EventScript_InflictStatus1_Text_Sleep, 2
|
||||
dynmultipush Debug_EventScript_InflictStatus1_Text_Burn, 3
|
||||
dynmultipush Debug_EventScript_InflictStatus1_Text_Freeze, 4
|
||||
dynmultipush Debug_EventScript_InflictStatus1_Text_Frostbite, 5
|
||||
dynmultipush Debug_EventScript_InflictStatus1_Text_Close, 6
|
||||
dynmultistack 0, 0, FALSE, 7, FALSE, 0, NULL
|
||||
switch VAR_RESULT
|
||||
case 0, Debug_EventScript_InflictStatus1_Party_Poison
|
||||
case 1, Debug_EventScript_InflictStatus1_Party_Paralysis
|
||||
case 2, Debug_EventScript_InflictStatus1_Party_Sleep
|
||||
case 3, Debug_EventScript_InflictStatus1_Party_Burn
|
||||
case 4, Debug_EventScript_InflictStatus1_Party_Freeze
|
||||
case 5, Debug_EventScript_InflictStatus1_Party_Frostbite
|
||||
case 6, Debug_EventScript_InflictStatus1_Close
|
||||
case MULTI_B_PRESSED, Debug_EventScript_InflictStatus1_Close
|
||||
releaseall
|
||||
end
|
||||
|
||||
Debug_EventScript_InflictStatus1_Party_Poison:
|
||||
setstatus1 STATUS1_POISON, PARTY_SIZE
|
||||
releaseall
|
||||
end
|
||||
|
||||
Debug_EventScript_InflictStatus1_Party_Paralysis:
|
||||
setstatus1 STATUS1_PARALYSIS, PARTY_SIZE
|
||||
releaseall
|
||||
end
|
||||
|
||||
Debug_EventScript_InflictStatus1_Party_Sleep:
|
||||
setstatus1 STATUS1_SLEEP, PARTY_SIZE
|
||||
releaseall
|
||||
end
|
||||
|
||||
Debug_EventScript_InflictStatus1_Party_Burn:
|
||||
setstatus1 STATUS1_BURN, PARTY_SIZE
|
||||
releaseall
|
||||
end
|
||||
|
||||
Debug_EventScript_InflictStatus1_Party_Freeze:
|
||||
setstatus1 STATUS1_FREEZE, PARTY_SIZE
|
||||
releaseall
|
||||
end
|
||||
|
||||
Debug_EventScript_InflictStatus1_Party_Frostbite:
|
||||
setstatus1 STATUS1_FROSTBITE, PARTY_SIZE
|
||||
releaseall
|
||||
end
|
||||
|
||||
Debug_EventScript_InflictStatus1_Text_Single:
|
||||
.string "Single$"
|
||||
|
||||
Debug_EventScript_InflictStatus1_Text_PartyWide:
|
||||
.string "Party-wide$"
|
||||
|
||||
Debug_EventScript_InflictStatus1_Text_Close:
|
||||
.string "Close$"
|
||||
|
||||
Debug_EventScript_InflictStatus1_Text_Poison:
|
||||
.string "Poison$"
|
||||
|
||||
Debug_EventScript_InflictStatus1_Text_Paralysis:
|
||||
.string "Paralysis$"
|
||||
|
||||
Debug_EventScript_InflictStatus1_Text_Sleep:
|
||||
.string "Sleep$"
|
||||
|
||||
Debug_EventScript_InflictStatus1_Text_Burn:
|
||||
.string "Burn$"
|
||||
|
||||
Debug_EventScript_InflictStatus1_Text_Freeze:
|
||||
.string "Freeze$"
|
||||
|
||||
Debug_EventScript_InflictStatus1_Text_Frostbite:
|
||||
.string "Frostbite$"
|
||||
|
||||
Reference in New Issue
Block a user