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

Public Member Functions

 weapon_t (weapon_e t=WEAPON_NONE, double d=0.0, timespan_t st=timespan_t::from_seconds(2.0), school_e s=SCHOOL_PHYSICAL)
 
weapon_e group () const
 
timespan_t get_normalized_speed ()
 Normalized weapon speed for weapon damage calculations. More...
 
double proc_chance_on_swing (double PPM, timespan_t adjusted_swing_time=timespan_t::zero())
 

Public Attributes

weapon_e type
 
school_e school
 
double damage
 
double dps
 
double min_dmg
 
double max_dmg
 
timespan_t swing_time
 
slot_e slot
 
int buff_type
 
double buff_value
 
double bonus_dmg
 

Member Function Documentation

◆ get_normalized_speed()

timespan_t weapon_t::get_normalized_speed ( )
inline

Normalized weapon speed for weapon damage calculations.

  • WEAPON_SMALL: 1.7s
  • WEAPON_1H: 2.4s
  • WEAPON_2h: 3.3s
  • WEAPON_RANGED: 2.8s