Skip to content

Commit

Permalink
[Rebase of rh-hideout#4286] Reordered Debug_EventScript_InflictStatus1 (
Browse files Browse the repository at this point in the history
rh-hideout#4372)

* Update debug.inc

Created new merge as per discussion in discord, previous pull request rh-hideout#4286

* Added new file 'config.inc' as per feedback

Added new file 'config.inc' as per feedback

* Restore order

* fixed, my bad

---------

Co-authored-by: Eduardo Quezada <[email protected]>
  • Loading branch information
damon-murdoch and AsparagusEduardo authored Apr 14, 2024
1 parent fd87a79 commit ecf70d3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
1 change: 1 addition & 0 deletions data/event_scripts.s
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@ gStdScripts_End::
.include "data/scripts/new_game.inc"
.include "data/scripts/hall_of_fame.inc"

.include "data/scripts/config.inc"
.include "data/scripts/debug.inc"

EventScript_WhiteOut::
Expand Down
12 changes: 12 additions & 0 deletions data/scripts/config.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Debug_FlagsAndVarNotSetBattleConfigMessage::
lockall
message Debug_FlagsAndVarNotSetBattleConfigMessage_Text
waitmessage
waitbuttonpress
releaseall
end

Debug_FlagsAndVarNotSetBattleConfigMessage_Text:
.string "Feature unavailable! Please define a\n"
.string "usable flag and a usable var in:\l"
.string "'include/config/battle.h'!$"
17 changes: 2 additions & 15 deletions data/scripts/debug.inc
Original file line number Diff line number Diff line change
Expand Up @@ -281,21 +281,6 @@ DebugText_BerryWeedsDisabled:
.string "OW_BERRY_WEEDS is disabled.\n"
.string "Unable to force weeds onto berry trees.$"

.endif

Debug_FlagsAndVarNotSetBattleConfigMessage::
lockall
message Debug_FlagsAndVarNotSetBattleConfigMessage_Text
waitmessage
waitbuttonpress
releaseall
end

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
Expand Down Expand Up @@ -445,3 +430,5 @@ Debug_EventScript_InflictStatus1_Text_Freeze:

Debug_EventScript_InflictStatus1_Text_Frostbite:
.string "Frostbite$"

.endif

0 comments on commit ecf70d3

Please sign in to comment.