From 2e912e31ef85164e799b46580e3295dcac99ee90 Mon Sep 17 00:00:00 2001 From: KiriX Date: Sat, 17 Jan 2009 17:18:54 +0300 Subject: [PATCH] [7095] Experience basic gain coefficient for expansion 2 zones. Signed-off-by: VladimirMangos --- src/game/Formulas.h | 13 +++++++++++-- src/shared/revision_nr.h | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/game/Formulas.h b/src/game/Formulas.h index cea5346fe..decad556f 100644 --- a/src/game/Formulas.h +++ b/src/game/Formulas.h @@ -78,8 +78,17 @@ namespace MaNGOS 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; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 73f701324..9865d25e1 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "7094" + #define REVISION_NR "7095" #endif // __REVISION_NR_H__ -- 2.11.4.GIT