Commit Graph

42796 Commits

Author SHA1 Message Date
Shauren
f9451f1cf5 Added missing GameObjectModel::iLosBlockingDisabled initialization in constructor
(cherry picked from commit b3763c338d)
2024-07-18 22:37:14 +02:00
Shauren
d7a26b3897 Core/GameObject: Implemented NotLOSBlocking door property
(cherry picked from commit 2756ca1c35)
2024-07-18 22:37:10 +02:00
Ovahlord
e0adab82f8 Scripts/Misc:fix npc_professions locale text (#27894)
* fix npc_professions locale text

fix npc_professions locale text load from db

* fix dup sql

fix dup sql

* add condition and gossip option

add condition and gossip option for money cost depends on player level

* add missing update statements

* Rename 9999_99_99_world.sql to 2023_03_24_00_world.sql

---------

Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
(cherry picked from commit 60b75e3b6e)
(cherry picked from commit 4862033a44)
2024-07-18 22:37:00 +02:00
Shauren
fc27c71dee Core/Logging: Minor internal refactor
* Avoid formatting to output with fprintf
* Use vector instead of unordered_map to store appenders in Logger

(cherry picked from commit 81bec6954f)
2024-07-18 22:34:07 +02:00
Shauren
c12f669fc5 Build: CMake cleanup
* Migrate all add_definitions to target_compile_definitions
* Remove -D from preprocessor definitions added by target_compile_definitions (unneccessary, cmake strips it anyway)
* Fixed NO_BUFFERPOOL not being set on g3d if jemalloc is used
* Moved library/compiler specific compile flag settings spread all over various CMakeLists to their related library/compiler file
* Remove ancient manual link flag settings for worldserver

(cherry picked from commit 77fe2745fe)
2024-07-18 22:34:00 +02:00
Ovahlord
5e3a42ee82 Revert "power regen update"
This reverts commit bf23db4daa.
2024-07-14 19:24:26 +02:00
Ovahlord
1956ce8347 Core: update allowed build to 4.4.0.55613 2024-07-14 19:07:45 +02:00
Shauren
9fe75d870f Core/DBLayer: Add field metadata getters to query result classes
(cherry picked from commit d4998bd04a)
2024-07-14 19:03:21 +02:00
Shauren
232f7f19a7 Core/Entities: Skip calling toupper on number to string conversion result if not neccessary (only hex conversions need it)
(cherry picked from commit 3313ea1fe6)
2024-07-14 19:03:17 +02:00
Shauren
d0927c1094 Core/Utils: Transform char toUpper/toLower functions into callable function objects to better integrate with std algorithms (not calling through a function pointer allows inlining)
(cherry picked from commit 054dd3596f)
2024-07-14 19:03:07 +02:00
Shauren
a33222a36f Core/Spells: Added missing SummonPropertiesFlags::UseDemonTimeout handling to some summon cases
(cherry picked from commit ceffc2cb20)
2024-07-14 19:03:03 +02:00
Shauren
cdfe0f21f7 Core/Instances: New ZoneScript hook - OnCreatureGroupDepleted
* Triggers when the CreatureGroup no longer has any alive members (either last alive member dies or is removed from the group)

(cherry picked from commit ec2631eca3)
2024-07-14 19:02:57 +02:00
Shauren
db2d4c484b Core/Creatures: Create a CreatureGroup for every SummonCreatureGroup
(cherry picked from commit 9a7a83ef30)
2024-07-14 19:02:52 +02:00
Ovahlord
bf23db4daa power regen update 2024-07-14 19:02:22 +02:00
Ovahlord
20a8c46a72 Core/Players: turn rune cooldowns into floats and change their cooldown calculation to get closer to what the other power types do 2024-07-12 02:58:00 +02:00
Ovahlord
3751c13834 Core/Units: implement PowerTypeFlags::RegenAffectedByHaste 2024-07-12 01:23:49 +02:00
Shauren
e543db0ed4 Core/PacketIO: Fixed SMSG_ATTACKER_STATE_UPDATE structure
Closes #30036

(cherry picked from commit b103de805a)
2024-07-11 19:07:02 +02:00
Shauren
4988e328d4 Core/Creatures: Allow adding summons to CreatureGroup (only adding, no formation movement of linked aggro yet)
(cherry picked from commit 16bfbe1a3a)
2024-07-11 19:06:57 +02:00
Shauren
4c4f5f0ae4 Core/Logging: Removed one layer of allocations from log message writes (async doesn't wrap in shared_ptr anymore and sync creates LogMessage on the stack)
(cherry picked from commit 1cd7898c01)
2024-07-11 19:06:51 +02:00
Shauren
a638c36905 Core/Logging: Fixed a bunch of invalid format strings
(cherry picked from commit 0d8e3dd798)
2024-07-11 19:06:45 +02:00
Ovahlord
934ef521e3 Core/Auras: implemented SPELL_AURA_CONVERT_RUNE 2024-07-11 18:29:07 +02:00
Ovahlord
c41e21db23 Core/Spells: implement support for energizing runes via SPELL_EFFECT_ENERGIZE 2024-07-11 17:59:13 +02:00
Ovahlord
dbf2a4288e Core/Spells: implemented SPELL_EFFECT_ACTIVATE_RUNE 2024-07-11 17:30:56 +02:00
Ovahlord
fe97a86415 Core/Player: update rune regeneration and consumption for Cataclysm Classic
* the regeneration bonus from haste is tied to the HasteRegen update field and must be implemented first before we can handle it
2024-07-11 17:14:22 +02:00
Ovahlord
3bb327b2bc buildfix 2024-07-11 16:01:53 +02:00
Ovahlord
0af3226379 Core/Player: fixed a crash in rewarding quests when a QuestRewardDisplay spell is 0 (in classic the container is an array instead of a vector) 2024-07-11 16:00:58 +02:00
Ovahlord
2844d79ead Core/Packets: enabled and added packet class for SMSG_CONVERT_RUNE 2024-07-11 15:15:35 +02:00
Ovahlord
cce07dca09 remove whitespace 2024-07-10 01:06:56 +02:00
Ovahlord
b6e59b86a8 Core: Update allowed build to 4.4.0.55460 2024-07-09 21:22:39 +02:00
Ovahlord
a0de631a8a Core/Spells: fixed Heroic Strike damage calculation 2024-07-09 11:43:30 +02:00
Shauren
9c67bdf329 Core/Creatures: Only remove formation movement on formation remove instead of fully resetting MotionMaster
(cherry picked from commit 67dd9a920f)
2024-07-08 13:13:11 +02:00
Shauren
7198c5223e Core/Creatures: Fixed memory leaks in creature formations
(cherry picked from commit 2e3920081f)
2024-07-08 13:13:06 +02:00
Shauren
2fc0272533 Revert "Core/Creature: Formation reset (#27040)"
This reverts commit 01da436206.

(cherry picked from commit cdf0d62e48)
2024-07-08 13:13:02 +02:00
Shauren
23545f8182 Core/Units: Interrupt only spell in CURRENT_GENERIC_SPELL slot with damage taken InterruptFlags instead of all currently cast spells
(cherry picked from commit 7fdcae81d8)
2024-07-08 13:12:57 +02:00
Ovahlord
3a3d242f27 DB/Quests: added missing quest data from bruteforces 2024-07-08 13:12:19 +02:00
Ovahlord
61c040d4f0 DB/Misc: fixed more startup errors 2024-07-08 12:51:03 +02:00
Shauren
120bea629d Core/Vmaps: Fixed use after free and deadlocks when loading a model file fails
(cherry picked from commit d05dbaaecb)
2024-07-06 22:59:34 +02:00
Ovahlord
0fe73dc2b6 Core/Quests: fixed an oversight in quest query initialization which was causing crashes in debug mode 2024-07-06 21:42:36 +02:00
Ovahlord
6cbd1a241a DB/Hotfixes: removed blob data which should go into AreaTriggerActionSet 2024-07-06 19:29:23 +02:00
Ovahlord
b0a856a86d DB/Misc: fixed a ton of startup errors caused by missing or invalid data and wiped npc_trainer table data 2024-07-06 19:22:04 +02:00
Shauren
1a3ad52a0b Tools/vmap_assembler: Organize vmap files into directory-per-map
(cherry picked from commit 518fe1fd1e)
2024-07-06 15:36:52 +02:00
Shauren
134b602b95 Tools/vmap_assembler: Use boost::filesystem::path for creating filenames
(cherry picked from commit 51d1ff11bc)
2024-07-06 15:36:47 +02:00
Shauren
f40c4e3218 Tools/vmap_assembler: Multithread building vmaps
(cherry picked from commit 11a252e601)
2024-07-06 15:36:43 +02:00
Shauren
e46cad36d2 Tools/vmap_extractor: Split temporary dir_bin into multiple files (one per map) to significantly reduce peak memory usage by vmap_assembler
(cherry picked from commit a0f13391a0)

# Conflicts:
#	src/tools/vmap4_extractor/vmapexport.cpp
2024-07-06 15:36:37 +02:00
Shauren
caf4c02da8 Core/Vmaps: Optimize loading vmaps
* Changed spawn id to BIH tree index mapping from generated on load to baked in tile files
* Remove map holding model load counts and moved that to ModelInstance instead

(cherry picked from commit 35a2d49971)
2024-07-06 15:36:10 +02:00
Shauren
5acd308550 Core/Vmaps: Minor cleanup in MapTree - use unique_ptr to manage file handles
(cherry picked from commit 5dbb6b043f)
2024-07-06 15:36:06 +02:00
Shauren
f82fcdc176 remove double empty line
(cherry picked from commit c3dd80a96e)
2024-07-06 15:36:02 +02:00
Shauren
69febfca78 Core/Database: Fixed WITH_COREDEBUG + WITH_DYNAMIC_LINKING incompatibility on windows
(cherry picked from commit f895d04b7d)
2024-07-06 15:35:58 +02:00
Shauren
5ed6b5e53a Core/Vmaps: Minor cleanup in vmap4assembler - use unique_ptr to manage file handles
(cherry picked from commit c8a55f4a18)
2024-07-06 15:35:54 +02:00
Shauren
b62b0e9317 Core/Vmaps: Replace floatToRawIntBits/intBitsToFloat with standard bit_cast utilities
(cherry picked from commit 76a3611317)
2024-07-06 15:35:42 +02:00