Skip to content

Commit

Permalink
resolve PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Alto1772 committed Nov 8, 2024
1 parent 7e93c1a commit 91b3ff2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
7 changes: 3 additions & 4 deletions src/battle/action_cmd/three_chances.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ enum {

// input window before the light appears where A inputs cause timing test to fail
#define ANTI_MASH_TIME 5
#define PAL_DT_WRAP(x) (s32) ((x) * DT)

INCLUDE_IMG("battle/action_cmd/three_chances_1.png", battle_action_cmd_three_chances_1_png);
INCLUDE_PAL("battle/action_cmd/three_chances_1.pal", battle_action_cmd_three_chances_1_pal);
Expand Down Expand Up @@ -370,7 +369,7 @@ void N(update)(void) {
&& acs->threeChances.time >= -5
) {
s32 (*difficultyVec)[2] = (s32 (*)[2])battleStatus->actionCmdDifficultyTable;
window = difficultyVec[acs->difficulty][0] + difficultyVec[acs->difficulty][1] + PAL_DT_WRAP(ANTI_MASH_TIME);
window = difficultyVec[acs->difficulty][0] + difficultyVec[acs->difficulty][1] + (s32)(ANTI_MASH_TIME * DT);
pos = battleStatus->inputBufferPos;
pos -= window;
if (pos < 0) {
Expand Down Expand Up @@ -453,7 +452,7 @@ void N(update)(void) {
&& acs->threeChances.time >= -5
) {
s32 (*difficultyVec)[2] = (s32 (*)[2])battleStatus->actionCmdDifficultyTable;
window = difficultyVec[acs->difficulty][0] + difficultyVec[acs->difficulty][1] + PAL_DT_WRAP(ANTI_MASH_TIME - 1);
window = difficultyVec[acs->difficulty][0] + difficultyVec[acs->difficulty][1] + (s32)((ANTI_MASH_TIME - 1) * DT);
if (window < 6) {
window = 6;
}
Expand Down Expand Up @@ -541,7 +540,7 @@ void N(update)(void) {
&& acs->threeChances.time >= -5
) {
s32 (*difficultyVec)[2] = (s32 (*)[2])battleStatus->actionCmdDifficultyTable;
window = difficultyVec[acs->difficulty][0] + difficultyVec[acs->difficulty][1] + PAL_DT_WRAP(ANTI_MASH_TIME - 2);
window = difficultyVec[acs->difficulty][0] + difficultyVec[acs->difficulty][1] + (s32)((ANTI_MASH_TIME - 2) * DT);
if (window < 6) {
window = 6;
}
Expand Down
8 changes: 4 additions & 4 deletions src/battle/level_up.c
Original file line number Diff line number Diff line change
Expand Up @@ -593,13 +593,13 @@ EvtScript EVS_ShowLevelUp = {
#if VERSION_PAL
Call(GetLanguage, LVar0)
Switch(LVar0)
CaseEq(0)
CaseEq(LANGUAGE_EN)
Call(CreateVirtualEntity, LVar9, Ref(EMS_level_up_en_de))
CaseEq(1)
CaseEq(LANGUAGE_DE)
Call(CreateVirtualEntity, LVar9, Ref(EMS_level_up_en_de))
CaseEq(2)
CaseEq(LANGUAGE_FR)
Call(CreateVirtualEntity, LVar9, Ref(EMS_level_up_fr))
CaseEq(3)
CaseEq(LANGUAGE_ES)
Call(CreateVirtualEntity, LVar9, Ref(EMS_level_up_es))
EndSwitch
#else
Expand Down

0 comments on commit 91b3ff2

Please sign in to comment.