@asanrom/ps-battle-bot-lib

Index

Classes

Interfaces

AbilityKnowledge ActiveDecision Battle BattleActivePokemon BattleAnalyzer BattleBotBattleStatus BattleBotConfig BattleDecisionScenario BattleEffect BattleEvent_AbilityReveal BattleEvent_ActivateEffect BattleEvent_BattleEnded BattleEvent_Block BattleEvent_Boost BattleEvent_CallbackCannotUseMove BattleEvent_CallbackTrapped BattleEvent_ClearAllBoosts BattleEvent_ClearBoost BattleEvent_ClearNegativeBoost BattleEvent_ClearPokemon BattleEvent_ClearPositiveBoost BattleEvent_CopyBoost BattleEvent_CriticalHit BattleEvent_CureStatus BattleEvent_CureTeam BattleEvent_Damage BattleEvent_DetailsChange BattleEvent_Drag BattleEvent_EffectEnd BattleEvent_EffectStart BattleEvent_Fail BattleEvent_Faint BattleEvent_FieldEnd BattleEvent_FieldStart BattleEvent_FormeChange BattleEvent_GameType BattleEvent_Gen BattleEvent_Heal BattleEvent_Immune BattleEvent_InvertBoost BattleEvent_ItemRemove BattleEvent_ItemReveal BattleEvent_MegaEvolution BattleEvent_Miss BattleEvent_Move BattleEvent_MoveCannotUse BattleEvent_MoveStatus BattleEvent_MustRecharge BattleEvent_Player BattleEvent_PrepareMove BattleEvent_Replace BattleEvent_Request BattleEvent_ResistedHit BattleEvent_RevealTeamPreviewPokemon BattleEvent_Rule BattleEvent_SetBoost BattleEvent_SetHP BattleEvent_SideEnd BattleEvent_SideStart BattleEvent_Start BattleEvent_Status BattleEvent_SuperEffectiveHit BattleEvent_Swap BattleEvent_SwapBoost BattleEvent_SwapSideConditions BattleEvent_Switch BattleEvent_TeamPreview BattleEvent_TeamSize BattleEvent_Terastallize BattleEvent_Tier BattleEvent_Transform BattleEvent_Turn BattleEvent_TurnStatus BattleEvent_UltraBurst BattleEvent_UnBoost BattleEvent_Weather BattleFormatDetails BattleGlobalCondition BattleGlobalStatus BattlePlayer BattleRequest BattleRequestActivePokemon BattleRequestActivePokemonMove BattleRequestSide BattleRequestSidePokemon BattleSidePokemon CalcOptions DamageResult DecisionAlgorithm DecisionMakeContext DecisionMaker DecisionSlot ForceSwitchDecision FoundPokemon GenericNPCContext ItemKnowledge MoveSubDecision MoveSubDecisionTarget PassSubDecision PokemonCommonSet PokemonCondition PokemonDetails PokemonIdent PokemonIdentTarget PokemonKnownStats PokemonKnownStatsTransform PokemonMove PokemonShowdownBattleBotConfig PokemonStats PokemonTeamMember RandomDecisionAlgorithmConfig ReviveSubDecision SearchData ShiftSubDecision SideCondition StatKnowledge SwitchSubDecision TeamDecision TeamPreviewPokemon WaitDecision

Type Aliases

Variables

