Commit Graph

22717 Commits

Author SHA1 Message Date
Shauren
ec783fcbb5 Core/Warden: Fix warden timeout ticking twice as fast as it should 2020-08-24 14:17:40 +02:00
Peter Keresztes Schmidt
6079bc7f34 Core/ChatCommands: Do not try to consume integral types if the token is empty (PR #25320) 2020-08-23 21:19:44 +02:00
jackpoz
1aceb41349 Core/Movement: Fix RandomMovementGenerator for swimming creatures
Fix RandomMovementGenerator for swimming creatures not moving at all due to PATHFIND_FARFROMPOLY being handled as wrong path.
Fixes #25236
2020-08-23 20:06:41 +02:00
Treeston
91744de316 Common/Utilities: Move EnumUtils' implementation struct from Trinity::Impl to Trinity::Impl::EnumUtilsImpl. This avoids confusing name clashes for other implementations in sub-namespaces of Trinity::Impl. 2020-08-23 15:05:04 +02:00
Treeston
a41bbd9ad9 Core/Misc: std::string -> std::string_view in a bunch of places, notably chat commands and Util.h 2020-08-23 00:31:57 +02:00
robinsch
aaa089ab7f Core/Unit: Fixed race condition when loot recipient is in different map (#25312) 2020-08-22 23:09:13 +02:00
jackpoz
2b98a3e889 Core/Misc: Remove whitespace 2020-08-22 23:02:35 +02:00
jackpoz
03eb0886a8 Core/SAI: Remove completed timed action lists even while evading
Fixes #25294
2020-08-22 22:55:16 +02:00
Peter Keresztes Schmidt
5bab0e43c6 Scripts/Commands: Convert argument parsing of some misc commands to new system (#25308)
* Core/Shared: Make WeatherType smart

* Scripts/Commands: Convert argument parsing of some misc commands to new system
2020-08-22 22:28:51 +02:00
Peter Keresztes Schmidt
cefac75a7d Scripts/Commands: Convert argument parsing of cast commands to new system (#25309) 2020-08-22 22:25:27 +02:00
Peter Keresztes Schmidt
3262ef447a Scripts/Commands: Fix two unreachable code issues found by PVS-studio (#25311) 2020-08-22 22:24:28 +02:00
offl
6611b71457 DB/Quest: Convert & update support for 'Ebon Blade Prisoners' to SAI
Closes #24672
2020-08-22 20:05:15 +03:00
offl
040fda87ef DB/Quest: Convert & update support for Borean Tundra escort quests to SAI
Closes #25001
2020-08-22 20:04:35 +03:00
Peter Keresztes Schmidt
f17b9b20f1 Scripts/Commands: Convert argument parsing of message commands to new system (#25305) 2020-08-22 17:47:51 +02:00
Peter Keresztes Schmidt
617a769d6f Core/ChatCommands: Add std::wstring argument type (#25302) 2020-08-22 17:36:13 +02:00
Peter Keresztes Schmidt
522a4cb1a6 Scripts/Commands: Convert argument parsing of most list commands to new system (#25303) 2020-08-22 16:56:11 +02:00
Shauren
6cf11a9b66 Core/Misc: Reserve master branch trinity_string ids 2020-08-22 01:46:57 +02:00
Treeston
d717b9dc3e Core/Misc: Update worldserver.conf.dist to match actual defaults. 2020-08-21 12:13:38 +02:00
Treeston
0531463a3c Core/Warden: Add Lua checks to Warden (PR #25286) 2020-08-21 01:19:28 +02:00
Maks Szokalski
db8bdaa08f Core/Gossip: Add new helper method to ScriptedGossip for resolving menuId -> sender (PR #25293) 2020-08-21 00:47:03 +02:00
Treeston
8ab9a29af3 Tools/VMapExtractor: Make Shauren happy, fmt::sprintf -> Trinity::StringFormat 2020-08-20 23:21:45 +02:00
Treeston
8ebcc0b086 Tools/VMapExtractor: Clean-up some patches of horrendously creaky code to make them slightly less creaky (and get rid of gcc warnings) 2020-08-20 23:02:02 +02:00
Shauren
a692329715 Core/PacketIO: Fixed incorrect displaying quest item rewards as choices 2020-08-20 20:56:21 +02:00
Shauren
74a0d579ee Core/Pets: Fixed automatic resurrecting pets on battleground graveyards
Closes #25289
2020-08-20 18:44:36 +02:00
Treeston
fc32c3fd3b Core/Warden: Ignore the length value in the database for MEM_CHECK checks. Hi there Aokromes. 2020-08-20 18:34:09 +02:00
Treeston
a3971ca4b0 Core/Warden: More refactors lifted from #25286. 2020-08-20 17:56:10 +02:00
Treeston
5b4288f05f Core/Warden: Some Warden refactors lifted from #25286. 2020-08-20 17:35:58 +02:00
Shauren
e1289805fc Core/Networking: Initialize MPSCQueueIntrusive dummy node without undefined behavior 2020-08-20 16:06:15 +02:00
Shauren
89fd7d4592 Core/Misc: Remove NULL 2020-08-20 16:04:44 +02:00
Shauren
7d4fbf706a Scripts/Spells: Replace RegisterAuraScript with RegisterSpellScript and remove it 2020-08-20 16:03:47 +02:00
Shauren
7a5a010d41 Scripts/Spells: Convert remaining spell_generic scripts to simplified script registration using new additional constructor argument support 2020-08-20 15:58:57 +02:00
Shauren
75a6a7a0ad Core/Scripts: Unify RegisterSpellScript and RegisterAuraScript macros to do the same thing and implemented passing custom arguments to spell script classes 2020-08-20 15:49:59 +02:00
Shauren
84a87d87bf Core/Util: Added another template utility - find_type_if
* Trinity::find_type_if - Find a type matching predicate in a given template parameter pack
2020-08-20 15:46:31 +02:00
Shauren
7c08fc863a Core/Util: Added new utilities
* Trinity::new_from_tuple - same as std::make_from_tuple except allocates object using "new"
* Trinity::is_tuple - detects whether given type is a tuple specialization
* advstd::type_identity - C++20 std::type_identity
2020-08-20 13:34:45 +02:00
Peter Keresztes Schmidt
7bfeb03c13 Scripts/Commands: Convert argument parsing of event commands to new system (PR #25275) 2020-08-20 02:30:21 +02:00
Treeston
643b9209f8 Common/Misc: Clean-up a GCC sign comparison warning 2020-08-20 02:22:23 +02:00
Peter Keresztes Schmidt
4286e7aa02 Core/ChatCommands: Check whether a passed numeric enum value is valid (#25285) 2020-08-20 00:46:52 +02:00
Peter Keresztes Schmidt
9c9e8c7d58 Scripts/Commands: Convert argument parsing of gm commands to new system (#25279) 2020-08-19 14:53:04 +02:00
Peter Keresztes Schmidt
1aadf6c6d1 Scripts/Commands: Convert argument parsing of remaining go command to new system (#25284) 2020-08-19 14:49:29 +02:00
NoName
01c7663bdd Core/PacketIO: Update SMSG_QUESTGIVER_OFFER_REWARD (#25251)
Co-authored-by: Carbenium <carbenium@outlook.com>
2020-08-19 14:47:55 +02:00
Carbenium
515a34f64f Scripts/Commands: Convert argument parsing of honor commands to new system 2020-08-19 00:29:31 +02:00
Treeston
f04f4e91ff Core/Warden: Add .debug warden force, allowing you to force specific warden checks to be sent 2020-08-19 00:25:44 +02:00
Peter Keresztes Schmidt
c952cb7f71 Scripts/Commands: Convert argument parsing of deserter commands to new system (PR #25276) 2020-08-18 22:27:24 +02:00
Peter Keresztes Schmidt
4707e05938 Scripts/Commands: Convert argument parsing of cheat commands to new system (PR #25277) 2020-08-18 15:22:09 +02:00
Treeston
5ecbe93f7d [[maybe_unused]] to make CIs happy, 0b13fc1 follow-up 2020-08-17 23:13:41 +02:00
Treeston
0b13fc1926 Scripts/Commands: Revert e18f7aa, re-add .debug asan outofbounds, move bodies to #ifdef 2020-08-17 22:54:39 +02:00
Peter Keresztes Schmidt
76f309b4e8 Scripts/Commands: Convert argument parsing of most debug commands to new system (PR #25260) 2020-08-17 22:45:09 +02:00
Treeston
e18f7aaa4d Scripts/Commands: Remove .debug asan outofbounds, because having reachable code that essentially says __builtin_unreachable in the core is making me twitchy. 2020-08-17 22:25:11 +02:00
Peter Keresztes Schmidt
426513ec8e Scripts/Commands: Convert argument parsing of ahbot commands (PR #25264) 2020-08-17 22:04:44 +02:00
Shauren
a9a4f05a28 Core/Pets: Fix loading pet data
Closes #25269
2020-08-17 20:01:48 +02:00