mirror of https://github.com/Paoda/blue-gacha.git
feat: rename from bluearch-recruitment to blue-gacha
This commit is contained in:
parent
b7c673cdee
commit
3c47ec8d4f
|
@ -1,5 +1,5 @@
|
|||
[package]
|
||||
name = "bluearch-recruitment"
|
||||
name = "blue-gacha"
|
||||
version = "0.1.0"
|
||||
authors = ["Rekai Musuka <rekai@musuka.dev>"]
|
||||
edition = "2018"
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
16
src/gacha.rs
16
src/gacha.rs
|
@ -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()
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue