feat: rename from bluearch-recruitment to blue-gacha

This commit is contained in:
Rekai Nyangadzayi Musuka 2021-04-14 01:42:05 -05:00
parent b7c673cdee
commit 3c47ec8d4f
5 changed files with 25 additions and 25 deletions

View File

@ -1,5 +1,5 @@
[package]
name = "bluearch-recruitment"
name = "blue-gacha"
version = "0.1.0"
authors = ["Rekai Musuka <rekai@musuka.dev>"]
edition = "2018"

View File

@ -1,7 +1,7 @@
use bluearch_recruitment::banner::BannerBuilder;
use bluearch_recruitment::gacha::{GachaBuilder, Recruitment};
use bluearch_recruitment::i18n::Language;
use bluearch_recruitment::student::Student;
use blue_gacha::banner::BannerBuilder;
use blue_gacha::gacha::{GachaBuilder, Recruitment};
use blue_gacha::i18n::Language;
use blue_gacha::student::Student;
use std::{fs::File, io::Read};
const THREE_STAR_RATE: f32 = 2.5;

View File

@ -21,7 +21,7 @@ impl BannerBuilder {
///
/// # Examples
/// ```
/// # use bluearch_recruitment::banner::BannerBuilder;
/// # use blue_gacha::banner::BannerBuilder;
/// let banner_builder = BannerBuilder::new("ピックアップ募集");
/// ```
pub fn new(jpn_name: &str) -> Self {
@ -39,8 +39,8 @@ impl BannerBuilder {
///
/// # Examples
/// ```
/// # use bluearch_recruitment::banner::BannerBuilder;
/// # use bluearch_recruitment::i18n::Language;
/// # use blue_gacha::banner::BannerBuilder;
/// # use blue_gacha::i18n::Language;
/// let banner_builder = BannerBuilder::new("ピックアップ募集")
/// .with_name_translation(Language::English, "Focus Recruitment");
/// ```
@ -56,8 +56,8 @@ impl BannerBuilder {
///
/// # Examples
/// ```
/// # use bluearch_recruitment::gacha::GachaBuilder;
/// # use bluearch_recruitment::banner::BannerBuilder;
/// # use blue_gacha::gacha::GachaBuilder;
/// # use blue_gacha::banner::BannerBuilder;
/// let gacha = GachaBuilder::default()
/// .with_pool(Vec::new())
/// .finish().unwrap();
@ -79,8 +79,8 @@ impl BannerBuilder {
///
/// # Examples
/// ```
/// # use bluearch_recruitment::student::Student;
/// # use bluearch_recruitment::banner::BannerBuilder;
/// # use blue_gacha::student::Student;
/// # use blue_gacha::banner::BannerBuilder;
/// let students = Vec::new();
/// let banner_builder = BannerBuilder::new("ピックアップ募集")
/// .with_sparkable_students(&students);

View File

@ -90,7 +90,7 @@ impl GachaBuilder {
///
/// # Examples
/// ```
/// # use bluearch_recruitment::gacha::GachaBuilder;
/// # use blue_gacha::gacha::GachaBuilder;
/// let gacha_builder: GachaBuilder = GachaBuilder::new(79.0, 18.5, 2.5)
/// .with_pool(Vec::new());
/// ```
@ -114,8 +114,8 @@ impl GachaBuilder {
///
/// # Examples
/// ```
/// # use bluearch_recruitment::gacha::{GachaBuilder, Rarity};
/// # use bluearch_recruitment::student::Student;
/// # use blue_gacha::gacha::{GachaBuilder, Rarity};
/// # use blue_gacha::student::Student;
///
/// let aru = Student::new("アル", Rarity::Three);
/// let hina = Student::new("ヒナ", Rarity::Three);
@ -136,8 +136,8 @@ impl GachaBuilder {
///
/// # Examples
/// ```
/// # use bluearch_recruitment::gacha::{GachaBuilder, Rarity};
/// # use bluearch_recruitment::student::{Student, PriorityStudent};
/// # use blue_gacha::gacha::{GachaBuilder, Rarity};
/// # use blue_gacha::student::{Student, PriorityStudent};
/// let aru = Student::new("アル", Rarity::Three).into_priority_student(3.5 / 2.0);
/// let hina = Student::new("ヒナ", Rarity::Three).into_priority_student(3.5 / 2.0);
/// let pool = vec![aru.student().clone(), hina.student().clone()];
@ -160,8 +160,8 @@ impl GachaBuilder {
///
/// # Examples
/// ```
/// # use bluearch_recruitment::gacha::{GachaBuilder, Gacha, Rarity};
/// # use bluearch_recruitment::student::Student;
/// # use blue_gacha::gacha::{GachaBuilder, Gacha, Rarity};
/// # use blue_gacha::student::Student;
/// let aru = Student::new("アル", Rarity::Three);
/// let hina = Student::new("ヒナ", Rarity::Three);
/// let gacha = GachaBuilder::default()
@ -196,7 +196,7 @@ impl Gacha {
///
/// # Examples
/// ```
/// # use bluearch_recruitment::gacha::{GachaBuilder, Rarity};
/// # use blue_gacha::gacha::{GachaBuilder, Rarity};
/// let gacha = GachaBuilder::new(79.0, 18.5, 2.5)
/// .with_pool(Vec::new())
/// .finish()

View File

@ -25,8 +25,8 @@ impl Student {
///
/// # Examples
/// ```
/// # use bluearch_recruitment::gacha::Rarity;
/// # use bluearch_recruitment::student::Student;
/// # use blue_gacha::gacha::Rarity;
/// # use blue_gacha::student::Student;
///
/// let mutsuki = Student::new("ムツキ", Rarity::Two);
/// ```
@ -45,9 +45,9 @@ impl Student {
///
/// # Examples
/// ```
/// # use bluearch_recruitment::gacha::Rarity;
/// # use bluearch_recruitment::student::Student;
/// # use bluearch_recruitment::i18n::Language;
/// # use blue_gacha::gacha::Rarity;
/// # use blue_gacha::student::Student;
/// # use blue_gacha::i18n::Language;
///
/// let mut mutsuki = Student::new("ムツキ", Rarity::Two);
/// mutsuki.add_translation(Language::English, "Mutsuki");