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
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
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
539a47671d
Some more AI function code rewrites
2022-12-04 19:09:46 +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
3e73d1c1f9
Merge branch 'dev' into ai
2022-11-05 20:42:12 +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
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
9ad45d6b07
Fixed bug caused by strikethrough/underline change, fixed fixed damage moves showing effectiveness messages
2022-10-16 15:52:02 +01:00
Maruno17
58a624060a
Rewrote AI calculations for moves that cause confusion, flinching and infatuation
2022-10-09 18:37:19 +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
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
429068f3cb
More AI move effect calculation rewrites
2022-08-31 19:02:54 +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
265897f9e1
Made AI function code-specific MoveFailureCheck handlers
2022-08-27 20:11:01 +01:00
Maruno17
a20f378b33
Minor tweaks
2022-08-09 19:30:27 +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
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
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
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
d94d1836c6
Fixed Howl always failing
2022-05-24 13:43:01 +01:00
Maruno17
04f3b29fe3
Tweaks to comments, Destiny Knot no longer affects breeding in Gen 5 mechanics
2022-05-17 23:52:53 +01:00
Maruno17
90328df274
Updated moves that can't be called by Metronome
2022-04-10 22:33:56 +01:00
Maruno17
0680f8665d
Added prompt for what to do with a caught Pokémon if the party is full, and a battle rule that forces a capture into the party
2022-04-05 23:01:07 +01:00
Maruno17
e87d55f56f
Added underscore in DefaultForm species flag for consistency
2022-03-31 20:20:29 +01:00
Maruno17
c012a7323a
Natural Gift's power/type moved into an item flag
2022-03-31 20:19:58 +01:00
Maruno17
38edb15f0c
Move item powers for Fling into an item flag
2022-03-31 19:53:21 +01:00
Maruno17
93a0173fe8
Player no longer makes a bump sound when walking into something because of a move route, changed when title screen BGM starts playing, tweaked evolution messages and audio
2022-03-10 22:49:01 +00:00
Maruno17
f68e699cc9
More Rubocop changes
2022-02-13 00:57:54 +00:00
Keyacom
30c3f472ef
Implement TramplesMinimize as a move flag ( #175 )
...
* Implement "TramplesMinimize" as a move flag
Implemented `TramplesMinimize` as a move flag. Due to it, removed effect codes `FlinchTargetTrampleMinimize` and `ParalyzeTargetTrampleMinimize` (the second one was exclusive to Body Slam). Moves that had them now have the effect codes `FlinchTarget` and `ParalyzeTarget`, respectively.
The code now does not check if the parameter of `tramplesMinimize?` is 1 or 2, it now checks if it is `true` or `false`. For the effect that causes the moves with this flag to skip accuracy checks, it also checks if `Settings::MECHANICS_GENERATION` is equal to or greater than 6.
Data on which moves are to be treated as able to double damage if Minimized and skip accuracy checks are [here](https://bulbapedia.bulbagarden.net/wiki/Minimize_(move)#Vulnerability_to_moves ).
**Remarks:**
- Dragon Rush, Heat Crash and Heavy Slam could not trample Minimize in Gen 5. Dragon Rush and Heat Crash could do so in Gen 6+, but Heavy Slam could not until Gen 7.
- Double Iron Bash could only trample Minimize in Gen 7.
**TL;DR:**
- Implemented `TramplesMinimize` as a move flag.
- Modified the check for this move flag.
- Removed effect codes `FlinchTargetTrampleMinimize` and `ParalyzeTargetTrampleMinimize`. Moves that had them now have the effect codes `FlinchTarget` and `ParalyzeTarget`, respectively.
2022-02-06 19:36:51 +00:00
Keyacom
91c6f1f45b
Fixed typo in "CannotMetronome" ( #171 )
...
* Fixed typo in "CannotMetronome"
This flag had 3 N's in its name where it was supposed to be two. In the move PBS files, the flag is spelled correctly.
2022-01-29 19:07:01 +00:00
Keyacom
af60c4df66
Use the .max function in Substitute's code ( #167 )
2022-01-29 18:24:42 +00:00
Maruno17
8a89b7fbf4
Added move flag "CannnotMetronome"
2022-01-12 23:15:46 +00:00
Maruno17
f853816d63
Fixed visual glitch where a Pokémon's HP would raise then lower if its substitute took damage
2022-01-08 18:11:02 +00:00
Maruno17
a6115faad6
Fixed Incinerate's message not knowing the name of the item it destroyed
2022-01-02 21:22:09 +00:00
Maruno17
fb29f19a28
Fixed various bugs found when generating Battle Frontier challenge lists
2021-12-29 14:37:41 +00:00
Maruno17
aa643a6049
More Rubocop
2021-12-27 00:26:45 +00:00