battler

Crates.iobattler
lib.rsbattler
version
sourcesrc
created_at2023-10-14 20:20:37.536954
updated_at2024-10-24 02:01:53.748187
descriptionPokémon battle engine for Rust.
homepage
repository
max_upload_size
id1003283
Cargo.toml error:TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Jackson Nestelroad (jackson-nestelroad)

documentation

https://docs.rs/battler

README

battler

battler is battle engine and simulator based on the Pokémon games, written in Rust.

The battle engine is designed off of a few principles:

  1. Self-contained solution for controlling battles. A battle can easily be run with the engine and required effect data.
  2. Separation between battle engine and battle clients. This engine is focused on generating a battle log, which can be easily displayed and replayed by battle clients.
  3. Support for high level of customization for all sorts of effects through an interpreted language written directly on effect data.

All moves, abilities, and items through Generation 3 have been implemented and validated to work on the battle engine.

Features

  • Battle types.
    • Single battles.
    • Double battles.
    • Triple battles.
    • Multi battles.
  • Team validation.
  • Team Preview.
  • Switching.
  • Moves.
    • Priority and speed ordering.
    • PP checking and deduction.
    • Damage calculation and modifiers.
    • Type effectiveness and immunity.
    • Critical hits.
    • Evasion and accuracy checks.
    • OHKO.
    • Self-destruct.
    • Self switch (including Baton Pass).
    • Recoil.
    • Multi-hit.
    • User and target effects.
    • Stat boosts.
    • Healing.
    • Draining.
    • Force switching.
    • Secondary effects against user and target.
    • Two-turn moves (e.g., Fly, Dig).
    • Multi-turn moves (e.g., Bide).
    • Locked moves (e.g., Thrash, Petal Dance).
    • Custom damage calculations (e.g., Low Kick, Psywave).
    • Using moves within moves (e.g., Mimic, Mirror Move, Metronome).
    • Custom move volatile conditions.
    • Move disabling.
    • Transformation.
    • Substitute.
    • Protection.
  • Abilities.
  • Items.
    • Held items.
    • Berries.
    • Gems.
  • Forme changes.
  • Status conditions (burn, paralysis, sleep, freeze, poison, bad poison).
  • Volatile conditions (e.g., confusion, partially-trapped, flinch, recharge, and more).
  • Side conditions.
  • Entry hazards.
  • Slot conditions (e.g., Future Sight).
  • Weather.
  • Pseudo-weather.
  • Terrains.
  • Battle environments.
  • Single-player mechanics.
    • Experience.
    • Level up and move learning.
    • Fleeing.
    • Affection.
    • Disobedience.
    • Bag items.
    • Catching.
  • Horde battle support.
Commit count: 0

cargo fmt