Commit Graph

104 Commits

Author SHA1 Message Date
Maruno17
2c071b224f Added more stats, added script variables, fixed AI thinking Wonder Guard provides total immunity, releasing a Pokémon puts its held item in the Bag, tweaked new map Compiler 2024-09-20 00:51:54 +01:00
Maruno17
509a414f37 More or less standardised separator comments in the code 2024-06-27 21:21:26 +01:00
Maruno17
195c34a7c8 Added SKIP_TITLE_SCREEN Setting, added const for type icon size, fixed some battle bugs and inconsistencies 2024-06-25 15:55:10 +01:00
Maruno17
8e9417c3b7 Snowstorm, forfeiting trainer battles, battle outcome values 2024-06-15 21:29:00 +01:00
Maruno17
22b33ca6c2 Coded some Gen 9 ability/item/move effects 2024-06-15 15:58:31 +01:00
Maruno17
04985eab5c Added "airborne" event name tag, can have Safari battles with no party, fixed Micle Berry, fixed data box not refreshing when Illusion is broken, added triggers for more EoR animations 2024-04-27 00:10:28 +01:00
Maruno17
e6fe242d4b AI changes, fixed input detection Conditional Branch, Fishious Rend is now a biting move 2024-02-01 23:50:09 +00:00
Maruno17
e0dcdef321 Fixed partner trainers not having Bag items, fixed Flame Burst AI bug, added AI for Wonder Guard + switching 2023-11-20 21:29:47 +00:00
Maruno17
b2c66b7b0c Fixed typo relating to AI switching, fixed Pokémon sent from the party to storage in battle not resetting their battle-only conditions, fixed player's sprite in Duel minigame not caring about the player's outfit, added missing move flags 2023-09-21 19:36:10 +01:00
Maruno17
efea53aa5a Fixed Pokédex showing genders for the wrong species, fixed AI always switching sleeping/frozen Pokémon, fixed class PngAnimatedBitmap animating slowly 2023-08-23 21:08:32 +01:00
Maruno17
0068695c54 Fixed incorrect AI code for considering Sticky Web when switching 2023-07-22 18:43:28 +01:00
Maruno17
fc95baf92c Now loads language files on startup if Settings::LANGUAGES has exactly 1 defined language, fixed instant text speed after a wait in a message, added battle rule "cannotSwitch" 2023-07-20 22:05:50 +01:00
Maruno17
a5734eaf46 Code tidying with Rubocop 2023-07-18 22:42:10 +01:00
Maruno17
2078f6b116 Ensured consistent PBS file layouts, fixed some script file numberings 2023-06-27 20:38:15 +01:00
Maruno17
17e8be9dca Fixed error in Powder's backfire message, fixed move disruption affecting recharge moves when it shouldn't, fixed error when Shell Side Arm has no targets, fixed AI not unregistering Mega Evolution if it won't do so after all 2023-06-19 23:55:49 +01:00
Maruno17
539bc0fb50 More AI bug fixes, more work on testing AI 2023-06-18 23:36:06 +01:00
Maruno17
b5e37248b9 Pokémon sent into battle now default to the Fight option, fixed bugs in Instruct, fixed some AI bugs, fixed parameter mixup for def pbMoveCanTarget?, renamed function to function_code everywhere, fixed black party Pokémon icons in storage, added some more AI testing code 2023-06-18 20:12:36 +01:00
Maruno17
a4d74a9663 Resolved all remaining TODO comments for AI (except testing), fixed effects of moves that can end the battle 2023-05-13 22:49:09 +01:00
Maruno17
7a8754c425 Waged war against TODO comments in the AI, some refactoring of AI 2023-05-07 23:12:39 +01:00
Maruno17
b7a40d0344 Renamed/rearranged some script files 2023-04-23 18:04:32 +01:00
Maruno17
ce549ab62a Rewrote AI item usage (inc. adding Revives), various fixes/changes to AI, removed Struggle from PBS files, some bug fixes 2023-04-23 17:52:39 +01:00
Maruno17
d277658965 More AI code for deciding when to switch 2023-04-17 19:08:42 +01:00
Maruno17
a22c5ea89c More work on the AI, refactored stat stage multipliers 2023-04-09 22:26:48 +01:00
Conmh
5d9cc71a99 Made def wants_status_problem?(new_status) consider a few more abilities (#203) 2023-03-30 22:19:40 +01:00
Maruno17
ad29a79e1c Tweaked AI threshold score, added "HPAware" skill flag, changed lots of AI scores 2023-03-30 21:11:27 +01:00
Maruno17
0bb0fb4a26 Rewrote various AI switching checks 2023-03-25 23:26:34 +00:00
Maruno17
e2648032c1 More AI function codes, tweaked AI score threshold, renumbered all PBEffects constants 2023-03-19 17:22:53 +00:00
Maruno17
e9a44377ce AI: Added checks for additional effect chance, Snatch/Magic Coat, more item ratings 2023-03-11 20:13:02 +00:00
Maruno17
ab58da4877 Made wild Ultra Beasts smarter too 2023-02-20 23:41:25 +00:00
Maruno17
d0c99aa512 Improved AI code for weather-causing moves, added AI getting flags from trainer types, added Legendary/Mythical flags to pokemon.txt, added Setting to make wild Legendary/Mythical Pokémon smarter 2023-02-20 23:33:09 +00:00
Maruno17
0e4053f837 Tackling of various AI "TODO" comments, a little tidying 2023-02-17 21:36:08 +00:00
Maruno17
81d069eef1 Refactored AI switching code, added "UsePokemonInOrder" skill flag 2023-02-14 16:40:52 +00:00
Maruno17
a8e024eb3e Some rearranging of AI script files/methods 2023-02-10 21:47:04 +00:00
Maruno17
01e98c8f97 Rewrote AI for move function codes for counters, protection removal, Wonder Room, Substitute. Fixed Counters working with damage absorbed by a substitute. 2023-02-08 22:19:45 +00:00
Maruno17
d0c39a3e89 Tweaks to item-consuming AI function codes 2023-02-05 19:09:01 +00:00
Conmh
5086f692df added Belch to consideration for some function codes and fixed a typo (#199)
* added Belch to consideration for some AI function codes and fixed a typo
2023-02-04 21:22:22 +00:00
Maruno17
7678a13e94 AI function code rewrites for protection moves 2023-02-04 21:14:35 +00:00
Maruno17
80bb967aad More AI function code rewrites 2023-01-31 22:12:42 +00:00
Maruno17
4da9a8c4e3 AI function code rewrites for base stat changes, electrifying moves and multi-turn moves 2023-01-29 23:24:07 +00:00
Maruno17
d8f38947f4 AI function code rewrites, added Shadow Sky's missing effects, fixed Shadow End's recoil damage 2023-01-22 21:21:19 +00:00
Maruno17
f7578002ea Rewrites of disabling move AI function codes, fixed various AI errors 2023-01-19 22:30:55 +00:00
Maruno17
2627d68782 Added more debug logging to AI, fixed some bugs in AI 2023-01-16 19:29:28 +00:00
Maruno17
98f16c2afa More AI function code rewrites, ensured all AI procs next an appropriate value 2023-01-14 23:51:39 +00:00
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