genshin-manager
Version:
<div align="center"> <p> <a href="https://www.npmjs.com/package/genshin-manager"><img src="https://img.shields.io/npm/v/genshin-manager.svg?maxAge=3600" alt="npm version" /></a> <a href="https://www.npmjs.com/package/genshin-manager"><img src="https:
45 lines (44 loc) • 891 B
TypeScript
import { FightPropType } from '../types';
/**
* Class of stat property
*/
export declare class StatProperty {
/**
* Stat type
*/
readonly type: FightPropType;
/**
* Stat name
*/
readonly name: string;
/**
* Whether the stat is a percent value
*/
readonly isPercent: boolean;
/**
* Stat value
*/
readonly value: number;
/**
* Create a StatProperty
* @param type FightPropType
* @param value Value of the stat
*/
constructor(type: FightPropType, value: number);
/**
* Get value text
* @returns Value text
*/
get valueText(): string;
/**
* Get multiplied value
* @returns Multiplied value
*/
get multipliedValue(): number;
/**
* IEEE 754 rounding method
* @param v Value
* @returns Rounded value
*/
private cleanUp;
}