pub struct AbilityCaseEvolveRule {
pub from_rarity_id: AbilityRarityId,
pub small_roll_tries: i64,
pub big_roll_tries: i64,
pub to_rarity_weights: Vec<AbilityCaseRarityWeight>,
}Fields§
§from_rarity_id: AbilityRarityIdРедкость шарда, для которой применяется evolve.
small_roll_tries: i64Количество независимых попыток evolve на маленькую крутку.
big_roll_tries: i64Количество независимых попыток evolve на большую крутку.
to_rarity_weights: Vec<AbilityCaseRarityWeight>Вероятности целевых редкостей за одну попытку evolve. Сумма весов <= 1.0, остаток — отсутствие evolve.
Trait Implementations§
Source§impl Clone for AbilityCaseEvolveRule
impl Clone for AbilityCaseEvolveRule
Source§fn clone(&self) -> AbilityCaseEvolveRule
fn clone(&self) -> AbilityCaseEvolveRule
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AbilityCaseEvolveRule
impl Debug for AbilityCaseEvolveRule
Source§impl Default for AbilityCaseEvolveRule
impl Default for AbilityCaseEvolveRule
Source§fn default() -> AbilityCaseEvolveRule
fn default() -> AbilityCaseEvolveRule
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AbilityCaseEvolveRule
impl<'de> Deserialize<'de> for AbilityCaseEvolveRule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for AbilityCaseEvolveRule
impl JsonSchema for AbilityCaseEvolveRule
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for AbilityCaseEvolveRule
impl Serialize for AbilityCaseEvolveRule
Source§impl Tsify for AbilityCaseEvolveRule
impl Tsify for AbilityCaseEvolveRule
const DECL: &'static str = "export interface AbilityCaseEvolveRule {\n /**\n * \u{420}\u{435}\u{434}\u{43a}\u{43e}\u{441}\u{442}\u{44c} \u{448}\u{430}\u{440}\u{434}\u{430}, \u{434}\u{43b}\u{44f} \u{43a}\u{43e}\u{442}\u{43e}\u{440}\u{43e}\u{439} \u{43f}\u{440}\u{438}\u{43c}\u{435}\u{43d}\u{44f}\u{435}\u{442}\u{441}\u{44f} evolve.\n */\n from_rarity_id: AbilityRarityId;\n /**\n * \u{41a}\u{43e}\u{43b}\u{438}\u{447}\u{435}\u{441}\u{442}\u{432}\u{43e} \u{43d}\u{435}\u{437}\u{430}\u{432}\u{438}\u{441}\u{438}\u{43c}\u{44b}\u{445} \u{43f}\u{43e}\u{43f}\u{44b}\u{442}\u{43e}\u{43a} evolve \u{43d}\u{430} \u{43c}\u{430}\u{43b}\u{435}\u{43d}\u{44c}\u{43a}\u{443}\u{44e} \u{43a}\u{440}\u{443}\u{442}\u{43a}\u{443}.\n */\n small_roll_tries: number;\n /**\n * \u{41a}\u{43e}\u{43b}\u{438}\u{447}\u{435}\u{441}\u{442}\u{432}\u{43e} \u{43d}\u{435}\u{437}\u{430}\u{432}\u{438}\u{441}\u{438}\u{43c}\u{44b}\u{445} \u{43f}\u{43e}\u{43f}\u{44b}\u{442}\u{43e}\u{43a} evolve \u{43d}\u{430} \u{431}\u{43e}\u{43b}\u{44c}\u{448}\u{443}\u{44e} \u{43a}\u{440}\u{443}\u{442}\u{43a}\u{443}.\n */\n big_roll_tries: number;\n /**\n * \u{412}\u{435}\u{440}\u{43e}\u{44f}\u{442}\u{43d}\u{43e}\u{441}\u{442}\u{438} \u{446}\u{435}\u{43b}\u{435}\u{432}\u{44b}\u{445} \u{440}\u{435}\u{434}\u{43a}\u{43e}\u{441}\u{442}\u{435}\u{439} \u{437}\u{430} \u{43e}\u{434}\u{43d}\u{443} \u{43f}\u{43e}\u{43f}\u{44b}\u{442}\u{43a}\u{443} evolve.\n * \u{421}\u{443}\u{43c}\u{43c}\u{430} \u{432}\u{435}\u{441}\u{43e}\u{432} <= 1.0, \u{43e}\u{441}\u{442}\u{430}\u{442}\u{43e}\u{43a} \u{2014} \u{43e}\u{442}\u{441}\u{443}\u{442}\u{441}\u{442}\u{432}\u{438}\u{435} evolve.\n */\n to_rarity_weights: AbilityCaseRarityWeight[];\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Auto Trait Implementations§
impl Freeze for AbilityCaseEvolveRule
impl RefUnwindSafe for AbilityCaseEvolveRule
impl Send for AbilityCaseEvolveRule
impl Sync for AbilityCaseEvolveRule
impl Unpin for AbilityCaseEvolveRule
impl UnwindSafe for AbilityCaseEvolveRule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more