aboutsummaryrefslogtreecommitdiff
path: root/src/common/Utilities
AgeCommit message (Collapse)Author
2021-12-17Core/Misc: Remove Trinity::Containers::Size (duplicate of advstd::size)Treeston
(cherry picked from commit f1d9a36c5fce23ae9c68e221521a2b492709f8e5)
2021-12-17Core/AI: No longer do strange things when told to enter evade mode while ↵Treeston
there's no need to do so, typically by terrible legacy code. (cherry picked from commit 163f44c1b08cc043b114585922bd08664434bf92)
2021-12-16Core/Misc: Handle timezones for hour-specific events specifieds in ↵Giacomo Pozzoni
worldserver.conf (#23540) * Core/Misc: Handle timezones for hour-specific events specifieds in worldserver.conf * Handle Respawn.RestartQuietTime too * Handle XP.Boost.Daymask too * Core/Misc: Code cleanup * Core/Misc: Code cleanup * Update Util.cpp * Update boosted_xp.cpp (cherry picked from commit aeddd417c460c43d885cb89ceaa6e051c44b1d27)
2021-12-16build fix after d1dc0e2Treeston
(cherry picked from commit c0f8e8535a025b29557385c95338b642fbda39e8)
2021-12-01Core/Calendar: Improve calendar timezone handlingjackpoz
Improve calendar timezone handling by at least creating events with the correct time if both client and server are in the same timezone. There is currently no information received from the client about in which timezone it is. (cherry picked from commit b33934f6ce9b0227597c712dd6a76b7ed49deea3)
2021-11-30Core/Movement: Add time synchronisation (#18189)Chaouki Dhib
(cherry picked from commit 975f1e364a6a68be2beca261a64ea8aecc16f6f6)
2021-11-23Core/Misc: Added lambda support to EventProcessorShauren
Closes #22909 (cherry picked from commit 813f693768ee94864b0d24423b9265bde2c9903d)
2021-11-23Shared/Utilities: Handle string format exceptionsGiacomo Pozzoni
Handle StringFormat() exceptions in case of malformed string format to avoid causing unhandled exception crashes (cherry picked from commit c79811de4fbf2b22cd74f55853516c7fc307055f)
2021-11-21Core/Utils: Handle UTF-8 conversion errorsjackpoz
Replace the output string when a UTF-8 conversion error happen with an error message instead of using an empty string, swallowing any message that the caller wanted to log. (cherry picked from commit bdb7e6e5e81e0d9376c9c803bae9da470b02d8cd)
2021-11-16Core/Utils: some code style adjustments, 6d6077e follow-upTreeston
(cherry picked from commit 4c3af3b636d5e9279fb694c9d9a5a4422ad773d0)
2021-11-16Core/Utils: Fix Unicode handlingTreeston
(cherry picked from commit 6d6077e36fe9c5cb8ea8e4f981d637e72ee87037)
2021-11-15Core/Misc: Partial merge of 3.3.5-dbedit:Treeston
- Added SmartEnum.h for enum iteration, stringification, and more, courtesy of krabicezpapundeklu/smart_enum - Moved a bunch of enums in SharedDefines.h to the new system - Miscellaneous utility methods ported Core/Util: Redesign SmartEnum to properly work for large enums (>64 entries) and play nice with IDEs (PR #22768) (cherry picked from commit 338e8ba0fea8b4b15120c96fff15a6c4b1a52593) (cherry picked from commit f7ca0877a3736000a6e3b4ed09ac5f08b4d8e3f0) (cherry picked from commit 207093475a177e9fd29696e80fdd06a11324782d) (cherry picked from commit ee68cf33921944fd3f8c188044906998cf10ff2a) (cherry picked from commit c16d461e16f0704bb11040faff30953d33ba2188) (cherry picked from commit f6b0d99e2c0bc22b44d6f3cfdae50cbba7d51de8) (cherry picked from commit bc1f456125c1b6c90617a514152d69c40ce64886)
2021-10-31Core/Chat: Unify chat hyperlink parsing (PR #22417)Treeston
- Validate most link properties all the time - If enabled, also validate link text (needs locale) - Instead of blocking the entire message, sanitize it - Apply filtering to DND/AFK messages. Closes #22399 (cherry picked from commit f27284594b18000a1c098262728fb19fdc63fc6c)
2021-10-25Scripts/Commands: New argument parsing methodology (PR #22363)Treeston
- Detect the arguments accepted by the command handler - Tokenize out those arguments automatically and feed them to the handler - Unmatched rest of the string can be accepted by trailing char const* or CommandArgs* (cherry picked from commit 66a87c4642d25f27ca24254cfeb0a0c4b21036b1)
2021-10-23Utilities/EventProcessor: Added a overload to AddEventAtOffset accept rand timeKeader
(cherry picked from commit 4d9c36c8c3bc59afb74ffe336ff121c06812d645)
2021-10-15Common/Containers: Eliminate a edge case that could potentially lead to ↵Treeston
object invalidation. (cherry picked from commit 64a61e03ab0799b5437ddb9fe702c4912f3f9dd9)
2021-10-14Misc: Pass std::chrono types by value everywhere.Treeston
(cherry picked from commit 2ef9d301f0869b443122e2ba543af054c5b0e53c)
2021-09-24Core/Movement: Replace old TargetedMovementGenerator into ↵Treeston
ChaseMovementGenerator and FollowMovementGenerator, full rewrite for both. - Chase to angle is now functional. Pets use this to chase behind the target. Closes #19925. - Chase to arbitrary range interval works. Not used anywhere, but you can technically make hunter-like mobs. - Pets now follow the hunter cleanly and without stutter stepping. Also fix some other things. Closes #8924. (cherry picked from commit 2a84562dc85516f432bb1e5de9add23c28b26ce4)
2021-08-31Core/Misc: Fix windows nopch buildShauren
Closes #25363 (cherry picked from commit 6ad58d604a63bacc13ee92c525189931d41d1e91)
2021-06-19Core/Movement: Creatures' idle movement generator can no longer override ↵Treeston
player mover control. Tagging #20310, partial fix. (cherry picked from commit d02f481d9ac8e1d1a7716368f609d53a5add0960)
2021-06-13Core/Misc: Add container utility function ↵Shauren
Trinity::Containers::EnsureWritableVectorIndex to replace if (i >= vec.size()) vec.resize(i + 1) copypaste everywhere
2021-05-03Core/Chat: Chat translation improvementsShauren
* Remove hyperlinks from translated chat messages * Implement case preservation rules depending on receiver client locale
2021-03-05Core/Spells Handle auras 328 & 396 (SPELL_AURA_TRIGGER_SPELL_ON_POWER_*)Traesh
2021-02-25Some misc streamlining/cleanup:Treeston
- std::chrono overloads for SummonCreature - Removed misleading const qualifier from SummonCreature (it wasn't being honored) - Rename parameters of SummonCreature to follow convention - EventProcessor has a new method (AddEventAtOffset) that adds an event...at an offset. Genius. PS: Hi there Keader. (cherry picked from commit 76a4c7d9748fdbfa925e81a3257acdee53d4f86e)
2020-12-08Core/Misc: Added another overload to MakeIteratorPair (and constexpr ↵Shauren
IteratorPair)
2020-12-08Core/Misc: Add std::clamp to advstdShauren
2020-09-04Core/Misc: Port all the refactors sneaked in master to 3.3.5 include cleanup ↵Shauren
port
2020-08-18Utilities/Containers: New RandomResize implementation with guaranteed ↵Treeston
asymptotic linear time for all container types (#19974) (cherry picked from commit ac50034df7fa6cf67b95e0920ca8fbbe8001a510)
2020-08-16Core/Spells: enable and implement SMSG_MISSILE_CANCEL (#25215)Ovah
2020-08-14Core/Misc: Replace NULL with nullptrShauren
2020-08-13[3.3.5] Combat/Threat rewrite - prep & refactor (#19966)Treeston
* Combat/Threat rewrite (PR #19930) prep work. Mostly refactors, and a compatibility layer on ThreatManager/HostileReference that allows scripts to be changed already. (cherry picked from commit e2a1ccd118d129b96e09ff1a15ed0adb1d4a3897)
2020-08-03Core/Authserver: Split SRP6 into its own file (PR #25131)Treeston
(cherry picked from commit 7f7fa8b23d71297f75ff4ca3c1d6e38333a5cc76)
2020-08-03Core/Authserver: Auth cleanup phase 1b, the "I didn't hit Stage All" commit. ↵Treeston
Sorry. (5e36bf7 follow-up) (cherry picked from commit 4f570e5d08d0338ac16aace81865c04b0605b0a5)
2020-08-03Core/Authserver: Authserver cleanup (PR#25093)Treeston
- Fix a handful of 1/256 bugs with most significant byte zero in BigNumber - Get rid of (most of) the C-style arrays in authserver - CryptoRandom as a unified source for cryptographic randomness - Bring our other crypto APIs into 2020 - BigNumber usability improvements - Authserver is now actually readable as a result of all of the above (cherry picked from commit 210176fd915cf4ba16f428d3c1a249a71f4aa7a7)
2020-06-12Core/Spells: Implement using different difficulty data from all spell ↵Shauren
related db2s, not just SpellEffect and SpellPower
2020-05-21Core/Misc: GCC build and warning fixesShauren
2020-04-27Core/Misc: Enum flag v3 - allow enabling flag operations directly after enum ↵Shauren
definition when inside namespaces
2020-04-26Core/Misc: Improve enum flags with type safe operatorsShauren
2020-04-26Core: Fix clang 10 warningsShauren
2020-04-24Core/Auras: reworked multiplicative AuraEffects calculationariel-
- Splitted containers for flat modifiers and pct modifiers, as they now have different handling - Amount is now multiplied only on apply; on unapply, iterate through auras and reset the counter - Fixes many cases of rounding error due to applying/unapplying of small factors - Allows amounts to be zeroed (ie with an AuraEffect of amount -100) - Do a partial revert of 6dc37a9add631888fe5fbcd43d19c2b07bed8a57, auras should update amounts only for items allowed (ie no more giving crit to a sword while having an axe in the other hand and being Poleaxe spec'd) - SPELL_AURA_MOD_SCALE now scales additively, rather than multiplicatively (checked in sniffs) Closes #18687 (cherry picked from commit c69a7d1223b2ce108a221e5cc70f76cd80ae6675)
2020-04-20Core/AuctionHouse: After taking a break at the start of patch 8.3 auction ↵Shauren
house is now back in business.
2020-04-14Core/DBLayer: Implement async transaction completion callbacksShauren
2020-04-12Core/Entities: ObjectGuid improvementsShauren
* Support creation of all guid types * Change ToString to output client compatible text (fixes calendar and auction mails) * Fix saving and loading item soulbound trade allowed traders * constexpr EnumClassFlag
2020-04-03Core/Entities: Fixed saving spawn difficulties to db for .npc add and .gob ↵Shauren
add (and other commands that modify creature/gameobject spawns table)
2020-01-02New YearAokromes
2019-11-21Core/Spells: Make missing spell/aura effect handler assignments a compile ↵Shauren
time error instead of runtime crash
2019-08-08Core/Misc: MSVC build error (#23637)Sebastien Levy
- fixed a constness error leveraged by msvc 16.2 (cherry picked from commit 7e10438b275922ebf00d335ccfb7c00f508461c8)
2019-06-15Core/Spells: Remade trajectory target selection (#19048)xinef1
* Remade trajectory target selection * Added possibility to apply conditions to trajectory spells * Properly recalculate delay time if CMSG_UPDATE_PROJECTILE_POSITION is received (cherrypicked from c6060dd0c511ddad3cb1f0423aa9ccf2de7aedec)
2019-06-08Core/PacketIO: Updated packet structures to 8.1.5Shauren
2019-01-16Core/Objects: increase sight range of all Infinite, Gigantic and Large ↵Kittnz
objects & correct general default visibility distance (#22892) Note: This does not make the object active. Some info on range https://trinitycore.atlassian.net/wiki/spaces/tc/pages/74950924/Lua+Scene+Script+Documentation#LuaSceneScriptDocumentation-ActorAOIRange #21111 #21681 #22891 Thanks Kinzcool & Kelno