pokeemerald/test
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
..
ability_blaze.c Test Overgrow, Swarm and Torrent 2023-02-21 10:43:57 +00:00
ability_clear_body.c Fix Clear Amulet visual bug + Tests (#3074) 2023-06-28 12:26:03 -04:00
ability_cloud_nine.c [test] add some ability tests 2023-02-09 23:25:25 +01:00
ability_compound_eyes.c Cleanup Compound Eyes tests 2023-05-07 07:50:41 +01:00
ability_contrary.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
ability_cute_charm.c Convert move flags and bans into GCC bitfields (#2952) 2023-07-03 10:01:59 +02:00
ability_damp.c Convert move flags and bans into GCC bitfields (#2952) 2023-07-03 10:01:59 +02:00
ability_download.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
ability_drizzle.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
ability_dry_skin.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
ability_flame_body.c Convert move flags and bans into GCC bitfields (#2952) 2023-07-03 10:01:59 +02:00
ability_flower_gift.c Cleaned up remaining Castform hack stuff (#3063) 2023-06-30 09:58:07 +02:00
ability_forecast.c Cleaned up remaining Castform hack stuff (#3063) 2023-06-30 09:58:07 +02:00
ability_full_metal_body.c Fix Clear Amulet visual bug + Tests (#3074) 2023-06-28 12:26:03 -04:00
ability_hunger_switch.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
ability_hydration.c Weather related Ability tests, fix for Leaf Guard not preventing Rest. (#2957) 2023-05-02 14:08:05 -04:00
ability_hyper_cutter.c Fix Clear Amulet visual bug + Tests (#3074) 2023-06-28 12:26:03 -04:00
ability_ice_body.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
ability_immunity.c Test moves, items, and abilities in battle 2023-02-01 13:53:57 +00:00
ability_inner_focus.c Fix Clear Amulet visual bug + Tests (#3074) 2023-06-28 12:26:03 -04:00
ability_insomnia.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
ability_intimidate.c Use ; instead of {} for empty PLAYER/OPPONENT 2023-06-23 15:09:41 +01:00
ability_leaf_guard.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
ability_limber.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
ability_magic_bounce.c Convert move flags and bans into GCC bitfields (#2952) 2023-07-03 10:01:59 +02:00
ability_oblivious.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
ability_overgrow.c Test Overgrow, Swarm and Torrent 2023-02-21 10:43:57 +00:00
ability_own_tempo.c Fix Clear Amulet visual bug + Tests (#3074) 2023-06-28 12:26:03 -04:00
ability_pastel_veil.c Fix Clear Amulet visual bug + Tests (#3074) 2023-06-28 12:26:03 -04:00
ability_poison_point.c Convert move flags and bans into GCC bitfields (#2952) 2023-07-03 10:01:59 +02:00
ability_rain_dish.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
ability_sand_veil.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
ability_schooling.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
ability_scrappy.c Fix Clear Amulet visual bug + Tests (#3074) 2023-06-28 12:26:03 -04:00
ability_snow_cloak.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
ability_snow_warning.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
ability_speed_boost.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
ability_static.c Convert move flags and bans into GCC bitfields (#2952) 2023-07-03 10:01:59 +02:00
ability_stench.c Convert move flags and bans into GCC bitfields (#2952) 2023-07-03 10:01:59 +02:00
ability_sturdy.c Test moves, items, and abilities in battle 2023-02-01 13:53:57 +00:00
ability_swarm.c Test Overgrow, Swarm and Torrent 2023-02-21 10:43:57 +00:00
ability_torrent.c Test Overgrow, Swarm and Torrent 2023-02-21 10:43:57 +00:00
ability_volt_absorb.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
ability_water_absorb.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
ability_white_smoke.c Fix Clear Amulet visual bug + Tests (#3074) 2023-06-28 12:26:03 -04:00
ability_zen_mode.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
form_change.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
hold_effect_air_balloon.c Tests for Air Balloon (#3071) 2023-06-26 08:37:48 -04:00
hold_effect_berserk_gene.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
hold_effect_clear_amulet.c Fix Clear Amulet visual bug + Tests (#3074) 2023-06-28 12:26:03 -04:00
hold_effect_eject_button.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
hold_effect_leftovers.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
hold_effect_mirror_herb.c INVALID if results without PARAMETRIZE 2023-05-07 07:50:41 +01:00
hold_effect_red_card.c Allow tests to override specific RNG calls 2023-03-15 13:39:17 +00:00
item_effect_cure_status.c remove identifier strings 2023-04-30 23:22:51 +02:00
item_effect_heal_and_cure_status.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
item_effect_increase_stat.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
item_effect_restore_hp.c I_HEALTH_RECOVERY in item_effect_restore_hp.c 2023-06-23 15:09:41 +01:00
item_effect_restore_pp.c remove identifier strings 2023-04-30 23:22:51 +02:00
item_effect_revive.c Inline uses of macros in tests 2023-06-23 15:09:41 +01:00
item_effect_set_focus_energy.c fix dire hit message mismatch 2023-05-01 18:53:06 +02:00
item_effect_set_mist.c guard spec test 2023-04-22 15:04:40 +02:00
mega_evolution.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
move_effect_absorb.c Test moves, items, and abilities in battle 2023-02-01 13:53:57 +00:00
move_effect_accuracy_down.c Allow tests to override specific RNG calls 2023-03-15 13:39:17 +00:00
move_effect_after_you.c Fix After You for gen8 (#2646) 2023-02-16 20:59:36 +00:00
move_effect_assist.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
move_effect_attack_down.c Fix battle message strings for stats (#2927) 2023-04-18 22:02:51 +01:00
move_effect_attack_up_user_ally.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
move_effect_attack_up.c Fix battle message strings for stats (#2927) 2023-04-18 22:02:51 +01:00
move_effect_axe_kick.c Gen9 move tests batch2 2023-03-29 13:01:20 +02:00
move_effect_barb_barrage.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
move_effect_beak_blast.c Convert move flags and bans into GCC bitfields (#2952) 2023-07-03 10:01:59 +02:00
move_effect_bide.c INVALID if FINALLY without PARAMETRIZE 2023-05-07 07:50:41 +01:00
move_effect_burn_hit.c Test moves, items, and abilities in battle 2023-02-01 13:53:57 +00:00
move_effect_burn_up.c Fix for Burn Up/Double Shock (#2962) 2023-04-30 10:46:21 -04:00
move_effect_defense_down.c Fix battle message strings for stats (#2927) 2023-04-18 22:02:51 +01:00
move_effect_defense_up.c Fix battle message strings for stats (#2927) 2023-04-18 22:02:51 +01:00
move_effect_defog.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
move_effect_dire_claw.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
move_effect_double_shock.c Fix for Burn Up/Double Shock (#2962) 2023-04-30 10:46:21 -04:00
move_effect_dream_eater.c Test moves, items, and abilities in battle 2023-02-01 13:53:57 +00:00
move_effect_encore.c Test moves, items, and abilities in battle 2023-02-01 13:53:57 +00:00
move_effect_evasion_up.c Allow tests to override specific RNG calls 2023-03-15 13:39:17 +00:00
move_effect_explosion.c Fix Explosion + Galvanize + Volt Absorb and Mind Blown (#2688) 2023-02-21 22:50:29 +00:00
move_effect_focus_punch.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
move_effect_freeze_hit.c Test moves, items, and abilities in battle 2023-02-01 13:53:57 +00:00
move_effect_haze.c Test moves, items, and abilities in battle 2023-02-01 13:53:57 +00:00
move_effect_healing_wish.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
move_effect_hex.c Test moves, items, and abilities in battle 2023-02-01 13:53:57 +00:00
move_effect_hit_escape.c Tests work with new pokemon disabled 2023-03-09 09:49:50 +01:00
move_effect_hit_set_entry_hazardss.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
move_effect_hit_switch_target.c Allow tests to override specific RNG calls 2023-03-15 13:39:17 +00:00
move_effect_infernal_parade.c Gen9 move tests batch2 2023-03-29 13:01:20 +02:00
move_effect_mind_blown.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
move_effect_paralyze_hit.c Test moves, items, and abilities in battle 2023-02-01 13:53:57 +00:00
move_effect_poison_hit.c Test moves, items, and abilities in battle 2023-02-01 13:53:57 +00:00
move_effect_rampage.c Allow tests to override specific RNG calls 2023-03-15 13:39:17 +00:00
move_effect_recoil_if_miss.c Convert move flags and bans into GCC bitfields (#2952) 2023-07-03 10:01:59 +02:00
move_effect_reflect.c Test moves, items, and abilities in battle 2023-02-01 13:53:57 +00:00
move_effect_revival_blessing.c Inline uses of macros in tests 2023-06-23 15:09:41 +01:00
move_effect_roar.c Allow tests to override specific RNG calls 2023-03-15 13:39:17 +00:00
move_effect_shell_trap.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
move_effect_sleep.c Allow tests to override specific RNG calls 2023-03-15 13:39:17 +00:00
move_effect_special_attack_down.c Fix battle message strings for stats (#2927) 2023-04-18 22:02:51 +01:00
move_effect_special_attack_up_3.c Fix battle message strings for stats (#2927) 2023-04-18 22:02:51 +01:00
move_effect_spikes.c tests for dire claw ceaseless edge barb barrage 2023-03-23 12:29:04 +01:00
move_effect_stockpile.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
move_effect_tailwind.c Test moves, items, and abilities in battle 2023-02-01 13:53:57 +00:00
move_effect_take_heart.c Gen9 move tests batch2 2023-03-29 13:01:20 +02:00
move_effect_teatime.c Teatime tests and fixes (#3096) 2023-07-03 09:54:43 +02:00
move_effect_torment.c Test moves, items, and abilities in battle 2023-02-01 13:53:57 +00:00
move_effect_toxic_spikes.c Test moves, items, and abilities in battle 2023-02-01 13:53:57 +00:00
move_effect_toxic.c Test moves, items, and abilities in battle 2023-02-01 13:53:57 +00:00
move_effect_tri_attack.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
move_effect_triple_arrows.c Convert move flags and bans into GCC bitfields (#2952) 2023-07-03 10:01:59 +02:00
move_effect_triple_kick.c INVALID if FINALLY without PARAMETRIZE 2023-05-07 07:50:41 +01:00
move_effect_venoshock.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
move_flag_three_strikes.c Convert move flags and bans into GCC bitfields (#2952) 2023-07-03 10:01:59 +02:00
move.c Convert move flags and bans into GCC bitfields (#2952) 2023-07-03 10:01:59 +02:00
powder_moves.c Convert move flags and bans into GCC bitfields (#2952) 2023-07-03 10:01:59 +02:00
random.c RandomElement for structured RNG 2023-03-27 18:50:18 +01:00
status1.c Convert move flags and bans into GCC bitfields (#2952) 2023-07-03 10:01:59 +02:00
status_frostbite.c Regularize whitespace in tests 2023-06-23 15:09:41 +01:00
terrain_electric.c INVALID if FINALLY without PARAMETRIZE 2023-05-07 07:50:41 +01:00
terrain_grassy.c INVALID if FINALLY without PARAMETRIZE 2023-05-07 07:50:41 +01:00
terrain_misty.c INVALID if FINALLY without PARAMETRIZE 2023-05-07 07:50:41 +01:00
terrain_psychic.c INVALID if results without PARAMETRIZE 2023-05-07 07:50:41 +01:00
test_battle.h Convert move flags and bans into GCC bitfields (#2952) 2023-07-03 10:01:59 +02:00
test_runner_args.c Test moves, items, and abilities in battle 2023-02-01 13:53:57 +00:00
test_runner_battle.c TearDownBattle function 2023-06-22 15:08:15 +01:00
test_runner.c Fixed 2 test runner issues (#3076) 2023-06-26 19:26:42 +01:00
test.h Simplify TO_DO_BATTLE_TEST 2023-06-22 15:19:35 +01:00
trainer_control.c initial commit 2023-04-06 20:56:44 +02:00
weather_snow.c Inline uses of macros in tests 2023-06-23 15:09:41 +01:00