Commit Graph

12835 Commits

Author SHA1 Message Date
CallmeEchoo
f74a1b0766 fix strings after update 2023-04-24 22:26:56 +02:00
CallmeEchoo
632668e8b2 Merge branch 'battleItemFixes' into battleItemTests 2023-04-24 21:13:12 +02:00
CallmeEchoo
503035010e Merge branch 'upcoming' into battleItemFixes 2023-04-24 21:11:34 +02:00
CallmeEchoo
e0cae31a13 Merge branch 'battleItemFixes' into battleItemTests 2023-04-24 21:05:58 +02:00
ghoulslash
868838a87d
Add thunder cage case to trap anim IDs (#2941) 2023-04-24 14:35:42 -04:00
ghoulslash
19ec7e2a1a
Added new conditions for the trainer slide-in system (#2713) 2023-04-24 08:53:08 -04:00
LOuroboros
a128192bfe Merge branch 'upcoming' of https://github.com/rh-hideout/pokeemerald-expansion into trainerSlideMsgUpdate 2023-04-24 09:36:09 -03:00
LOuroboros
330e85ba64 Updates
-Undeclared size for certain trainer slide-in variables at struct BattleStruct for reasons.
-Added a BattlerHPPercentage function to make HP threshold checks in ShouldDoTrainerSlide a bit more readable.
2023-04-24 09:34:11 -03: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
Bassoonian
a2bc21d902 Update battle_ai_util.h
Co-Authored-By: Salem <65783283+callmeechoo@users.noreply.github.com>
2023-04-24 14:05:35 +02:00
Bassoonian
f13c39d784 Thawing out for frostbite 2023-04-23 21:20:23 +02:00
Bassoonian
0b8d148c26 Let AI take Frostbite into account 2023-04-23 20:53:51 +02:00
Bassoonian
6b2a873071 Add comment in Ice Beam 2023-04-23 20:41:19 +02:00
Bassoonian
a020001a78 Battle Pike functionality 2023-04-23 20:33:28 +02:00
Bassoonian
13f6acf9a1 General mechanics 2023-04-23 19:20:48 +02:00
ghoulslash
25327b9031
Adds GetMovesArray in CanTargetFaintAi (#2936) 2023-04-23 08:50:06 -04:00
ghoulslash
909a20c27a
Reset battle vars and flags after player whites out (#2875) 2023-04-23 08:42:52 -04:00
ghoulslash
cf17324040
Fixed duplicate item strings in Bag/Party menus with battle items (#2915) 2023-04-23 08:32:38 -04:00
ghoulslash
594bc831d6
Adds define B_RESTORE_HELD_BATTLE_ITEMS following Gen9 (#2932) 2023-04-23 08:26:51 -04:00
ghoulslash
2332c6d5a0
Fixes status z-moves overwrting damage dealing z-moves (#2937) 2023-04-23 08:23:58 -04:00
Bassoonian
a561c6da6a Add config to Frostbite & allow it to be inflicted 2023-04-22 23:14:49 +02:00
Bassoonian
9c9a1fb831 Allow for healing with items 2023-04-22 19:18:10 +02:00
Bassoonian
f50bfb3770 Frostbite hurts at the end of the turn and halves SpA 2023-04-22 18:47:36 +02:00
Bassoonian
623e7c5f25 Add Frostbite status 2023-04-22 18:23:08 +02:00
CallmeEchoo
1b6bb3e9eb make the test fail intentionally 2023-04-22 17:53:37 +02:00
CallmeEchoo
18ac81174d Dire Hit test
currently known failing, bc of weird bug. see comment.
2023-04-22 17:41:19 +02:00
CallmeEchoo
727f1ac37c guard spec test 2023-04-22 15:04:40 +02:00
CallmeEchoo
42215c94e7 actually working restore hp tests 2023-04-22 02:39:46 +02:00
CallmeEchoo
929e4749da temporarily rename test string for easier test runs 2023-04-22 02:34:50 +02:00
CallmeEchoo
ff609f2761 healing items tests 2023-04-21 22:51:33 +02:00
CallmeEchoo
4bad450ecf Full Restore confusion test
PLS READ COMMENT THIS IS KNOWN_FAILING
2023-04-21 21:57:00 +02:00
CallmeEchoo
38476bd22c fix Full Restore not healing confusion 2023-04-21 21:37:02 +02:00
Alex
30204e9953 fix wrong z-move ususage 2023-04-21 20:59:54 +02:00
CallmeEchoo
cbac6d0e87 Full Restore test 2023-04-21 20:57:30 +02:00
CallmeEchoo
b4aee00432 replace pokemon with battler in string 2023-04-21 20:57:19 +02:00
CallmeEchoo
1cc28c89ef X item tests 2023-04-21 20:36:41 +02:00
Alex
4a08ede2c4 Add GetMovesArray in GetMovesArray 2023-04-21 20:13:30 +02:00
CallmeEchoo
301a12fe98 fix battleUsage for heal powder 2023-04-21 10:51:43 +02:00
CallmeEchoo
94cb569c47 local specialties tests 2023-04-21 10:25:58 +02:00
CallmeEchoo
e1e8277fba batch 1 2023-04-21 00:29:58 +02:00
Martin Griffin
c81a985b5b Fix USE_ITEM explicit targets 2023-04-20 21:45:16 +01:00
Martin Griffin
76f02774ea Detect memory leaks in tests
Can use KNOWN_LEAKING; to specify that a test is known to leak memory.

The location information is available in regular game builds. Thus it is
available for use in debugging leaks in-game too. In the future we
should consider replacing it with NULL if NDEBUG is defined. This is not
currently possible because the tests do not force NDEBUG to be
undefined.
2023-04-20 20:35:22 +01:00
DizzyEggg
ae80d545c5
Support for multi battles where Trainer has only one mon (#2670) 2023-04-20 10:12:11 -04:00
citrusbolt
6c7f5881e4
Add two EV-related configs (#2825) 2023-04-20 10:05:32 -04:00
Alex
3aec63b8cf new define to restore items after battle 2023-04-20 15:08:42 +02:00
Jaizu
115efe7ea5
fix dire hit and paralyze heal (#2931) 2023-04-20 10:00:59 +02:00
CallmeEchoo
216b7a4dfd fix dire hit and paralyze heal 2023-04-20 09:44:18 +02:00
psf
d3fed5639b
Added config to enable NEW_ROCKS_PARTICLE (#2929)
Co-authored-by: LOuroboros <lunosouroboros@gmail.com>
2023-04-19 18:54:57 -04:00
Bassoonian
52ce399240
Fix TM reusability shortcomings (#2930) 2023-04-19 11:01:00 -04:00