Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert various to callnatives - Part 1 #3269

Merged

Conversation

AsparagusEduardo
Copy link
Collaborator

Description

First batch of conversions.

  • handleultraburst
  • handleprimalreversion
  • handlemegaevo
  • jumpifshelltrap
  • jumpifemergencyexited
  • jumpifrodaffected
  • jumpifabsorbaffected
  • jumpifmotoraffected

Discord contact info

AsparagusEduardo

- jumpifshelltrap
- jumpifemergencyexited
- jumpifrodaffected
- jumpifabsorbaffected
- jumpifmotoraffected
ghoulslash
ghoulslash previously approved these changes Sep 3, 2023
src/battle_script_commands.c Outdated Show resolved Hide resolved

gActiveBattler = GetBattlerForBattleScript(cmd->battler);
HandleScriptMegaPrimalBurst(cmd->caseId, gActiveBattler, HANDLE_TYPE_MEGA_EVOLUTION);
gBattlescriptCurrInstr = cmd->nextInstr;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be useful to have some macros e.g. #define NEXT_INSTR gBattlescriptCurrInstr = cmd->nextInstr and a similar FAIL_INSTR so we can put that at the end of these BS callnatives

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since gBattlescriptCurrInstr = cmd->nextInstr is used by all 3 various, callnative and regular commands, it might be better to have this as a separate PR.

@ghoulslash ghoulslash dismissed their stale review September 3, 2023 16:49

approved by accident

Copy link
Collaborator

@ghoulslash ghoulslash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see previous comments

# Conflicts:
#	include/constants/battle_script_commands.h
#	src/battle_script_commands.c
@AsparagusEduardo
Copy link
Collaborator Author

Re-ready for re-review

@ghoulslash ghoulslash merged commit 582cfb0 into rh-hideout:upcoming Sep 11, 2023
@AsparagusEduardo AsparagusEduardo deleted the RHH/pr/upcoming/variousGone1 branch September 11, 2023 17:52
@AsparagusEduardo AsparagusEduardo mentioned this pull request Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants