Commit Graph

22755 Commits

Author SHA1 Message Date
Treeston
88d446dadf Scripts/Commands: Convert argument parsing of .npc commands
(And I snuck some chat command cleanup in there, more de-cluttering!)
2020-09-04 00:58:23 +02:00
Treeston
35b3ba90b0 Scripts/Commands: Convert argument parsing of gameobject commands 2020-09-03 22:16:57 +02:00
Treeston
f45aa5cac1 Common/Util: Trinity::StringTo<double> support (PR #25364) 2020-09-02 22:04:45 +02:00
Treeston
eaf8fa75a1 Core/Misc: Add support for custom link colors. Clean-up hyperlink validation, no more long-ass defines. Remove UI.ShowQuestLevelsInDialogs. 2020-09-02 22:01:51 +02:00
robinsch
6e8284a8da Core/Player: Fixed incorrect prepared statement parameter types in Player::_SaveBGData
Merges #25379
2020-09-02 17:43:48 +02:00
Houston
8d0f52247f Core/Totem: Immune to all positive spells. (#25326)
* Core/Totem: Immune to all positive spells.

* Fix tabs

* Avoid using magic numbers

* Remove whitespace

Co-authored-by: Moki <moki.play@mail.ru>
2020-09-02 16:41:34 +02:00
Treeston
470f45db7a UnitTests: |Hspell and |Htalent unit testing 2020-09-02 12:42:02 +02:00
Treeston
d0b91f6927 Core/Misc: More DBC std::array refactors, stricter |Hitem checks, and more hyperlink unit tests 2020-09-01 22:02:22 +02:00
Treeston
3fbbe7cfbe Core/Misc: DBC std::array refactors, and |Hachievement unit tests 2020-09-01 00:38:46 +02:00
Treeston
5394b2ef0f UnitTests: Add a first set of item hyperlink tests 2020-08-31 16:56:56 +02:00
Shauren
1e8cb1ed1f Core/Chat: Fix achievement and enchant link validation
Closes #25367
2020-08-31 12:48:25 +02:00
Treeston
fdcb1c8b2e Core/Chat: Correct Hyperlink validation for incomplete achievements. 2020-08-30 14:20:20 +02:00
Treeston
944f49d613 Scripts/Commands: Fix a crash in .help - closes #25360 2020-08-30 13:45:04 +02:00
Treeston
2f7d2ef3e9 Core/ChatCommands: C++17 cleanup (again) (PR #25323) 2020-08-30 02:50:25 +02:00
Ovahlord
c08180d9bc Core/AI: SortByDistance will now sort the referenced list instead of a copy of it. This fixes MinDistance and MaxDistance target selection 2020-08-29 22:49:58 +02:00
Shauren
c1e4cfd07e Core/Config: Restore ability to load additional config files for custom scripts 2020-08-29 22:14:17 +02:00
Jinnaix
812c2af4da Core/Misc: Update Worldserver.conf for AhBot Pricing -make things more clear (#25341)
* AhBot Pricing: Make things more clear

* Change default value to BuyPrice and add some more information to how two sided AH works

* Sync c++ configs with .conf ones

Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2020-08-29 17:05:59 +02:00
Keader
4fcd6ddb74 Scripts/Spells: Fixed some code style issues
Follow up: 18e88653b9
2020-08-29 11:33:09 -03:00
Giacomo Pozzoni
8a48ece573 Core/Spell: Fix name clashing between local variables and class member fields (#25352) 2020-08-29 14:33:49 +02:00
Jinnaix
7e6f17a701 Core/Unit: send npcs home after fear runs out (#25347)
* Core/Unit: send npcs home after fear runs out

* Whoops, wrong
2020-08-29 14:31:58 +02:00
jackpoz
92f9abab06 Core/AHBot: Warn about different AHBot behavior when AllowTwoSide.Interaction.Auction is enabled
Closes #18243
2020-08-29 14:26:54 +02:00
Moki
18e88653b9 Scripts/Spells: Transfer Nurturing Instinct in spell_druid.cpp (#25307)
* Scripts/Spells: Transfer Nurturing Instinct in spell_druid.cpp

* Fix travis

* Rename 2020_08_xx_xx_world.sql to 2020_08_29_01_world.sql

Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2020-08-29 13:09:16 +02:00
Giacomo Pozzoni
cfc8f7b442 Core/Misc: Fix issues reported by static analysis (#25351)
* Core/Misc: Fix issues reported by static analysis

* Core/Vmaps: Code cleanup after e777161888
2020-08-29 13:02:42 +02:00
Shauren
bf7efe3ca0 Core/PacketIO: Fixed structure of "fake" SMSG_SPELL_GO sent when loading pets from db
Closes #25354
2020-08-28 23:59:17 +02:00
Shauren
b928955185 Core/Misc: Use "proper" type for respawn info map key 2020-08-28 23:41:30 +02:00
Treeston
f54cec4db7 Common/Utilities: Make StringTo<bool>'s signature match that of the other integral types, making for easier templating. Default behavior unchanged. 2020-08-28 23:35:12 +02:00
Maks Szokalski
dc9e0c1e86 Scripts: Minor loop refactors (#25325) 2020-08-28 23:13:26 +02:00
kvipka
5d2780c43c Scripts/InstanceScript: Fix an issue where LoadAllGrids would load creatures before TeamInInstance was properly set (PR #25340) 2020-08-28 19:48:41 +02:00
Aokromes
bf8b34946d Script/Azuremyst_isle: Remove useless log 2020-08-28 10:20:03 +02:00
Treeston
534a2388b7 Core/Common: Tokenizer -> Trinity::Tokenize (PR: #25327) 2020-08-28 00:11:16 +02:00
Treeston
7478c2c65a Common/Utilities: Properly read std::from_chars documentation and check for out_of_range errors. 2020-08-27 21:26:14 +02:00
Shauren
be73959a0d Core/PacketIO: Fixed SMSG_QUEST_GIVER_QUEST_DETAILS structure 2020-08-27 17:06:09 +02:00
Treeston
3564ad18bf cd30e0b follow-up (I could've sworn I pushed that to the PR branch. Sorry, Shauren.) 2020-08-26 23:38:31 +02:00
Treeston
cd30e0b86c Common/Utilities: Centralize string -> T conversion in StringConvert.h (PR #25335) 2020-08-26 23:31:45 +02:00
Treeston
7cc027401e Core/Warden: Ensure Warden packets do not exceed 512 bytes. This should rectify random Warden timeouts. 2020-08-26 21:30:38 +02:00
Giacomo Pozzoni
cbed1039c4 Core/SAI: Implement SMART_TARGET_ACTION_INVOKER in SMART_EVENT_FRIENDLY_HEALTH_PCT (#25318)
* Core/SAI: Implement SMART_TARGET_ACTION_INVOKER in SMART_EVENT_FRIENDLY_HEALTH_PCT

* Require radius (5th parameter) to be set
2020-08-25 14:14:06 +02:00
Treeston
fd05a35341 Revert "[3.3.5] Core/ChatCommands: C++17 cleanup (if constexpr + std::string_view)"
This reverts commit 11c4a60fbe.
2020-08-24 16:38:39 +02:00
Treeston
11c4a60fbe [3.3.5] Core/ChatCommands: C++17 cleanup (if constexpr + std::string_view) 2020-08-24 16:17:56 +02:00
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