Added support for all raid quest types

Added new config option to allow non-raid quest progression when in raid group

code by Vladimir

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-07-12 14:38:24 +02:00
parent 7a8d464b19
commit 5ad02b578d
7 changed files with 24 additions and 5 deletions
+9 -1
View File
@@ -175,7 +175,7 @@ uint32 Quest::XPValue(Player *pPlayer) const
if (!xpentry)
return 0;
int diffFactor = 2 * (quest_level - pPlayer->getLevel()) + 20;
int32 diffFactor = 2 * (quest_level - pPlayer->getLevel()) + 20;
if (diffFactor < 1)
diffFactor = 1;
else if (diffFactor > 10)
@@ -204,3 +204,11 @@ int32 Quest::GetRewOrReqMoney() const
return int32(RewOrReqMoney * sWorld.getRate(RATE_DROP_MONEY));
}
bool Quest::IsAllowedInRaid() const
{
if (IsRaidQuest())
return true;
return sWorld.getConfig(CONFIG_QUEST_IGNORE_RAID);
}