Bassoonian
de6947a6e5
Fix spacing for conditions ( #9369 )
2026-02-27 15:10:52 +01:00
AlexOn1ine
675de8cbea
21/02/26 Master to upcoming merge
2026-02-21 12:55:21 +01:00
Eduardo Quezada
32d1777b7a
Use direct config names instead of enum names ( #8824 )
2026-02-06 11:57:33 +01:00
Eduardo Quezada
4a4a72f9fb
Added enum BattlerId type checks ( #8954 )
2026-01-28 09:32:03 +01:00
Alex
6c05a08750
Refactor OHKO Moves ( #8916 )
2026-01-21 11:55:30 +01:00
FosterProgramming
8d059cf5c4
Change randomweightedarray to use u16 weights instead of u8 ( #8934 )
2026-01-18 10:24:49 +01:00
Bassoonian
36fcd9c6b2
Adds `Item` enum ( #8897 )
2026-01-17 02:26:09 -08:00
grintoul
8c4fa6e71d
Refactor multi test system trainer party allocation and adds enum BattleTrainer ( #8908 )
2026-01-14 23:33:24 +01:00
FosterProgramming
8ad0451914
Capture odds refactor and new catch rate modifiers ( #8682 )
...
Co-authored-by: kittenchilly <mario.pikmin.zelda@gmail.com>
2026-01-11 09:52:38 +01:00
FosterProgramming
1dcfe54b59
Refactor mon generation ( #8204 )
...
Co-authored-by: psf <77138753+pkmnsnfrn@users.noreply.github.com>
2026-01-04 20:01:59 -08:00
Bassoonian
66df755e9a
Extra enum typechecking ( #8786 )
2026-01-04 12:48:21 +01:00
AlexOn1ine
a1948b7c40
01/01/26 Master to upcoming merge
2026-01-01 10:24:19 +01:00
grintoul
a71fc91484
Trainer slides for multiple trainers and multibattles ( #7588 )
...
Co-authored-by: hedara90 <90hedara@gmail.com>
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
2025-12-30 20:28:53 +00:00
grintoul
6e9f8998b4
Adds EXPECT_FAIL macro to test system to allow for testing of conditions correctly triggering failures ( #8553 )
2025-12-28 11:21:02 +01:00
grintoul
d55d2b6dfc
Corrects test system Forced Ability handing for multi battles ( #8611 )
2025-12-22 10:11:21 +01:00
Hedara
e4ae9317c9
Merge branch 'master' into master-to-upcoming
...
Manual fixes to Lunar Dance handling
Conflicts:
include/battle_util.h
src/battle_ai_main.c
src/battle_ai_switch.c
src/battle_ai_util.c
src/battle_end_turn.c
src/battle_script_commands.c
src/battle_util.c
test/battle/ai/ai_doubles.c
test/battle/move_effect/snatch.c
test/battle/spread_moves.c
2025-12-19 15:31:37 +01:00
Martin Griffin
cc8c8bd668
assertf: Formatted asserts
...
assertf's behavior depends on the build:
- In release builds it executes recovery code.
- In debug builds it shows a crash screen. When start is pressed it
resumes and executes the recovery code.
- In test builds it fails the test with an INVALID result.
2025-12-17 17:14:34 +00:00
hedara90
ec1a283b1b
Add SUB_HIT check to tests ( #8413 )
...
Co-authored-by: Hedara <hedara90@gmail.com>
2025-12-16 19:19:34 +01:00
AlexOn1ine
23cefec579
08/12/25 master to upcoming merge
2025-12-08 18:15:19 +01:00
grintoul
b58787f966
Adds TIE_BREAK_SCORE and TIE_BREAK_TARGET to test system to allow for forced or random move and target selection ( #8398 )
2025-12-07 16:58:10 -05:00
Eduardo Quezada
115694675f
Renamed Config Test system to more general names ( #7283 )
2025-12-02 11:26:44 -05:00
Eduardo Quezada
0dd73131d0
Test type enum indentation
2025-11-17 09:15:45 -03:00
FosterProgramming
44d4e0c1de
Refactor random functions to be runner specific ( #7816 )
2025-11-11 20:48:41 +00:00
grintoul1
c230e54678
Master to Upcoming merge 20251107
2025-11-07 22:45:57 +00:00
FosterProgramming
2467584af5
Prevent EXPECT functions from casting negative numbers into unsigned ( #7866 )
2025-11-07 18:32:15 +01:00
FosterProgramming
fd07daf0d8
Fix nature power string and add support for evnvironment in tests ( #8068 )
...
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
2025-10-28 19:23:16 +01:00
Bassoonian
f7cbe4853b
Add type enum ( #8054 )
2025-10-27 16:41:22 +00:00
grintoul
a32da780c4
Corrects ONE_VS_TWO_BATTLE_TEST to use BATTLE_TEST_ARGS_ONE_VS_TWO ( #8061 )
2025-10-27 15:24:33 +00:00
grintoul
95c2a6e2b6
Multibattle testing system ( #7257 )
...
Co-authored-by: hedara90 <90hedara@gmail.com>
Co-authored-by: Martin Griffin <martinrgriffin@gmail.com>
2025-10-24 15:00:23 +02:00
Bassoonian
fbd702e3a4
Some more documentation and cleanup ( #8020 )
2025-10-23 20:14:38 +02:00
khbsd
e385c7f59f
feat: change defines in constants/abilities.h to an enum ( #7006 )
...
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
2025-09-29 21:35:09 +02:00
AlexOn1ine
a4470cac2c
Master to upcoming merge
2025-09-27 22:42:53 +02:00
FosterProgramming
1d11a2cb0a
Improve how test involving ball throw work ( #7774 )
2025-09-22 20:44:12 +02:00
FosterProgramming
db7e062fe1
Add some missing move animations to the move animation tests ( #7507 )
2025-09-21 23:27:05 +02:00
Martin Griffin
97376a5b5a
Support gimmicks in AI tests
2025-09-05 07:31:13 +01:00
Martin Griffin
7b5844762d
make check TESTS="..." support for filenames and infix matches ( #7536 )
2025-08-13 10:39:55 +02:00
Eduardo Quezada
a9d5c2cd28
Updated Dream Eater/Liquid Ooze's interaction to Gen 5 standards ( #7528 )
2025-08-11 16:06:58 +02:00
Martin Griffin
de6c9c6176
Hacky support for enums in C asm statements ( #7494 )
2025-08-11 10:06:23 +02:00
AlexOn1ine
68db4c5a77
12/07/25 master to upcoming merge
2025-07-12 11:55:06 +02:00
Martin Griffin
f4cc802656
Fix crashing tests looping ( #7299 )
2025-07-09 09:02:55 +02:00
AlexOn1ine
aabb632894
Master to upcoming merge, 20/06/25
2025-06-20 17:09:58 +02:00
hedara90
b2a0107a68
Test runner fixes ( #7100 )
...
Co-authored-by: Hedara <hedara90@gmail.com>
2025-06-15 12:02:29 +02:00
Bassoonian
1a6ed20713
Add dedicated getter functions for Pokémon types and abilities ( #7043 )
2025-06-03 22:05:22 +02:00
Pawkkie
3f5335c4ba
Refactor AI flags to u64 ( #6753 )
...
Co-authored-by: DizzyEggg
2025-05-04 17:16:34 +02:00
Eduardo Quezada
d2a4b5ef84
Changed Tackle for Scratch in tests ( #6730 )
2025-04-30 17:18:52 -04:00
Eduardo Quezada
f6a86a65ef
Merge branch '_RHH/master' into _RHH/upcoming
2025-01-19 10:32:57 -03:00
Bassoonian
cc9a4d34c6
Fix tests not building
2025-01-18 13:07:01 +01:00
Martin Griffin
bb781f21a1
Arbitrary trainer scripts + map script/trigger softlock prevention ( #5033 )
...
Script_RunImmediatelyUntilEffect runs a script until either a specified
effect may occur or it reaches an end.
All existing script commands and natives, and some specials, call
Script_RequestEffects which allows us to analyze them.
Any downstream script commands/natives/specials will be statically known
not to call Script_RequestEffects and treated as if they have all
effects. Manually tagging them with requests_effects=1 and calling
Script_RequestEffects will make them analyzable.
Using these, we're able to execute scripts until they either exit with
no effect, or would possibly have an effect. This allows us to:
1. Not run on frame map scripts or triggers if they would have no
effect.
2. Immediately run triggers if they only affect flags/vars. This removes
the lag frames when biking into the Cycling Road, for example.
3. Migrate on load/on transition/on resume/on return to field/on dive
warp scripts onto the global script context if they would block
(approximated via SCREFF_HARDWARE).
4. Support arbitrary control flow in trainer scripts. The trainer does
not see the player if the script has no effect, and the trainer will
use whichever trainerbattle command is branched to.
5. Support arbitrary scripts in trainer scripts. cant_see and
cant_see_if_* commands have been introduced so that scripts are able
to do something when the player interacts with the trainer even if
that trainer wouldn't see them.
2025-01-08 10:27:00 +00:00
Eduardo Quezada
9669a0554d
Encapsulate move data ( #5852 )
2025-01-01 20:34:33 +01:00
Eduardo Quezada
004efd1e5a
Merge branch '_RHH/master' into _RHH/upcoming
2024-12-31 18:38:03 -03:00