mirror of
https://github.com/mangosfour/server.git
synced 2025-12-28 13:37:13 +00:00
[9318] Update quest XP formula
Use dbc store as base for real xp rewarded and also display xp reward accordingly in related packets. Note there are still some smaller things that may need smaller adjustments and tweaks, these are on the todo-list. Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
87a35b0489
commit
a9a16061d5
7 changed files with 102 additions and 36 deletions
|
|
@ -105,6 +105,8 @@ MapDifficultyMap sMapDifficultyMap;
|
|||
DBCStorage <MovieEntry> sMovieStore(MovieEntryfmt);
|
||||
|
||||
DBCStorage <QuestSortEntry> sQuestSortStore(QuestSortEntryfmt);
|
||||
DBCStorage <QuestXPLevel> sQuestXPLevelStore(QuestXPLevelfmt);
|
||||
|
||||
DBCStorage <PvPDifficultyEntry> sPvPDifficultyStore(PvPDifficultyfmt);
|
||||
|
||||
DBCStorage <RandomPropertiesPointsEntry> sRandomPropertiesPointsStore(RandomPropertiesPointsfmt);
|
||||
|
|
@ -320,7 +322,7 @@ void LoadDBCStores(const std::string& dataPath)
|
|||
exit(1);
|
||||
}
|
||||
|
||||
const uint32 DBCFilesCount = 82;
|
||||
const uint32 DBCFilesCount = 83;
|
||||
|
||||
barGoLink bar( DBCFilesCount );
|
||||
|
||||
|
|
@ -420,6 +422,7 @@ void LoadDBCStores(const std::string& dataPath)
|
|||
|
||||
LoadDBC(availableDbcLocales,bar,bad_dbc_files,sMovieStore, dbcPath,"Movie.dbc");
|
||||
LoadDBC(availableDbcLocales,bar,bad_dbc_files,sQuestSortStore, dbcPath,"QuestSort.dbc");
|
||||
LoadDBC(availableDbcLocales,bar,bad_dbc_files,sQuestXPLevelStore, dbcPath,"QuestXP.dbc");
|
||||
LoadDBC(availableDbcLocales,bar,bad_dbc_files,sPvPDifficultyStore, dbcPath,"PvpDifficulty.dbc");
|
||||
for(uint32 i = 0; i < sPvPDifficultyStore.GetNumRows(); ++i)
|
||||
if (PvPDifficultyEntry const* entry = sPvPDifficultyStore.LookupEntry(i))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue