-
Notifications
You must be signed in to change notification settings - Fork 818
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correct wrong and misleading comments about enemy trainer AI #1149
base: master
Are you sure you want to change the base?
Conversation
Fix inaccurate comment.
Rephrase misleading comment about AI use of Rain Dance moves.
Rephrase misleading comments about AI use of Sunny Day moves.
AI_OPPORTUNIST checks enemy HP, not player.
Elaborate on AI use of "useful moves" in code comment.
Sync bug doc with Sunny Day moves list change.
@@ -1,5 +1,5 @@ | |||
; AI_OPPORTUNIST discourages these moves | |||
; when the player's HP is low. | |||
; when the enemy's HP is low. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
; when the enemy's HP is low. | |
; when its HP is low. |
|
||
SunnyDayMoves: | ||
; BUG: "Smart" AI does not encourage Solar Beam, Flame Wheel, or Moonlight during Sunny Day (see docs/bugs_and_glitches.md) | ||
; BUG: Solar Beam, Flame Wheel, and Moonlight should be on this list (see docs/bugs_and_glitches.md) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
; BUG: Solar Beam, Flame Wheel, and Moonlight should be on this list (see docs/bugs_and_glitches.md) | |
; BUG: "Smart" AI does not encourage Sunny Day when it knows Solar Beam, Flame Wheel, or Moonlight (see docs/bugs_and_glitches.md) |
@@ -1,4 +1,4 @@ | |||
; AI_SMART knows these moves are usable all-around. | |||
; AI_SMART tries to use Mirror Move, Mimic, and Disable on these moves. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
; AI_SMART tries to use Mirror Move, Mimic, and Disable on these moves. | |
; AI_SMART tries to use Mirror Move, Mimic, and Disable | |
; after the player uses these moves. |
@@ -1267,13 +1267,13 @@ Pryce's dialog ("That BADGE will raise the SPECIAL stats of POKéMON.") implies | |||
``` | |||
|
|||
|
|||
### "Smart" AI does not encourage Solar Beam, Flame Wheel, or Moonlight during Sunny Day | |||
### "Smart" AI does not encourage Sunny Day if it knows Solar Beam, Flame Wheel, or Moonlight |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### "Smart" AI does not encourage Sunny Day if it knows Solar Beam, Flame Wheel, or Moonlight | |
### "Smart" AI does not encourage Sunny Day when it knows Solar Beam, Flame Wheel, or Moonlight |
|
||
**Fix:** Edit `SunnyDayMoves` in [data/battle/ai/sunny_day_moves.asm](https://github.com/pret/pokecrystal/blob/master/data/battle/ai/sunny_day_moves.asm): | ||
|
||
```diff | ||
SunnyDayMoves: | ||
-; BUG: "Smart" AI does not encourage Solar Beam, Flame Wheel, or Moonlight during Sunny Day (see docs/bugs_and_glitches.md) | ||
-; BUG: Solar Beam, Flame Wheel, and Moonlight should be on this list (see docs/bugs_and_glitches.md) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-; BUG: Solar Beam, Flame Wheel, and Moonlight should be on this list (see docs/bugs_and_glitches.md) | |
-; BUG: "Smart" AI does not encourage Sunny Day when it knows Solar Beam, Flame Wheel, or Moonlight (see docs/bugs_and_glitches.md) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! I've left a few comments; in particular, the ; BUG
comments should match the bugs_and_glitches.md headings.
While going through the enemy trainer AI, I noticed that some comments are misleading or flat-out wrong. The corrections are simple and self-explanatory. No idea if I'm doing the pull request right, though.