TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Trinity::Currency Namespace Reference

Functions

uint32 ConquestRatingCalculator (uint32 rate)
 
uint32 BgConquestRatingCalculator (uint32 rate)
 

Function Documentation

uint32 Trinity::Currency::BgConquestRatingCalculator ( uint32  rate)
inline
244  {
245  // WowWiki: Battleground ratings receive a bonus of 22.2% to the cap they generate
246  return uint32((ConquestRatingCalculator(rate) * 1.222f) + 0.5f);
247  }
uint32 ConquestRatingCalculator(uint32 rate)
Definition: Formulas.h:232
uint32_t uint32
Definition: g3dmath.h:168

+ Here is the call graph for this function:

uint32 Trinity::Currency::ConquestRatingCalculator ( uint32  rate)
inline
233  {
234  if (rate <= 1500)
235  return 1350; // Default conquest points
236  else if (rate > 3000)
237  rate = 3000;
238 
239  // http://www.arenajunkies.com/topic/179536-conquest-point-cap-vs-personal-rating-chart/page__st__60#entry3085246
240  return uint32(1.4326 * ((1511.26 / (1 + 1639.28 / exp(0.00412 * rate))) + 850.15));
241  }
Quat exp(const Quat &q)
Definition: Quat.h:729
uint32_t uint32
Definition: g3dmath.h:168

+ Here is the call graph for this function:

+ Here is the caller graph for this function: