logo
pub struct LevelUpCostDB {
    pub stage0: Vec<usize>,
    pub elite1: usize,
    pub stage1: Vec<usize>,
    pub elite2: usize,
    pub stage2: Vec<usize>,
}
Expand description

计算干员升级所需的所有数据

Fields

stage0: Vec<usize>

精 0 每升一级需要消耗的资源

elite1: usize

精 1 需要的资源

stage1: Vec<usize>

精 1 每升一级需要消耗的资源

elite2: usize

精 2 需要的资源

stage2: Vec<usize>

精 2 每升一级需要消耗的资源

Implementations

升级 1 星干员所需要的经验值

升级 1 星干员所需要的龙门币

升级 1 星干员所需要的经验值

升级 2 星干员所需要的龙门币

升级 1 星干员所需要的经验值

升级 3 星干员所需要的龙门币

升级 1 星干员所需要的经验值

升级 4 星干员所需要的龙门币

升级 1 星干员所需要的经验值

升级 5 星干员所需要的龙门币

升级 1 星干员所需要的经验值

升级 6 星干员所需要的龙门币

该干员是否能精1

该干员是否能精2

该干员各阶段的最大等级

需要花费的资源量

列出每个阶段需要花费的资源量

带有容错机制
  • 如果等级是 0, 视为 1 级
  • 如果等级上限超出实际上限, 超出部分填 0, 不影响结果

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.