diff options
| author | megamage <none@none> | 2009-01-17 17:54:11 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2009-01-17 17:54:11 -0600 |
| commit | 02c060be05b27dcd2d5d662027bae7fd91c3abfc (patch) | |
| tree | 1e3bddc4c459f48445cf45ff7e5253bd08cbe450 /src/game/Formulas.h | |
| parent | 2cf1a3be1b310feafc43781ab9178f0c1f35d352 (diff) | |
*Update to Mangos 7100.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Formulas.h')
| -rw-r--r-- | src/game/Formulas.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/game/Formulas.h b/src/game/Formulas.h index a3af5adedbe..cdfe971eba6 100644 --- a/src/game/Formulas.h +++ b/src/game/Formulas.h @@ -80,8 +80,17 @@ namespace Trinity inline uint32 BaseGain(uint32 pl_level, uint32 mob_level, ContentLevels content) { - //TODO: need modifier for CONTENT_71_80 different from CONTENT_61_70? - const uint32 nBaseExp = content == CONTENT_1_60 ? 45 : 235; + uint32 nBaseExp; + switch(content) + { + case CONTENT_1_60: nBaseExp = 45; break; + case CONTENT_61_70: nBaseExp = 235; break; + case CONTENT_71_80: nBaseExp = 580; break; + default: + sLog.outError("BaseGain: Unsupported content level %u",content); + nBaseExp = 45; break; + } + if( mob_level >= pl_level ) { uint32 nLevelDiff = mob_level - pl_level; |
