Skip to content

v0.8.0

Compare
Choose a tag to compare
@Steffo99 Steffo99 released this 31 Jan 04:29
· 125 commits to main since this release
9e9e321

What's changed

Schema

  • 🧹 Removed data::setbundle::region::CardRegion::Jhin, data::setbundle::region::CardRegion::Evelynn and data::setbundle::region::CardRegion::Bard as they are absent in the real world data
  • ✨ Implement data::setbundle::supertype::CardSupertype as an enum

Data loading

  • ✨ Add data::corebundle::create_globalindexes_from_wd to load indexes from the "default" location
  • ✨ Add data::setbundle::create_cardindex_from_paths to load cards from the given PathBufs
  • ✨ Add data::setbundle::create_cardindex_from_wd to load cards from the "default" location
  • 📦 glob became a required dependency

Data usage

  • ✨ Add deck!(deck_code) macro to quickly load a deck from a valid deck code
  • ✨ Change deck![card_code, quantity] to accept a expr as quantity
  • ✨ Add data::deckcode::Deck::champions(&self, &CardIndex) to get an Iterator of all champions in the deck
  • ✨ Add data::deckcode::Deck::copies_of(&self, &CardCode) to get the number of copies in the deck of a certain card
  • ✨ Add data::deckcode::Deck::card_count(&self) to count the number of cards in the deck
  • ✨ Add data::deckcode::Deck::champions_count(&self, &CardIndex) to count the number of champions in the deck
  • ✨ Add data::deckcode::Deck::regions(&self, &CardIndex, usize) to find a possible region combination for the deck
    • May not report accurate results for Runeterran decks
  • ✨ Add data::deckcode::Deck::standard to validate a deck for Standard play and return its regions
  • ✨ Add data::deckcode::Deck::singleton to validate a deck for Singleton play and return its regions

Telegram bot

  • ✨ Handle invalid card codes present in decks
  • 🧹 Use data::corebundle::create_globalindexes_from_wd and data::setbundle::create_cardindex_from_wd to load data

Documentation

  • 🧹 Various improvements

Deployment

  • 🔧 Various Dockerfile tweaks