mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
22 lines
449 B
C++
22 lines
449 B
C++
#ifndef _PLAYERBOT_DUNGEONUTILS_H
|
|
#define _PLAYERBOT_DUNGEONUTILS_H
|
|
#include "Player.h"
|
|
|
|
template<class T> inline
|
|
const T& DUNGEON_MODE(Player* bot, const T& normal5, const T& heroic10)
|
|
{
|
|
switch (bot->GetMap()->GetDifficulty())
|
|
{
|
|
case DUNGEON_DIFFICULTY_NORMAL:
|
|
return normal5;
|
|
case DUNGEON_DIFFICULTY_HEROIC:
|
|
return heroic10;
|
|
default:
|
|
break;
|
|
}
|
|
|
|
return heroic10;
|
|
}
|
|
|
|
#endif
|