b93dfb9d59
* SwitchAI makes much smarter mon choices
* Add HasHadOdds check to ShouldSwitch decision
* Remove early return
* Rework Baton Pass check as per discussion with Alex
* Forgot to adjust a comment
* Don't program before breakfast lol (if / else if fix)
* Switch AI_CalcDamage for AI_DATA->simulatedDmg in HasBadOdds
Thanks Alex! :D
* Typo in a hitToKO comparison
* Remove and replace AI_CalcPartyMonBestMoveDamage and IsAiPartyMonOHKOBy from https://github.com/rh-hideout/pokeemerald-expansion/pull/3146
See https://discord.com/channels/419213663107416084/1144447521960251472 for details
* Major refactor, new struct, switchin considers damage / healing from hazards / status / held item / weather
* Forgot Snow exists and heals Ice Body, haven't played Switch games lol
* (
|
||
---|---|---|
.. | ||
abilities.h | ||
apprentice.h | ||
battle.h | ||
battle_ai.h | ||
battle_anim.h | ||
battle_anim_scripts.h | ||
battle_arena.h | ||
battle_dome.h | ||
battle_factory.h | ||
battle_frontier.h | ||
battle_frontier_mons.h | ||
battle_frontier_trainers.h | ||
battle_move_effects.h | ||
battle_palace.h | ||
battle_pike.h | ||
battle_pyramid.h | ||
battle_script_commands.h | ||
battle_setup.h | ||
battle_string_ids.h | ||
battle_tent.h | ||
battle_tent_mons.h | ||
battle_tent_trainers.h | ||
battle_tower.h | ||
berry.h | ||
cable_club.h | ||
coins.h | ||
contest.h | ||
daycare.h | ||
decorations.h | ||
easy_chat.h | ||
event_bg.h | ||
event_object_movement.h | ||
event_objects.h | ||
expansion.h | ||
field_effects.h | ||
field_poison.h | ||
field_specials.h | ||
field_tasks.h | ||
field_weather.h | ||
flags.h | ||
form_change_types.h | ||
frontier_util.h | ||
game_stat.h | ||
global.h | ||
heal_locations.h | ||
hold_effects.h | ||
item.h | ||
item_effects.h | ||
items.h | ||
layouts.h | ||
lilycove_lady.h | ||
map_groups.h | ||
map_scripts.h | ||
map_types.h | ||
maps.h | ||
mauville_old_man.h | ||
metatile_behaviors.h | ||
metatile_labels.h | ||
moves.h | ||
mystery_gift.h | ||
opponents.h | ||
party_menu.h | ||
pokedex.h | ||
pokemon.h | ||
pokemon_debug.h | ||
region_map_sections.h | ||
rgb.h | ||
roulette.h | ||
script_menu.h | ||
secret_bases.h | ||
slot_machine.h | ||
songs.h | ||
sound.h | ||
species.h | ||
tms_hms.h | ||
trade.h | ||
trainer_hill.h | ||
trainer_types.h | ||
trainers.h | ||
tv.h | ||
union_room.h | ||
vars.h | ||
weather.h | ||
wild_encounter.h | ||
z_move_effects.h |