SimulationCraft
SimulationCraft is a tool to explore combat mechanics in the popular MMO RPG World of Warcraft (tm).
real_ppm_t Struct Reference

Public Types

enum  blp : int { BLP_DISABLED = 0, BLP_ENABLED }
 

Public Member Functions

 real_ppm_t (util::string_view name, player_t *p, double frequency=0, double mod=1.0, unsigned s=RPPM_NONE, blp b=BLP_ENABLED)
 
 real_ppm_t (util::string_view name, player_t *p, const spell_data_t *data, const item_t *item=nullptr)
 
void set_scaling (unsigned s)
 
void set_modifier (double mod)
 
const std::string & name () const
 
void set_frequency (double frequency)
 
void set_blp_state (blp state)
 
unsigned get_scaling () const
 
double get_frequency () const
 
double get_modifier () const
 
double get_rppm () const
 
blp get_blp_state () const
 
void set_last_trigger_attempt (timespan_t ts)
 
void set_accumulated_blp (timespan_t ts)
 
void reset ()
 
bool trigger ()
 

Static Public Member Functions

static double proc_chance (player_t *player, double PPM, timespan_t last_trigger, timespan_t accumulated_bad_luck_protection, unsigned scales_with, blp blp_state)