Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions SerialPrograms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ include(cmake/PokesimMapResources.cmake)
pa_frlg_map_resources(FRLG_MAP_RESOURCES)
pa_embed_text_files(SerialProgramsLib "${FRLG_MAP_RESOURCES}"
VideoGames/PokemonFRLG/Overworld/PokemonFRLG_OverworldMaps.h PokemonAutomation::NintendoSwitch::PokemonFRLG overworld_map_json)
pa_embed_text_files(SerialProgramsLib Source/VideoGames/PokemonFRLG/Programs/AutoStory/BattleData
VideoGames/PokemonFRLG/Programs/AutoStory/PokemonFRLG_AutoStoryBattleData.h PokemonAutomation::NintendoSwitch::PokemonFRLG autostory_battle_json)


# Create binary target
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#include "Overworld/PokemonFRLG_OverworldRoute.h"
#include "Overworld/PokemonFRLG_OverworldWalk.h"
#include "Overworld/PokemonFRLG_PlayerFacingReader.h"
#include "Programs/AutoStory/PokemonFRLG_AutoStoryBattle.h"
#include "Tests/TestUtils.h"

#include "PokemonFRLG_Tests.h"
Expand All @@ -64,7 +65,7 @@
add_tests_AutoStoryScreenEvents(database);
}

