Maruno17
84bdd1f60b
AI function code rewrites
2023-01-12 23:08:26 +00:00
Maruno17
4585533a4a
Fixes relating to added support of more Pokémon types
2022-12-31 17:43:42 +00:00
Maruno17
05b954e262
Merge branch 'dev' into ai
2022-12-31 17:28:56 +00:00
Maruno17
3fe324d0da
Generalised a species' types to allow any number of types
2022-12-31 17:24:33 +00:00
Maruno17
dd7cd414f0
Yet more AI function code rewrites
2022-12-31 15:26:41 +00:00
Maruno17
1258e4b9c9
More AI function code rewrites themed around stat changes
2022-12-25 00:39:25 +00:00
Maruno17
f33184d413
Generalised AI code for scoring stat changes
2022-12-18 20:51:16 +00:00
Maruno17
7ace4c5289
AI rewrites of ability-changing function codes, OHKO codes and binding codes
2022-12-10 21:59:44 +00:00
Maruno17
539a47671d
Some more AI function code rewrites
2022-12-04 19:09:46 +00:00
Maruno17
c53a52564b
More AI rewrites of various function codes, made move score threshold multiplier depend on trainer skill
2022-11-26 22:31:28 +00:00
Maruno17
6f2e72eed6
Rewrites of AI for airborne-related moves
2022-11-09 22:21:32 +00:00
Maruno17
8f014135e5
More rewrites of AI for some function codes
2022-11-08 22:54:16 +00:00
Maruno17
b31400b9ae
First shot at rewriting AI for moves that lower the target's stat(s)
2022-11-06 16:53:24 +00:00
Maruno17
3408b038cf
Split AI move handlers into general ones and ones per target, rearranged some main move-scoring code
2022-10-30 15:25:46 +00:00
Maruno17
e12fd08eb1
Some more rewrites of AI move score calculations (mainly item-related moves)
2022-10-23 18:24:18 +01:00
Maruno17
5a49bbbc94
Renamed function code UseUserBaseDefenseInsteadOfUserBaseAttack, more AI function code changes
2022-10-17 21:13:31 +01:00
Maruno17
e8703e8b05
More error fixes in AI
2022-10-16 14:53:49 +01:00
Maruno17
43290c39a2
Errors in the AI no longer cause it to do nothing
2022-10-16 14:52:27 +01:00
Maruno17
58a624060a
Rewrote AI calculations for moves that cause confusion, flinching and infatuation
2022-10-09 18:37:19 +01:00
Maruno17
2897476d1b
Rewrote AI calculations for moves that inflict a status problem
2022-10-04 21:25:58 +01:00
Maruno17
63ec037481
AI changes for some multi-hit/multi-turn moves, improved AI's damage calculation
2022-09-18 18:16:08 +01:00
Maruno17
dcba641a86
Fixed typos in def pbCalcTypeModPokemon, fixed party screen navigation errors when there are no Pokémon, advanced battle Debug functions now trigger modifiers, can now always change a Pokémon's form to 0
2022-09-10 16:33:11 +01:00
Maruno17
eb8fc1d298
More AI checks and fixes
2022-09-10 15:26:38 +01:00
Maruno17
eecb7a1453
Added script to make two random AI trainers battle, tweaked battle messages when logged, fixed typos
2022-09-06 22:57:51 +01:00
Maruno17
b8c61a6038
Rewrote AI calculations for move effects that raise the user's stats, fixed Sea of Fire effect lasting forever
2022-09-04 17:46:59 +01:00
Maruno17
db215a71d6
Fixed AI accuracy calculation for OHKO moves, reviewed more AI function code score modifiers
2022-09-02 21:36:31 +01:00
Maruno17
d870b027db
More misc AI move effect calculation rewrites
2022-09-02 00:24:56 +01:00
Maruno17
429068f3cb
More AI move effect calculation rewrites
2022-08-31 19:02:54 +01:00
Maruno17
ecb5e2ffd1
Rewrote AI calculations for remaining healing move effects
2022-08-31 16:23:24 +01:00
Maruno17
92c0fe5c90
Rewrote AI calculations for move effects relating to healing the user, added calculation to add predicted damage to a move's score
2022-08-30 22:13:23 +01:00
Maruno17
931a47c5fe
Rewrote AI calculations for move effects relating to the user fainting
2022-08-30 18:33:31 +01:00
Maruno17
8275d40193
Added Mold Breaker consideration to AI, updated some AI calculations, fixed non-ignorable abilities in damage calculation actually being ignorable
2022-08-29 22:39:06 +01:00
Maruno17
22dce593e8
Split AI general move score modifiers into handlers
2022-08-29 15:59:22 +01:00
Maruno17
9ed2f3e920
Misc tidying and commenting of AI code
2022-08-28 17:59:02 +01:00
Maruno17
fbbddc8c2b
Changed AI's random move choice after scores are calculated
2022-08-27 20:37:05 +01:00
Maruno17
265897f9e1
Made AI function code-specific MoveFailureCheck handlers
2022-08-27 20:11:01 +01:00
Maruno17
b6c84fa278
Added AI handlers that calculate a move's base power, moved AI damage calculation
2022-08-25 19:16:21 +01:00
Maruno17
cfb870c944
Added AI objects for trainers, battlers and the move being assessed, logging battle messages now also echoes them to the console
2022-08-22 21:37:33 +01:00
Maruno17
b094a2fd8e
Reapplied various AI changes from previous atempt at improving the AI, split function code move score changes into handlers
2022-08-21 15:59:49 +01:00
Maruno17
b8e9251fb4
More splitting of AI_Move_EffectScores
2022-06-15 19:23:52 +01:00
Maruno17
62b964adfa
Split script section AI_Move_EffectScores in two and rearranged it
2022-06-15 19:15:03 +01:00
Keyacom
2ba2893869
Fixed Grav Apple having the incorrect damage boost ( #179 )
...
* Fixed Grav Apple having the incorrect damage boost
In the official games, Grav Apple has a damage boost of 1.5x under Gravity, not 2x. This has been fixed.
* Updated move effect class name
* Apply updated function code
* Update moves.txt
2022-05-29 23:01:34 +01:00
Maruno17
5fb8218098
Fixed type-boosting Gems being consumed when they shouldn't, fixed compiler error relating to replacing battle-starting methods
2022-05-19 13:42:21 +01:00
Maruno17
3a4339c658
AI now checks for immunities to status moves
2022-03-28 18:04:45 +01:00
Maruno17
81578ac42c
AI now doesn't use Full Restores just to heal small amounts of HP
2022-03-26 15:12:32 +00:00
Maruno17
f68e699cc9
More Rubocop changes
2022-02-13 00:57:54 +00:00
Maruno17
cca5989746
Fixes to previous commit
2022-02-10 08:33:45 +00:00
Maruno17
b550ad9c07
Fixed AI scores calculated for some moves not being added up properly
2022-01-13 23:28:00 +00:00
Maruno17
aa643a6049
More Rubocop
2021-12-27 00:26:45 +00:00
Maruno17
132a16950d
Yet more Rubocopping
2021-12-23 00:27:17 +00:00