mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 01:37:05 +00:00
[12778] Add 5th field in reputation_spillover_template for Bilgewater Cartel/Gilneas spillover reputation.
This commit is contained in:
parent
fccb0cffc6
commit
a91293fe24
4 changed files with 27 additions and 3 deletions
|
|
@ -6728,7 +6728,7 @@ void ObjectMgr::LoadReputationSpilloverTemplate()
|
|||
m_RepSpilloverTemplateMap.clear(); // for reload case
|
||||
|
||||
uint32 count = 0;
|
||||
QueryResult* result = WorldDatabase.Query("SELECT faction, faction1, rate_1, rank_1, faction2, rate_2, rank_2, faction3, rate_3, rank_3, faction4, rate_4, rank_4 FROM reputation_spillover_template");
|
||||
QueryResult* result = WorldDatabase.Query("SELECT faction, faction1, rate_1, rank_1, faction2, rate_2, rank_2, faction3, rate_3, rank_3, faction4, rate_4, rank_4, faction5, rate_5, rank_5 FROM reputation_spillover_template");
|
||||
|
||||
if (!result)
|
||||
{
|
||||
|
|
@ -6765,6 +6765,11 @@ void ObjectMgr::LoadReputationSpilloverTemplate()
|
|||
repTemplate.faction[3] = fields[10].GetUInt32();
|
||||
repTemplate.faction_rate[3] = fields[11].GetFloat();
|
||||
repTemplate.faction_rank[3] = fields[12].GetUInt32();
|
||||
repTemplate.faction[4] = fields[13].GetUInt32();
|
||||
repTemplate.faction_rate[4] = fields[14].GetFloat();
|
||||
repTemplate.faction_rank[4] = fields[15].GetUInt32();
|
||||
|
||||
|
||||
|
||||
FactionEntry const* factionEntry = sFactionStore.LookupEntry(factionId);
|
||||
|
||||
|
|
@ -6830,6 +6835,13 @@ void ObjectMgr::LoadReputationSpilloverTemplate()
|
|||
sLog.outErrorDb("Faction (faction.dbc) %u does not exist but is used in `reputation_spillover_template`", repTemplate.faction[3]);
|
||||
continue;
|
||||
}
|
||||
FactionEntry const* factionEntry4 = sFactionStore.LookupEntry(repTemplate.faction[4]);
|
||||
if (repTemplate.faction[4] && !factionEntry4)
|
||||
{
|
||||
sLog.outErrorDb("Faction (faction.dbc) %u does not exist but is used in `reputation_spillover_template`", repTemplate.faction[4]);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
m_RepSpilloverTemplateMap[factionId] = repTemplate;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue