Commit Graph

1077 Commits

Author SHA1 Message Date
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
3a4b01e2dc Fixed default terrain not being set properly sometimes 2022-12-10 22:04:24 +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
d654f3edbf Added BP shop and prices to various items 2022-12-01 22:43:47 +00:00
Maruno17
b13c2ed2ed Fixed and generalised PBS editors 2022-11-28 20:28:48 +00:00
Maruno17
7c39a56a43 Made tutored moves learnable by Pokémon if they can get the move via level/egg move, followers won't follow the player if they already have a move route, added console warning if a different version of mkxp-z is detected 2022-11-27 22:38:47 +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
427cc45629 Generalised compiler and writer methods for trainers.txt 2022-11-23 22:44:15 +00:00
Maruno17
91efb4684b Fixed file-choosing methods not removing file extensions, fixed typo in Puddle envirnment registration 2022-11-23 22:43:11 +00:00
Maruno17
bd04112122 Allowed multiple PBS files per data type, removed hardcoded lists of PBS files/.dat files/GameData classes that need data loading 2022-11-22 22:24:30 +00:00
Maruno17
4d147a7bf7 Turned Town Map PBS data into a GameData class 2022-11-20 21:44:53 +00:00
Maruno17
f33eb4d896 Added PBS schema character ^ for repeated lines, more refactoring of PBS compilers/writers 2022-11-20 20:15:04 +00:00
Maruno17
1ff7307868 Rewrote and standardised several PBS writer methods 2022-11-19 23:03:42 +00:00
Maruno17
5d439de87d Added compiler schema letter "m" which makes the value a symbol, refactored many PBS file compilers, removed support for old PBS formats/properties 2022-11-16 22:03:12 +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
55563463d8 Resolving clashing code from merge 2022-11-05 21:10:05 +00:00
Maruno17
3e73d1c1f9 Merge branch 'dev' into ai 2022-11-05 20:42:12 +00:00
Maruno17
bbe654028c Revised changes in previous commit about Pokémon generation for non-standard battles 2022-11-05 19:29:06 +00:00
Maruno17
5dd8c31ff0 Fixed only one IV being inherited due to a held Power item if both parents are holding different Power items 2022-11-05 18:46:22 +00:00
Maruno17
4f42eca3ee Fixed Safari/Bug Contest/roaming battles generating Pokémon while ignoring that Pokémon's defined form 2022-11-05 18:08:04 +00:00
Maruno17
096957bc20 Fixed Liquid Ooze not applying if the bearer faints, fixed two-turn moves being used in one turn charging up after failing instead of before 2022-11-05 17:48:01 +00:00
Maruno17
c984fda1cf Standardised compiling-based console messages 2022-11-05 16:18: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
6f7a714d48 Fixed error in battle fight menu when not using graphics for it 2022-10-26 18:39:32 +01:00
Maruno17
e12fd08eb1 Some more rewrites of AI move score calculations (mainly item-related moves) 2022-10-23 18:24:18 +01:00
Maruno17
5384a7afe4 Fixed a scrolled screen snapping back to centre on the player as soon as they move 2022-10-23 15:37:45 +01:00
Maruno17
2d411cf152 Fixed error in previous commit 2022-10-19 20:01:17 +01:00
Maruno17
64f975072b Fixed BGM always restarting when changing maps if the new map's BGM has a night version 2022-10-19 19:12:39 +01:00
Maruno17
5a49bbbc94 Renamed function code UseUserBaseDefenseInsteadOfUserBaseAttack, more AI function code changes 2022-10-17 21:13:31 +01:00
Maruno17
9eb90b784e addIf now need an identifier symbol, fixed clas between using Future Sight and being locked into a move, fixed IV inheritance 2022-10-16 22:53:41 +01:00
Maruno17
9ad45d6b07 Fixed bug caused by strikethrough/underline change, fixed fixed damage moves showing effectiveness messages 2022-10-16 15:52:02 +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
b41a46aacf Fixed roaming Pokémon not remembering whether they have been caught 2022-10-08 18:06:37 +01:00
FL
de07341337 Fixed action button crashing roaming debug menu (#192) 2022-10-08 17:51:13 +01:00
Maruno17
882f4c96f8 Bug fixes: Shadow Pokémon still knowing some original moves when they shouldn't, Interpreter not resetting if saved in the middle of an event and then starting a new game, priority 1 tiles appearing below the player at larger screen sizes, ability inheritance when breeding 2022-10-08 17:46:29 +01:00
Maruno17
9695094b02 Merge branch 'dev' into ai 2022-10-04 22:56:27 +01:00
Maruno17
fa2758edaa Fixed Pastel Veil not providing poison immunity to allies, and not healing the bearer if it becomes poisoned anyway 2022-10-04 22:10:58 +01:00
Maruno17
2897476d1b Rewrote AI calculations for moves that inflict a status problem 2022-10-04 21:25:58 +01:00
Maruno17
4ddf689887 Improved Debug running options in battle, allowed Debug running from battle by choosing Call, removed support for save files in the old save location 2022-10-02 16:01:35 +01:00
Maruno17
88dc215417 Bug fixes: interacting with a follower in the same tile as the player; underline/strikethrough line mispositionings and added shadows to those lines; Toxic/Flame Orb replacing existing status problems; grown berry plants looking like sprouts; pbShowCommandsWithHelp not deactivating message windows it creates 2022-10-02 14:59:59 +01:00
Maruno17
1ccbafb499 Rewrote the random dungeon generator code 2022-10-01 18:06:15 +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