mirror of
https://github.com/mangosfour/server.git
synced 2025-12-19 22:37:05 +00:00
[7095] Experience basic gain coefficient for expansion 2 zones.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
2cfebd6a57
commit
778d4f9741
2 changed files with 12 additions and 3 deletions
|
|
@ -78,8 +78,17 @@ namespace MaNGOS
|
||||||
|
|
||||||
inline uint32 BaseGain(uint32 pl_level, uint32 mob_level, ContentLevels content)
|
inline uint32 BaseGain(uint32 pl_level, uint32 mob_level, ContentLevels content)
|
||||||
{
|
{
|
||||||
//TODO: need modifier for CONTENT_71_80 different from CONTENT_61_70?
|
uint32 nBaseExp;
|
||||||
const uint32 nBaseExp = content == CONTENT_1_60 ? 45 : 235;
|
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 )
|
if( mob_level >= pl_level )
|
||||||
{
|
{
|
||||||
uint32 nLevelDiff = mob_level - pl_level;
|
uint32 nLevelDiff = mob_level - pl_level;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7094"
|
#define REVISION_NR "7095"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue