diff options
| author | treeston <treeston.mmoc@gmail.com> | 2017-06-15 04:19:12 +0200 |
|---|---|---|
| committer | Carbenium <carbenium@outlook.com> | 2020-07-16 22:00:29 +0200 |
| commit | 2d191a668019703cf0e32700c586e94679ea04c7 (patch) | |
| tree | f501856c7d906f4bded3c7a5b39a984a85ca8192 /src/server/game/Entities | |
| parent | c12ee97f122acfd77bd81cf178a77d5054c312b6 (diff) | |
Fixes to all-reputation and all-skill custom option handling:
- Move on-create customs (all explored, all reputations) to CharacterHandler::HandlePlayerLogin for first login. Fixes #19839.
- Add Wrath factions to all reputations custom (it only had BC factions).
- Remove unused ReputationMgr::SendStates. Add ReputationMgr::SendState handling for sending all updated states in arbitrary order if nullptr is passed (used in point #1).
- Fix all weapon skills max custom to properly apply on learning new weapon skills.
(cherry picked from commit 4b6351e6a5a2e2c986f3c0ea8e25bc76055c5b2c)
Diffstat (limited to 'src/server/game/Entities')
| -rw-r--r-- | src/server/game/Entities/Player/Player.cpp | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index 0ef75e6c17c..35cfba6fbaa 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -523,56 +523,6 @@ bool Player::Create(ObjectGuid::LowType guidlow, WorldPackets::Character::Charac SetCreateCurrency(CURRENCY_TYPE_APEXIS_CRYSTALS, sWorld->getIntConfig(CONFIG_CURRENCY_START_APEXIS_CRYSTALS)); SetCreateCurrency(CURRENCY_TYPE_JUSTICE_POINTS, sWorld->getIntConfig(CONFIG_CURRENCY_START_JUSTICE_POINTS)); - // start with every map explored - if (sWorld->getBoolConfig(CONFIG_START_ALL_EXPLORED)) - { - for (uint16 i = 0; i < PLAYER_EXPLORED_ZONES_SIZE; ++i) - SetUpdateFieldValue(m_values.ModifyValue(&Player::m_activePlayerData).ModifyValue(&UF::ActivePlayerData::ExploredZones, i), UI64LIT(0xFFFFFFFFFFFFFFFF)); - } - - //Reputations if "StartAllReputation" is enabled, -- @todo Fix this in a better way - if (sWorld->getBoolConfig(CONFIG_START_ALL_REP)) - { - GetReputationMgr().SetReputation(sFactionStore.LookupEntry(942), 42999); - GetReputationMgr().SetReputation(sFactionStore.LookupEntry(935), 42999); - GetReputationMgr().SetReputation(sFactionStore.LookupEntry(936), 42999); - GetReputationMgr().SetReputation(sFactionStore.LookupEntry(1011), 42999); - GetReputationMgr().SetReputation(sFactionStore.LookupEntry(970), 42999); - GetReputationMgr().SetReputation(sFactionStore.LookupEntry(967), 42999); - GetReputationMgr().SetReputation(sFactionStore.LookupEntry(989), 42999); - GetReputationMgr().SetReputation(sFactionStore.LookupEntry(932), 42999); - GetReputationMgr().SetReputation(sFactionStore.LookupEntry(934), 42999); - GetReputationMgr().SetReputation(sFactionStore.LookupEntry(1038), 42999); - GetReputationMgr().SetReputation(sFactionStore.LookupEntry(1077), 42999); - - // Factions depending on team, like cities and some more stuff - switch (GetTeam()) - { - case ALLIANCE: - GetReputationMgr().SetReputation(sFactionStore.LookupEntry(72), 42999); - GetReputationMgr().SetReputation(sFactionStore.LookupEntry(47), 42999); - GetReputationMgr().SetReputation(sFactionStore.LookupEntry(69), 42999); - GetReputationMgr().SetReputation(sFactionStore.LookupEntry(930), 42999); - GetReputationMgr().SetReputation(sFactionStore.LookupEntry(730), 42999); - GetReputationMgr().SetReputation(sFactionStore.LookupEntry(978), 42999); - GetReputationMgr().SetReputation(sFactionStore.LookupEntry(54), 42999); - GetReputationMgr().SetReputation(sFactionStore.LookupEntry(946), 42999); - break; - case HORDE: - GetReputationMgr().SetReputation(sFactionStore.LookupEntry(76), 42999); - GetReputationMgr().SetReputation(sFactionStore.LookupEntry(68), 42999); - GetReputationMgr().SetReputation(sFactionStore.LookupEntry(81), 42999); - GetReputationMgr().SetReputation(sFactionStore.LookupEntry(911), 42999); - GetReputationMgr().SetReputation(sFactionStore.LookupEntry(729), 42999); - GetReputationMgr().SetReputation(sFactionStore.LookupEntry(941), 42999); - GetReputationMgr().SetReputation(sFactionStore.LookupEntry(530), 42999); - GetReputationMgr().SetReputation(sFactionStore.LookupEntry(947), 42999); - break; - default: - break; - } - } - // Played time m_Last_tick = time(nullptr); m_Played_time[PLAYED_TIME_TOTAL] = 0; |
