Eduardo Quezada
47cea526ec
Merge branch 'RHH/master' into RHH/upcoming
...
# Conflicts:
# src/battle_util.c
2023-07-19 23:22:07 -04:00
Alex
6b5d1e7577
Adds some gen9 moves ( #3147 )
...
* Adds some gen9 moves
* Fix Test + Tabs
* Collision Course boost changed to 1.3333
2023-07-19 13:25:20 +02:00
DizzyEggg
34beb3d662
add tests for rattled
2023-07-19 10:59:36 +02:00
Eduardo Quezada D'Ottone
b08c8f85fc
Fixed Utility Umbrella damage calculations ( #2835 )
...
* Fixed Utility Umbrella holders not receiving regular damage when being hurt by what would've been weakened rain/sun attacks
* Fixed reading move incorrectly
* Tests: Sun, Rain, Utility Umbrella and Hydro Steam
* [STASH] Skeli changes, needs to remake tests
* Fixed tests
* Removed redundant tests
* Removed unused variable
* Removed Primal Todo tests
2023-07-18 09:22:05 +02:00
Eduardo Quezada D'Ottone
43ad1a4d3b
Unified multi-strike move flags ( #3126 )
...
* Unified twoStrikes and threeStrikes flags into strikeCount
* Decreased strikeCount max from 255 to 15.
2023-07-18 09:07:14 +02:00
Alex
38655b9d1f
Fix gem boost on multi hit moves and config for gem param ( #3144 )
2023-07-18 06:11:54 +01:00
DizzyEggg
04feba8314
test for electromorphosis, small fix for wind power
2023-07-17 16:30:59 +02:00
DizzyEggg
1b6f582600
tests for stamina/wind power
2023-07-17 15:33:44 +02:00
Alex
330e20b9e9
Fix Protosynthesis and Quark Drive boosts ( #3139 )
...
* Fix Protosynthesis and Quark Drive boosts
* Added Tests + fix newly introduced bug in the PR
Add unintentionally deletet break
new line
2023-07-17 11:10:13 +02:00
DizzyEggg
1f1d24b3e4
Fix Primal Reversion not activating when switching in after fainting ( #3141 )
...
* Fixed Primal Reversion not activating when switching in after a fainting
* add tests for primal reversion
Co-authored-by: Eduardo Quezada <eduardo602002@gmail.com>
2023-07-16 12:26:54 +01:00
Martin Griffin
17f8f50a59
Merge remote-tracking branch 'rhh/master' into upcoming
2023-07-16 07:46:34 +01:00
Martin Griffin
c4057cb0e0
Fix Metronome's/Mirror Move's called move to take powder moves / multi hit moves into account ( #3135 )
2023-07-16 06:41:18 +01:00
DizzyEggg
381aa58587
Fix Bad Dreams ability pop-up + tests ( #3131 )
...
* Fix all bad dreams issues and add tests
Co-authored-by: ShaeTsuPog <shaetsu@protonmail.com>
2023-07-16 06:38:00 +01:00
Eduardo Quezada
786bf7752f
Merge branch 'RHH/master' into RHH/upcoming
2023-07-16 01:33:30 -04:00
DizzyEggg
2a249654e7
fix mirror move/metronome powder/multi hit moves & tests
2023-07-15 14:00:55 +02:00
Martin Griffin
25986be089
Prevent corrupted heaps causing infinite loops
2023-07-15 11:48:53 +01:00
Martin Griffin
4637d7e7ee
Recover from test crashes
2023-07-15 11:48:52 +01:00
Martin Griffin
b31f10d124
Make Hydra respect -jN ( #3132 )
2023-07-14 19:10:42 +02:00
Eduardo Quezada
168b005406
Merge branch 'RHH/master' into RHH/upcoming
2023-07-14 12:40:01 -04:00
Eduardo Quezada D'Ottone
5f29ae6f99
Failed tests are now listed in the total ( #3073 )
...
* Failed tests are now listed in the total
2023-07-14 10:17:54 +01:00
sbird
6482279fa3
[battle, math] refactor damage calculation to use proper fp type and inlined multiplication
2023-07-07 18:51:23 +02:00
Eduardo Quezada
4bbb3a1e51
Merge branch 'RHH/master' into RHH/upcoming
2023-07-05 19:28:37 -04:00
Eduardo Quezada
b10b5fd9c3
EVERYTHING_CUSTOMIZED -> TRAINER_PARTY
2023-07-05 18:31:08 -04:00
Eduardo Quezada
e8487961c7
TrainerMonCustomized -> TrainerMon
2023-07-05 18:29:28 -04:00
Martin Griffin
eab4e32e2a
Shuffle implementation ( #3097 )
2023-07-05 19:46:40 +02:00
Eduardo Quezada
3dd7a2c09e
Removed TrainerMonNoItemDefaultMoves
2023-07-04 21:29:58 -04:00
Eduardo Quezada D'Ottone
81522554c2
Fixed KNOWN_FAILING tests running memory leak checks when unneeded ( #3102 )
2023-07-04 17:19:38 +01:00
Eduardo Quezada D'Ottone
1fa9a05470
Convert move flags and bans into GCC bitfields ( #2952 )
...
* Slicing moves to new bitfield
* Wind moves to new bitfield
* Two-strike moves to new bitfield
* Forgot to add flagTwoStrikes to battle_moves.h
* Removed "flag" from field names
* FLAG_HIT_IN_SUBSTITUTE and FLAG_THAW_USER
* Airborne moves
* FLAG_POWDER, FLAG_TARGET_ABILITY_IGNORED and FLAG_DANCE
* FLAG_BALLISTIC and FLAG_PROTECTION_MOVE
* Fixed missing uses of MOVE_UNAVAILABLE in battle_ai_util.c
* FLAG_SOUND
* FLAG_DMG_UNDERGROUND and FLAG_DMG_UNDERWATER
* FLAG_DMG_MINIMIZE
* Cleanup
* FLAG_STAT_STAGES_IGNORED
* Updated Pollen Puff's ballistic flag
* FLAG_STRONG_JAW_BOOST and FLAG_MEGA_LAUNCHER_BOOST
* thaw
* FLAG_THREE_STRIKES
* FLAG_IRON_FIST_BOOST
* FLAG_RECKLESS_BOOST
* FLAG_HIGH_CRIT
* Removed empty flags
* Moves that fail when called by Me First + added missing Shell Trap
* Moves that fail when Gravity is active
* Better names for banned fields
* Moves that fail when called by Instruct
* Cleanup
* Contact Moves + Fixed Wandering Spirit skipping contact checks
* Inverted FLAG_PROTECT_AFFECTED so that there's a flag for moves that SKIP protect.
* Simplified B_MOVE_FLAGS configs
* FORBIDDEN_METRONOME
* Renamed hitsPastSubstitute to ignoresSubstitute
* FORBIDDEN_PARENTAL_BOND
* Struggle uncallable by Metronome
* FORBIDDEN_MIMIC
* FLAG_KINGS_ROCK_AFFECTED
* Made a single config for move flags
* Macro for checking move flags
* FLAG_MAGIC_COAT_AFFECTED
* Fixed HasMagicCoatAffectedMove
* FLAG_SNATCH_AFFECTED
* Removed unused EFFECT_FLINCH_MINIMIZE_HIT
* Fixed Stench/King's Rock interaction
* Removed sMovesNotAffectedByStench in favor of checking move effects
* Removed EFFECT_TWISTER, which was a repeat of EFFECT_FLINCH_HIT
* Changed Gen2 configs to less than Gen 3
* FORBIDDEN_SLEEP_TALK
* Cleanup
* Inverted FLAG_MIRROR_MOVE_AFFECTED
* FLAG_SHEER_FORCE_BOOST
* Ordered
* FORBIDDEN_ASSIST and FORBIDDEN_COPYCAT
* Removed TestMoveFlags and TestMoveFlagsInMoveset + flags field
* Fixed Triple Arrows test
2023-07-03 10:01:59 +02:00
hetoord
40a5995ead
Teatime tests and fixes ( #3096 )
2023-07-03 09:54:43 +02:00
Eduardo Quezada
2c4a9b754d
Merge branch 'RHH/master' into RHH/upcoming
2023-06-30 16:14:57 -04:00
Eduardo Quezada D'Ottone
81e59ace25
Cleaned up remaining Castform hack stuff ( #3063 )
...
* Removed gCastformFrontSpriteCoords
* Removed sCastformElevations and IsCastformForm
* Removed sCastformBackSpriteYCoords and castformPalette in BattleStruct
* Scrubbed unused BS commands
* Removed B_ANIM_CASTFORM_CHANGE and BattleForm constants
* Removed redundant function in Pokémon Debug menu
* Removed handling in animation scripts
* Removed gBattleMonForms
* Reduced MAX_MON_PIC_FRAMES to 2
* Removed Castform/Cherrim makefile stuff
* Fixed weather form change tests not checking species.
* Fixed Castform palettes after Lunos' PR
2023-06-30 09:58:07 +02:00
Alex
20099274d8
Fix Clear Amulet visual bug + Tests ( #3074 )
...
* Fix Clear Amulet visual bug + Tests
TODO Tests, additional tests + Triple Kick pp bug
* Wonder Guard message, switch instead of if, misalignments
2023-06-28 12:26:03 -04:00
Eduardo Quezada
f9bf91a2f0
Merge branch 'RHH/master' into RHH/upcoming
2023-06-26 18:09:53 -04:00
Eduardo Quezada D'Ottone
f3be4e1ac5
Fixed 2 test runner issues ( #3076 )
...
* Fixed 2 test runner issues
Thanks to MGriffin for the help
- Fixed non-battle tests omitting errors when failing.
- Fixed non-battle tests showing false positive memory leak errors due to the test failing for a different cause.
* Update test/test_runner.c
Co-authored-by: Martin Griffin <martinrgriffin@gmail.com>
2023-06-26 19:26:42 +01:00
hetoord
4a6f791482
Tests for Air Balloon ( #3071 )
...
* Add tests for HOLD_EFFECT_AIR_BALLOON
* Apply suggestions from code review
---------
Co-authored-by: Bart <bart@DESKTOP-IKF42MG.localdomain>
Co-authored-by: Eduardo Quezada D'Ottone <eduardo602002@gmail.com>
2023-06-26 08:37:48 -04:00
Martin Griffin
8995296db4
Use ; instead of {} for empty PLAYER/OPPONENT
2023-06-23 15:09:41 +01:00
Martin Griffin
1987bda497
Regularize whitespace in tests
2023-06-23 15:09:41 +01:00
Martin Griffin
b90ff23b80
I_HEALTH_RECOVERY in item_effect_restore_hp.c
2023-06-23 15:09:41 +01:00
Martin Griffin
0d930946a7
Parametrize item_effect_restore_hp.c
2023-06-23 15:09:41 +01:00
Martin Griffin
b357d5b1b8
Inline uses of macros in tests
2023-06-23 15:09:41 +01:00
Martin Griffin
0b43f5ab0e
Use 3-arg PASSES_RANDOMLY in Snow+Blizzard
2023-06-22 17:20:39 +01:00
Martin Griffin
c9a2c86d78
Simplify TO_DO_BATTLE_TEST
2023-06-22 15:19:35 +01:00
Martin Griffin
3e6f499517
TearDownBattle function
2023-06-22 15:08:15 +01:00
Eduardo Quezada
6342da3b58
Merge remote-tracking branch 'RHH_origin/master' into RHH/upcoming
2023-06-20 15:41:30 -04:00
Martin Griffin
97bc8e4689
At most one PASSES_RANDOMLY ( #3065 )
2023-06-20 14:46:02 -04:00
Eduardo Quezada D'Ottone
0d86ab0945
Gen. 9 Move Effects, 2nd batch ( #2870 )
2023-06-19 14:00:03 -04:00
LOuroboros
3a23207ef4
Applied Alex's corrections to Triple Arrows' tests
2023-06-13 06:29:39 -03:00
LOuroboros
5fbfc119da
'Triple Arrows [the move] makeS the foe'... etc
2023-06-13 05:51:32 -03:00
LOuroboros
313f522622
Merge branch 'upcoming' of https://github.com/rh-hideout/pokeemerald-expansion into gen_9_move_effects_batch2
2023-06-13 05:44:37 -03:00
AgustinGDLV
d795256142
remove debug
2023-06-03 11:56:01 -07:00
AgustinGDLV
53fa7e524c
allow for illegal abilities within tests
2023-06-03 11:32:54 -07:00
Martin Griffin
412f6f5352
Separate build directory for tests and TESTING define ( #3002 )
...
* Separate build directory for tests and TESTING define
* fixup! Separate build directory for tests and TESTING define
* fixup! Separate build directory for tests and TESTING define
* fixup! Separate build directory for tests and TESTING define
2023-05-31 09:38:37 -04:00
AgustinGDLV
5a8715e608
Merge branch 'upcoming' of https://github.com/rh-hideout/pokeemerald-expansion into castform_fix
2023-05-23 16:10:44 -07:00
AgustinGDLV
6a92caa9fb
removed old B_WEATHER_FORMS use, tests now have assumptions for config
2023-05-23 16:10:26 -07:00
AgustinGDLV
d22efc9a68
fixed UB with unassigned variable
2023-05-16 23:14:54 -07:00
AgustinGDLV
785b100693
Merge branch 'upcoming' of https://github.com/rh-hideout/pokeemerald-expansion into castform_fix
2023-05-16 16:29:38 -07:00
AgustinGDLV
0c182345bf
reworked weather form reversion + added more tests
2023-05-16 16:24:25 -07:00
Eduardo Quezada D'Ottone
2aca82300c
Merge branch 'upcoming' into mega_evo_issues
2023-05-14 22:33:01 -04:00
Salem
fe5e59c910
Merge branch 'upcoming' into RHH/content/gen9SnowWeather
2023-05-07 17:27:58 +02:00
Martin Griffin
e52e8ce7e1
Cleanup Compound Eyes tests
2023-05-07 07:50:41 +01:00
Martin Griffin
a2ca2aa7d9
Report errors in estimateCost
2023-05-07 07:50:41 +01:00
Martin Griffin
efab893c47
INVALID if results without PARAMETRIZE
2023-05-07 07:50:41 +01:00
Martin Griffin
29fa6ba574
INVALID if PASSES_RANDOMLY and results
2023-05-07 07:50:41 +01:00
Martin Griffin
9cd13cc520
Fix USE_ITEM explicit targets
2023-05-07 07:50:41 +01:00
Martin Griffin
e0bed6776b
INVALID if FINALLY without PARAMETRIZE
2023-05-07 07:50:41 +01:00
Eduardo Quezada D'Ottone
220b60f315
Detect memory leaks in tests ( #2698 )
2023-05-06 21:22:47 -04:00
Eduardo Quezada D'Ottone
c530eb2445
Add mirror herb ( #2873 )
2023-05-06 21:20:37 -04:00
Eduardo Quezada D'Ottone
42445512ad
Battle Item Tests + critical fixes + new test macro ( #2940 )
2023-05-06 20:43:32 -04:00
CallmeEchoo
7e7384ee02
tiny test doc fix
2023-05-06 19:12:49 +02:00
AgustinGDLV
a5f28afe42
fixed Forecast and Flower Gift
2023-05-04 17:04:54 -07:00
Salem
a877266400
Merge branch 'upcoming' into RHH/content/gen9SnowWeather
2023-05-02 21:19:01 +02:00
CallmeEchoo
c5a73f59a4
ad suggested changes
2023-05-02 21:17:14 +02:00
Alex
dd43d62a12
Fixes Triple Dive effect ( #2947 )
2023-05-02 15:06:21 -04:00
Shae
ae2d5f7d1e
Weather related Ability tests, fix for Leaf Guard not preventing Rest. ( #2957 )
2023-05-02 14:08:05 -04:00
CallmeEchoo
6758f6ebe7
add some snow related tests
2023-05-02 16:25:26 +02:00
ghoulslash
63c2e8a7d9
small mirror herb test synta fix
2023-05-01 18:02:21 -04:00
ghoulslash
3652e8261a
Apply suggestions from code review
...
Co-authored-by: Salem <65783283+CallmeEchoo@users.noreply.github.com>
2023-05-01 15:09:20 -06:00
ghoulslash
bdd0195fe0
add mirror herb tests
2023-05-01 17:00:37 -04:00
CallmeEchoo
15ce9eb71c
fix dire hit message mismatch
2023-05-01 18:53:06 +02:00
ghoulslash
8cce130643
Add Frostbite status ( #2942 )
2023-05-01 09:45:47 -04:00
CallmeEchoo
772c50408c
remove identifier strings
...
no longer needed since testing is done.
2023-04-30 23:22:51 +02:00
CallmeEchoo
47cd903fde
update dire hit failing comment
2023-04-30 18:02:41 +02:00
Alex
2d6282fece
Fix for Burn Up/Double Shock ( #2962 )
2023-04-30 10:46:21 -04:00
ghoulslash
62ca66bc6b
Refactoring Battle Form changes into the form change tables ( #2411 )
2023-04-30 08:41:54 -04:00
Alex
0cbb80dda7
Fix grassy terrain freezing the game ( #2959 )
2023-04-28 08:58:43 -04:00
Alex
bfcddff3ca
correct first test
2023-04-28 12:47:30 +02:00
Alex
a98da30ec7
frostbite tests
2023-04-28 12:38:34 +02:00
Bassoonian
c279830892
Merge branch 'upcoming' of https://github.com/rh-hideout/pokeemerald-expansion into formbattlechangecontribution
2023-04-27 10:50:32 +02:00
CallmeEchoo
a5d39155c6
add Max Mushroom test
2023-04-26 14:15:35 +02:00
CallmeEchoo
a2809acfd1
fix gChosenMovePos not being assigned correctly for battle items
...
thanks griffin <3
Co-Authored-By: Martin Griffin <838573+mrgriffin@users.noreply.github.com>
2023-04-26 01:02:47 +02:00
CallmeEchoo
9f2589e159
better usage of THEN over FINALLY
2023-04-25 23:06:07 +02:00
CallmeEchoo
d3e9a689fd
restore pp item tests
2023-04-25 21:26:19 +02:00
Salem
78c4d07b23
Add Berserk Gene Item ( #2893 )
...
Co-authored-by: Eduardo Quezada D'Ottone <eduardo602002@gmail.com>
2023-04-25 15:03:57 -04:00
CallmeEchoo
08ec873ef2
update MoveWithPP macro to use struct
2023-04-25 20:35:36 +02:00
CallmeEchoo
7fad0a2dbc
add MovesWithPP macro to allow for setting pps in tests
2023-04-25 19:45:35 +02:00
CallmeEchoo
60e048b83e
more robust status cure tests
2023-04-25 13:44:16 +02:00
CallmeEchoo
59666a1eb4
heal powder test
2023-04-24 22:36:58 +02:00
CallmeEchoo
f74a1b0766
fix strings after update
2023-04-24 22:26:56 +02:00
CallmeEchoo
c4497bc0a8
revive tests
2023-04-24 14:16:17 +02:00
CallmeEchoo
0b66cf01ec
remove no longer needed variable
2023-04-24 14:15:43 +02:00