void add_tests(UnitTestDatabase& database){

Check warning on line 68 in SerialPrograms/Source/VideoGames/PokemonFRLG/PokemonFRLG_Tests.cpp

View workflow job for this annotation

GitHub Actions / code-health

Code health (advisory)

PokemonAutomation::NintendoSwitch::PokemonFRLG::add_tests( UnitTestDatabase & database): function_lines=39 (advisory above 25, limit 50)
add_tests_AdvanceWhiteDialogDetector(database);
add_tests_AdvanceBattleDialogDetector(database);
add_tests_BagDetector(database);
Expand Down Expand Up @@ -101,6 +102,7 @@
add_tests_OverworldReanchor(database);
add_tests_OverworldRecovery(database);
add_tests_PlayerFacingReader(database);
add_tests_AutoStoryItems(database);
}


Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,356 @@
{
"pound": ["normal", 1, 35],
"karate-chop": ["fighting", 1, 25],
"double-slap": ["normal", 1, 10],
"comet-punch": ["normal", 1, 15],
"mega-punch": ["normal", 1, 20],
"pay-day": ["normal", 1, 20],
"fire-punch": ["fire", 1, 15],
"ice-punch": ["ice", 1, 15],
"thunder-punch": ["electric", 1, 15],
"scratch": ["normal", 1, 35],
"vise-grip": ["normal", 1, 30],
"guillotine": ["normal", 1, 5],
"razor-wind": ["normal", 1, 10],
"swords-dance": ["normal", 0, 30],
"cut": ["normal", 1, 30],
"gust": ["flying", 1, 35],
"wing-attack": ["flying", 1, 35],
"whirlwind": ["normal", 0, 20],
"fly": ["flying", 1, 15],
"bind": ["normal", 1, 20],
"slam": ["normal", 1, 20],
"vine-whip": ["grass", 1, 10],
"stomp": ["normal", 1, 20],
"double-kick": ["fighting", 1, 30],
"mega-kick": ["normal", 1, 5],
"jump-kick": ["fighting", 1, 25],
"rolling-kick": ["fighting", 1, 15],
"sand-attack": ["ground", 0, 15],
"headbutt": ["normal", 1, 15],
"horn-attack": ["normal", 1, 25],
"fury-attack": ["normal", 1, 20],
"horn-drill": ["normal", 1, 5],
"tackle": ["normal", 1, 35],
"body-slam": ["normal", 1, 15],
"wrap": ["normal", 1, 20],
"take-down": ["normal", 1, 20],
"thrash": ["normal", 1, 20],
"double-edge": ["normal", 1, 15],
"tail-whip": ["normal", 0, 30],
"poison-sting": ["poison", 1, 35],
"twineedle": ["bug", 1, 20],
"pin-missile": ["bug", 1, 20],
"leer": ["normal", 0, 30],
"bite": ["dark", 1, 25],
"growl": ["normal", 0, 40],
"roar": ["normal", 0, 20],
"sing": ["normal", 0, 15],
"supersonic": ["normal", 0, 20],
"sonic-boom": ["normal", 1, 20],
"disable": ["normal", 0, 20],
"acid": ["poison", 1, 30],
"ember": ["fire", 1, 25],
"flamethrower": ["fire", 1, 15],
"mist": ["ice", 0, 30],
"water-gun": ["water", 1, 25],
"hydro-pump": ["water", 1, 5],
"surf": ["water", 1, 15],
"ice-beam": ["ice", 1, 10],
"blizzard": ["ice", 1, 5],
"psybeam": ["psychic", 1, 20],
"bubble-beam": ["water", 1, 20],
"aurora-beam": ["ice", 1, 20],
"hyper-beam": ["normal", 1, 5],
"peck": ["flying", 1, 35],
"drill-peck": ["flying", 1, 20],
"submission": ["fighting", 1, 25],
"low-kick": ["fighting", 1, 20],
"counter": ["fighting", 1, 20],
"seismic-toss": ["fighting", 1, 20],
"strength": ["normal", 1, 15],
"absorb": ["grass", 1, 20],
"mega-drain": ["grass", 1, 10],
"leech-seed": ["grass", 0, 10],
"growth": ["normal", 0, 40],
"razor-leaf": ["grass", 1, 25],
"solar-beam": ["grass", 1, 10],
"poison-powder": ["poison", 0, 35],
"stun-spore": ["grass", 0, 30],
"sleep-powder": ["grass", 0, 15],
"petal-dance": ["grass", 1, 20],
"string-shot": ["bug", 0, 40],
"dragon-rage": ["dragon", 1, 10],
"fire-spin": ["fire", 1, 15],
"thunder-shock": ["electric", 1, 30],
"thunderbolt": ["electric", 1, 15],
"thunder-wave": ["electric", 0, 20],
"thunder": ["electric", 1, 10],
"rock-throw": ["rock", 1, 15],
"earthquake": ["ground", 1, 10],
"fissure": ["ground", 1, 5],
"dig": ["ground", 1, 10],
"toxic": ["poison", 0, 10],
"confusion": ["psychic", 1, 25],
"psychic": ["psychic", 1, 10],
"hypnosis": ["psychic", 0, 20],
"meditate": ["psychic", 0, 40],
"agility": ["psychic", 0, 30],
"quick-attack": ["normal", 1, 30],
"rage": ["normal", 1, 20],
"teleport": ["psychic", 0, 20],
"night-shade": ["ghost", 1, 15],
"mimic": ["normal", 0, 10],
"screech": ["normal", 0, 40],
"double-team": ["normal", 0, 15],
"recover": ["normal", 0, 20],
"harden": ["normal", 0, 30],
"minimize": ["normal", 0, 20],
"smokescreen": ["normal", 0, 20],
"confuse-ray": ["ghost", 0, 10],
"withdraw": ["water", 0, 40],
"defense-curl": ["normal", 0, 40],
"barrier": ["psychic", 0, 30],
"light-screen": ["psychic", 0, 30],
"haze": ["ice", 0, 30],
"reflect": ["psychic", 0, 20],
"focus-energy": ["normal", 0, 30],
"bide": ["normal", 1, 10],
"metronome": ["normal", 0, 10],
"mirror-move": ["flying", 0, 20],
"self-destruct": ["normal", 1, 5],
"egg-bomb": ["normal", 1, 10],
"lick": ["ghost", 1, 30],
"smog": ["poison", 1, 20],
"sludge": ["poison", 1, 20],
"bone-club": ["ground", 1, 20],
"fire-blast": ["fire", 1, 5],
"waterfall": ["water", 1, 15],
"clamp": ["water", 1, 10],
"swift": ["normal", 1, 20],
"skull-bash": ["normal", 1, 15],
"spike-cannon": ["normal", 1, 15],
"constrict": ["normal", 1, 35],
"amnesia": ["psychic", 0, 20],
"kinesis": ["psychic", 0, 15],
"soft-boiled": ["normal", 0, 10],
"high-jump-kick": ["fighting", 1, 20],
"glare": ["normal", 0, 30],
"dream-eater": ["psychic", 1, 15],
"poison-gas": ["poison", 0, 40],
"barrage": ["normal", 1, 20],
"leech-life": ["bug", 1, 15],
"lovely-kiss": ["normal", 0, 10],
"sky-attack": ["flying", 1, 5],
"transform": ["normal", 0, 10],
"bubble": ["water", 1, 30],
"dizzy-punch": ["normal", 1, 10],
"spore": ["grass", 0, 15],
"flash": ["normal", 0, 20],
"psywave": ["psychic", 1, 15],
"splash": ["normal", 0, 40],
"acid-armor": ["poison", 0, 40],
"crabhammer": ["water", 1, 10],
"explosion": ["normal", 1, 5],
"fury-swipes": ["normal", 1, 15],
"bonemerang": ["ground", 1, 10],
"rest": ["psychic", 0, 10],
"rock-slide": ["rock", 1, 10],
"hyper-fang": ["normal", 1, 15],
"sharpen": ["normal", 0, 30],
"conversion": ["normal", 0, 30],
"tri-attack": ["normal", 1, 10],
"super-fang": ["normal", 1, 10],
"slash": ["normal", 1, 20],
"substitute": ["normal", 0, 10],
"struggle": ["normal", 1, 1],
"sketch": ["normal", 0, 1],
"triple-kick": ["fighting", 1, 10],
"thief": ["dark", 1, 10],
"spider-web": ["bug", 0, 10],
"mind-reader": ["normal", 0, 5],
"nightmare": ["ghost", 0, 15],
"flame-wheel": ["fire", 1, 25],
"snore": ["normal", 1, 15],
"curse": ["mystery", 0, 10],
"flail": ["normal", 1, 15],
"conversion-2": ["normal", 0, 30],
"aeroblast": ["flying", 1, 5],
"cotton-spore": ["grass", 0, 40],
"reversal": ["fighting", 1, 15],
"spite": ["ghost", 0, 10],
"powder-snow": ["ice", 1, 25],
"protect": ["normal", 0, 10],
"mach-punch": ["fighting", 1, 30],
"scary-face": ["normal", 0, 10],
"feint-attack": ["dark", 1, 20],
"sweet-kiss": ["normal", 0, 10],
"belly-drum": ["normal", 0, 10],
"sludge-bomb": ["poison", 1, 10],
"mud-slap": ["ground", 1, 10],
"octazooka": ["water", 1, 10],
"spikes": ["ground", 0, 20],
"zap-cannon": ["electric", 1, 5],
"foresight": ["normal", 0, 40],
"destiny-bond": ["ghost", 0, 5],
"perish-song": ["normal", 0, 5],
"icy-wind": ["ice", 1, 15],
"detect": ["fighting", 0, 5],
"bone-rush": ["ground", 1, 10],
"lock-on": ["normal", 0, 5],
"outrage": ["dragon", 1, 15],
"sandstorm": ["rock", 0, 10],
"giga-drain": ["grass", 1, 5],
"endure": ["normal", 0, 10],
"charm": ["normal", 0, 20],
"rollout": ["rock", 1, 20],
"false-swipe": ["normal", 1, 40],
"swagger": ["normal", 0, 15],
"milk-drink": ["normal", 0, 10],
"spark": ["electric", 1, 20],
"fury-cutter": ["bug", 1, 20],
"steel-wing": ["steel", 1, 25],
"mean-look": ["normal", 0, 5],
"attract": ["normal", 0, 15],
"sleep-talk": ["normal", 0, 10],
"heal-bell": ["normal", 0, 5],
"return": ["normal", 1, 20],
"present": ["normal", 1, 15],
"frustration": ["normal", 1, 20],
"safeguard": ["normal", 0, 25],
"pain-split": ["normal", 0, 20],
"sacred-fire": ["fire", 1, 5],
"magnitude": ["ground", 1, 30],
"dynamic-punch": ["fighting", 1, 5],
"megahorn": ["bug", 1, 10],
"dragon-breath": ["dragon", 1, 20],
"baton-pass": ["normal", 0, 40],
"encore": ["normal", 0, 5],
"pursuit": ["dark", 1, 20],
"rapid-spin": ["normal", 1, 40],
"sweet-scent": ["normal", 0, 20],
"iron-tail": ["steel", 1, 15],
"metal-claw": ["steel", 1, 35],
"vital-throw": ["fighting", 1, 10],
"morning-sun": ["normal", 0, 5],
"synthesis": ["grass", 0, 5],
"moonlight": ["normal", 0, 5],
"hidden-power": ["normal", 1, 15],
"cross-chop": ["fighting", 1, 5],
"twister": ["dragon", 1, 20],
"rain-dance": ["water", 0, 5],
"sunny-day": ["fire", 0, 5],
"crunch": ["dark", 1, 15],
"mirror-coat": ["psychic", 1, 20],
"psych-up": ["normal", 0, 10],
"extreme-speed": ["normal", 1, 5],
"ancient-power": ["rock", 1, 5],
"shadow-ball": ["ghost", 1, 15],
"future-sight": ["psychic", 1, 15],
"rock-smash": ["fighting", 1, 15],
"whirlpool": ["water", 1, 15],
"beat-up": ["dark", 1, 10],
"fake-out": ["normal", 1, 10],
"uproar": ["normal", 1, 10],
"stockpile": ["normal", 0, 10],
"spit-up": ["normal", 1, 10],
"swallow": ["normal", 0, 10],
"heat-wave": ["fire", 1, 10],
"hail": ["ice", 0, 10],
"torment": ["dark", 0, 15],
"flatter": ["dark", 0, 15],
"will-o-wisp": ["fire", 0, 15],
"memento": ["dark", 0, 10],
"facade": ["normal", 1, 20],
"focus-punch": ["fighting", 1, 20],
"smelling-salts": ["normal", 1, 10],
"follow-me": ["normal", 0, 20],
"nature-power": ["normal", 0, 20],
"charge": ["electric", 0, 20],
"taunt": ["dark", 0, 20],
"helping-hand": ["normal", 0, 20],
"trick": ["psychic", 0, 10],
"role-play": ["psychic", 0, 10],
"wish": ["normal", 0, 10],
"assist": ["normal", 0, 20],
"ingrain": ["grass", 0, 20],
"superpower": ["fighting", 1, 5],
"magic-coat": ["psychic", 0, 15],
"recycle": ["normal", 0, 10],
"revenge": ["fighting", 1, 10],
"brick-break": ["fighting", 1, 15],
"yawn": ["normal", 0, 10],
"knock-off": ["dark", 1, 20],
"endeavor": ["normal", 1, 5],
"eruption": ["fire", 1, 5],
"skill-swap": ["psychic", 0, 10],
"imprison": ["psychic", 0, 10],
"refresh": ["normal", 0, 20],
"grudge": ["ghost", 0, 5],
"snatch": ["dark", 0, 10],
"secret-power": ["normal", 1, 20],
"dive": ["water", 1, 10],
"arm-thrust": ["fighting", 1, 20],
"camouflage": ["normal", 0, 20],
"tail-glow": ["bug", 0, 20],
"luster-purge": ["psychic", 1, 5],
"mist-ball": ["psychic", 1, 5],
"feather-dance": ["flying", 0, 15],
"teeter-dance": ["normal", 0, 20],
"blaze-kick": ["fire", 1, 10],
"mud-sport": ["ground", 0, 15],
"ice-ball": ["ice", 1, 20],
"needle-arm": ["grass", 1, 15],
"slack-off": ["normal", 0, 10],
"hyper-voice": ["normal", 1, 10],
"poison-fang": ["poison", 1, 15],
"crush-claw": ["normal", 1, 10],
"blast-burn": ["fire", 1, 5],
"hydro-cannon": ["water", 1, 5],
"meteor-mash": ["steel", 1, 10],
"astonish": ["ghost", 1, 15],
"weather-ball": ["normal", 1, 10],
"aromatherapy": ["grass", 0, 5],
"fake-tears": ["dark", 0, 20],
"air-cutter": ["flying", 1, 25],
"overheat": ["fire", 1, 5],
"odor-sleuth": ["normal", 0, 40],
"rock-tomb": ["rock", 1, 10],
"silver-wind": ["bug", 1, 5],
"metal-sound": ["steel", 0, 40],
"grass-whistle": ["grass", 0, 15],
"tickle": ["normal", 0, 20],
"cosmic-power": ["psychic", 0, 20],
"water-spout": ["water", 1, 5],
"signal-beam": ["bug", 1, 15],
"shadow-punch": ["ghost", 1, 20],
"extrasensory": ["psychic", 1, 30],
"sky-uppercut": ["fighting", 1, 15],
"sand-tomb": ["ground", 1, 15],
"sheer-cold": ["ice", 1, 5],
"muddy-water": ["water", 1, 10],
"bullet-seed": ["grass", 1, 30],
"aerial-ace": ["flying", 1, 20],
"icicle-spear": ["ice", 1, 30],
"iron-defense": ["steel", 0, 15],
"block": ["normal", 0, 5],
"howl": ["normal", 0, 40],
"dragon-claw": ["dragon", 1, 15],
"frenzy-plant": ["grass", 1, 5],
"bulk-up": ["fighting", 0, 20],
"bounce": ["flying", 1, 5],
"mud-shot": ["ground", 1, 15],
"poison-tail": ["poison", 1, 25],
"covet": ["normal", 1, 40],
"volt-tackle": ["electric", 1, 15],
"magical-leaf": ["grass", 1, 20],
"water-sport": ["water", 0, 15],
"calm-mind": ["psychic", 0, 20],
"leaf-blade": ["grass", 1, 15],
"dragon-dance": ["dragon", 0, 20],
"rock-blast": ["rock", 1, 10],
"shock-wave": ["electric", 1, 20],
"water-pulse": ["water", 1, 20],
"doom-desire": ["steel", 1, 5],
"psycho-boost": ["psychic", 1, 5]
}
Loading
Loading