AbilityEffects BattleConditionMoves BattleEffectSchema BattleEventMajorSchema BattleEventMinorSchema BattleEventSchema BattleEvent_AbilityReveal_Schema BattleEvent_ActivateEffect_Schema BattleEvent_BattleEnded_Schema BattleEvent_Block_Schema BattleEvent_Boost_Schema BattleEvent_CallbackCannotUseMove_Schema BattleEvent_CallbackTrapped_Schema BattleEvent_ClearAllBoosts_Schema BattleEvent_ClearBoost_Schema BattleEvent_ClearNegativeBoost_Schema BattleEvent_ClearPokemon_Schema BattleEvent_ClearPositiveBoost_Schema BattleEvent_CopyBoost_Schema BattleEvent_CriticalHit_Schema BattleEvent_CureStatus_Schema BattleEvent_CureTeam_Schema BattleEvent_Damage_Schema BattleEvent_DetailsChange_Schema BattleEvent_Drag_Schema BattleEvent_EffectEnd_Schema BattleEvent_EffectStart_Schema BattleEvent_Fail_Schema BattleEvent_Faint_Schema BattleEvent_FieldEnd_Schema BattleEvent_FieldStart_Schema BattleEvent_FormeChange_Schema BattleEvent_GameType_Schema BattleEvent_Gen_Schema BattleEvent_Heal_Schema BattleEvent_Immune_Schema BattleEvent_InvertBoost_Schema BattleEvent_ItemRemove_Schema BattleEvent_ItemReveal_Schema BattleEvent_MegaEvolution_Schema BattleEvent_Miss_Schema BattleEvent_MoveCannotUse_Schema BattleEvent_MoveStatus_Schema BattleEvent_Move_Schema BattleEvent_MustRecharge_Schema BattleEvent_Player_Schema BattleEvent_PrepareMove_Schema BattleEvent_Replace_Schema BattleEvent_Request_Schema BattleEvent_ResistedHit_Schema BattleEvent_RevealTeamPreviewPokemon_Schema BattleEvent_Rule_Schema BattleEvent_SetBoost_Schema BattleEvent_SetHP_Schema BattleEvent_SideEnd_Schema BattleEvent_SideStart_Schema BattleEvent_Start_Schema BattleEvent_Status_Schema BattleEvent_SuperEffectiveHit_Schema BattleEvent_SwapBoost_Schema BattleEvent_SwapSideConditions_Schema BattleEvent_Swap_Schema BattleEvent_Switch_Schema BattleEvent_TeamPreview_Schema BattleEvent_TeamSize_Schema BattleEvent_Terastallize_Schema BattleEvent_Tier_Schema BattleEvent_Transform_Schema BattleEvent_TurnStatus_Schema BattleEvent_Turn_Schema BattleEvent_UltraBurst_Schema BattleEvent_UnBoost_Schema BattleEvent_Weather_Schema BattleFields BattleGameTypeSchema BattleRequestActivePokemonMoveSchema BattleRequestActivePokemonSchema BattleRequestSchema BattleRequestSidePokemonSchema BattleRequestSideSchema EffectiveMul IgnoreEvasionMoves ImmuneMul LAST_GEN MoveTargetSchema MoveTargetsRequireSpecificTarget OHKOMoves PASS_DECISION PermanentAbilities PokemonConditionSchema PokemonDetailsSchema PokemonIdentSchema PokemonIdentTargetSchema PokemonStatsSchema PokemonStatusSchema PokemonTypeNames PokemonTypes RechargeMoves ResistedMul SHIFT_DECISION SearchDataSchema SideConditions SingleMoveStatuses SingleTurnStatuses StatNameSchema SuperEffectiveMul TypeChartGen1 TypeChartGen2ToGen5 TypeChartGen6To9 VolatileStatuses VolatilesNotBatonPassing WAIT_DECISION Weathers

Functions

DefaultBattleAnalyzerFactory abilityIsEnabled applyCommonSetsToFoeActive applyGimmickToActive applyIllusion applyKnownStats applyTransform applyTypeChanges calcDamage calcHazardsDamage calcMoveAccuracy canBeFlinched checkBattery checkFlowerGift checkFoeSwitchedLastTurn checkFriendGuard checkPowerSpot checksPokemonDealsContactDamage clone compareDetails compareIds createActiveFromSide createBattle createPlayer createSidePokeFromDetails createSidePokemonFromRequest encodeDecision findAbilityData findActiveByRequestIndex findActiveSlotByRequestIndex findDecisionTargets findItemData findMove findMoveDecisionTargets findPokemonData findPokemonInBattle findRequestSidePokemon findSidePokemon findSidePokemonOrCreateIt generateActiveSubDecisions generateForceSwitchSubDecisions getActivePokemonTurnRecovery getActiveSize getCombinedEffectivenessMultiplier getDefaultTarget getEffectivenessMultiplier getFormatDetailsByBattleId getMaxPPFromBasePP getMoveAccuracy getMoveBasePP getMoveFlags getMoveRealType getPokemonCurrentTypes getStatRangeFromDetails getTypeChart initGenericNPCContext isBattle isCommanding isGrounded isRainy isSandStorm isSnowy isSunny isTrappable itemIsEnabled makeDecisionsSimple makeTeamDecisions moveBreaksAbility moveIsRedirected packPokemonTeam parseBattleLog parseDecision parsePokemonShowdownBattleEvent parsePokemonTeam playerTeamFullKnown playersAreAdjacent playersAreAllies randomlyChoose requestIndexByActiveSlot shuffleArray simplifyBattleId targetIsFarAway toId toRoomId unknownAbility unknownItem updateStatsOnSpeciesChange

Generated using TypeDoc