Commit Graph
100 Commits
Author SHA1 Message Date
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
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
Maruno17 8c31ad994d Misc tidying 2022-09-11 23:53:25 +01:00
Maruno17 2962944cab Redesigned phone.txt (old format isn't supported), added support for contact-specific phone messages, added more phone message components 2022-09-11 19:07:47 +01:00
Maruno17 4fcd19e247 Added sorting to phone, both moving individual contacts and sorting all at once 2022-09-10 23:20:40 +01:00
Maruno17 25a8d727ab Rewrote phone UI code, added "CommonEvent" trainer comment for that phone contact to run instead of default phone messages, added phone signal icon to phone 2022-09-10 19:41:12 +01:00
Maruno17 662d023ff5 Improved console messages when compiling didn't happen, egg crack graphics are now found in the same way as egg graphics 2022-09-10 19:38:21 +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 9bd31300ad AI-only battles shouldn't be usable before loading a game 2022-09-06 22:59:36 +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 4075204038 Merge branch 'dev' into ai 2022-08-19 21:41:09 +01:00
Maruno17 18ffd4fb94 Fix to colour-stringifying methods 2022-08-19 21:40:46 +01:00
Maruno17 963d2a515b Merge branch 'dev' into ai 2022-08-19 21:37:14 +01:00
Maruno17 ae91811537 Created folder Graphics/UI, renamed some UI graphics 2022-08-14 01:07:06 +01:00
Maruno17 b1cde2db42 Refactored some code relating to colours, trivially simplified some calculations 2022-08-13 23:59:24 +01:00
Maruno17 aa9b1a9e23 Refactored phone/rematches code, added Phone.rematches_enabled/Phone.rematch_variant/map metadata flag "NoPhoneSignal", changed event layout, trainer contacts can use Common Events for their calls, etc. 2022-08-13 16:52:42 +01:00
Maruno17 c79b970d6b Fixed error when shifting Pokémon at the end of a battle round, fixed Giratina's form code crashing if the current map doesn't have metadata, fixed item sell prices being halved twice 2022-08-13 16:29:48 +01:00
Maruno17 1d2f13f9c5 Entered dev version for v21 2022-08-10 21:16:17 +01:00
Maruno17 5ff0c04eed Added Marin's AI as a reference 2022-08-10 18:38:20 +01:00
Maruno17 eeeb9b3494 Added old AI references/rewrite attempt as references 2022-08-09 19:35:45 +01:00
Maruno17 a20f378b33 Minor tweaks 2022-08-09 19:30:27 +01:00
Maruno17 b2ddedbce1 Reduced the work done when updating the sprites of events without a graphic 2022-08-07 16:29:29 +01:00
Maruno17 6542d505a6 The player now dismounts the Bicycle after various map transfers 2022-08-07 16:07:37 +01:00
Maruno17 cca414a826 Bug Contest maps can now be defined using a map metadata flag 2022-08-07 15:00:40 +01:00
Maruno17 f083cddca5 def pbPhoneRegisterBattle now returns a boolean, added vowel checks to some messages in berry planting 2022-08-07 14:43:40 +01:00
Maruno17 b423f34da6 Returning to the title screen now fades out the overworld first 2022-08-07 14:39:10 +01:00
Maruno17 f22707f2f1 Fixed being unable to set the player's movement speed during a move route 2022-08-07 14:27:39 +01:00
Maruno17 3c748c9d68 Fixed play time carrying over to new games, fixed Eerie Spell thinking it's a status move, fixed text positionings in Pokédex and naming screen, fixed Channeler typo 2022-08-07 14:21:30 +01:00
Maruno17 757798c8a8 Summary screen now uses only the first Regional Dex to determine Dex No. if the National Dex is locked 2022-07-10 19:16:11 +01:00
Maruno17 72e45ab137 Fixed error when getting terrain tag when the player moves between connected maps 2022-07-10 19:05:54 +01:00
Maruno17 473d4cbb67 Fixed SystemStackError when two events on connected maps have their backs to the other map 2022-07-10 19:05:42 +01:00
Maruno17 8ae07a6d15 Fixed some Vs animations not playing for double battles against 1 trainer, fixed typo in Grassy Glide's effect 2022-07-08 13:44:04 +01:00
Maruno17 3314477f08 Made the example wild encounter modifier that scales Pokémon levels to match the player's party depend on a map metadata flag instead of a map number 2022-07-07 20:49:49 +01:00
Maruno17 b50ce948f6 Fixed battle rule "forceCatchIntoParty" being circumventable, fixed wrong message when sending a party Pokémon to storage and replacing it with a caught Pokémon 2022-07-07 20:42:23 +01:00
Maruno17 e1dc7c91bc Fixed broken Bill's PC menu options 2022-07-06 20:03:46 +01:00
Maruno17 0b65865962 Fixed error message spam in the console when editing Game Swtches via the Debug mode feature 2022-07-06 20:03:10 +01:00
Maruno17 8f73319605 Fixed evolution reviving fainted Pokémon, fixed Rare Candy not reviving a fainted Shedinja 2022-07-06 20:02:30 +01:00
Maruno17 a85f672c73 Fixed crash when the Compiler rewrites a door event 2022-07-06 18:43:52 +01:00
Maruno17 2976ee93ce Added Setting that makes trainer-owned Pokémon give more Exp, other tweaks 2022-07-03 17:39:44 +01:00
Maruno17 a2327c6280 Fixed playing the credits/changing $scene leaving a ghost image of the old map behind, fixed Pokémon icons sometimes disappearing in storage screen 2022-07-03 16:40:25 +01:00
Maruno17 6dd88e49e1 Fixed the "See ya!" option in the PC menu not working properly, fixed mispositioning of text in Debug features that edit Game
Switches/Variables
2022-07-03 15:58:37 +01:00
Maruno17 94c6b6db0c Fixed Heavy Ball's catch rate calculation being inaccurate, added Obstruct to some moves' blacklists 2022-07-03 15:22:34 +01:00
Maruno17 7e183a92aa Tidying up for v20.1 release 2022-06-20 19:17:38 +01:00
Maruno17 76639c4ba5 Fixed duplicate files listed in BGM/ME pickers in PBS file editors 2022-06-20 08:44:18 +01:00
Maruno17 03ffae6eed Fixed empty wild encounter type tables not being editable in "Edit Wild Encounters" debug function 2022-06-19 23:07:21 +01:00
Maruno17 2486fa9fe2 Fixed player being able to be stuck in running position when opening the pause/ready menu 2022-06-19 22:44:29 +01:00
Maruno17 040247536f Some improvements to map/event rendering when changing display tile width/height in map renderer 2022-06-19 22:34:22 +01:00
Maruno17 8b3d95943a Essentials no longer requires the "Plugins" folder to exist 2022-06-19 17:40:34 +01:00
Maruno17 9261851701 Fixed party order not being altered at the start of battle if there are unable Pokémon before the one(s) sent in initially 2022-06-19 17:36:35 +01:00
Maruno17 9a53ee8a0e Fixed text positioning in "Roaming Pokémon" Debug function 2022-06-19 17:35:08 +01:00
Maruno17 2e3ba2e09e Fixed Grudge and Lunar Dance not properly changing PP amounts 2022-06-19 17:04:58 +01:00
Maruno17 b367b2442b Fixed error when using Future Sight 2022-06-18 21:18:34 +01:00
Maruno17 9a03b25755 Fixed using Pursuit against a switcher preventing using the next move 2022-06-18 21:13:30 +01:00
Maruno17 79f5e5d4aa Fixed mistake in individual trainer editor 2022-06-18 20:48:27 +01:00
Maruno17 4b895e44ef Fixed the passability of the blank tile not being ignored if its priority is 0 2022-06-17 21:41:35 +01:00
Maruno17 d42e35f8c4 Fixed being unable to walk across a map connection into an event even while holding Ctrl in Debug mode 2022-06-17 21:41:22 +01:00