Commit Graph

36072 Commits

Author SHA1 Message Date
Shauren
59dbc1df0a Core/Misc: Properly close database connections when using --update-databases-only arg 2020-06-22 11:32:57 +02:00
Carbenium
2b9c6bcf86 Fix non-PCH build 2020-06-22 11:32:36 +02:00
Shauren
c8a95068e5 Build: Fix gcc pch builds 2020-06-22 11:31:43 +02:00
Ovahlord
4d39bb602e Core/Players: do not update position data on character creation
Retail does not have a zone id for newly created character until their first login so we do the same as well. This will drastically improve performance on character creations as we no longer unnecessarily load grids and map data.
2020-06-18 05:17:22 +02:00
Giacomo Pozzoni
85532de2e9 Handle different slopes in mmaps (#24765)
* Tools/MMAPs: Remove input argument --maxAngle

Remove input argument --maxAngle . This should be just hardcoded in MapBuilder::GetMapSpecificConfig() so all settings are easily found in the same place instead of being spread around.

* Tools/MMAPs: Add new area type NAV_AREA_GROUND_STEEP

Add new area type NAV_AREA_GROUND_STEEP for ground with slope in the range (55, 70] .
NAV_AREA_GROUND is used for ground with range [0, 55] .
NAV_AREA_GROUND_STEEP takes priority over NAV_AREA_GROUND.

* Tools/MMAPs: Fix NAV_GROUND_STEEP flag not being saved in the mmtile

* Core/PathFinding: Implement NAV_GROUND_STEEP flag

Implement NAV_GROUND_STEEP flag, used only by Creatures that are in combat or evading.

* Distinguish between RC_WALKABLE_AREA and NAV_AREA_GROUND.

* Allow mobs in combat to walk on steeps up to 80°

* Allow mobs in combat to walk on steeps up to 85°.
Disable rcFilterLedgeSpans() filter as it removed long steep spans.

* Increase cost of steep spans to try making creatures walk around obstacles instead of walking on them

* Revert last commit
# Conflicts:
#	src/server/game/Movement/PathGenerator.cpp
2020-06-18 02:16:11 +02:00
Ovahlord
15b5bfb326 DB/Creatures: removed many duplicate spawns at the Sanctuary of Malorne 2020-06-17 04:08:28 +02:00
Carbenium
70e84c3e48 CMake: Use target_precompile_headers instead of cotire with CMake >= 3.16.0
# Conflicts:
#	cmake/macros/FindPCHSupport.cmake
2020-06-16 10:53:42 +02:00
Carbenium
f6c07113b9 CMake: Remove guards around CMP0043 and CMP0054
We require CMake >= 3.8 which includes the policies.
CMP0043 OLD behaviour is still required by cotire.
2020-06-16 10:52:22 +02:00
jackpoz
79c707e6ec Build/CMake: Increase minimum version to 3.8
(cherry picked from commit 965ac6fb08)

# Conflicts:
#	CMakeLists.txt
2020-06-16 10:51:56 +02:00
Giacomo Pozzoni
29a987b81b Build/CMake: Set some policies to NEW (#23779)
* Build/CMake: Set CMP0005 to NEW

See https://cmake.org/cmake/help/v3.2/policy/CMP0005.html

* Build/CMake: Set CMP0043 to NEW

See https://cmake.org/cmake/help/v3.2/policy/CMP0043.html

* Build/CMake: Set CMP0074 to NEW

See https://cmake.org/cmake/help/v3.12/policy/CMP0074.html

(cherry picked from commit 18cc36bc67)
2020-06-16 10:51:06 +02:00
Ovahlord
7521c2ebfa DB/ScarletEnclave: ported commit bbb308f628 and fixed some quest ender and movement template data 2020-06-15 04:47:28 +02:00
Ovahlord
3f6455d9bb Core/SAI: implement SMART_ACTION_ATTACK_STOP
Unlike SMART_ACTION_AUTO_ATTACK, this action is actually stopping the entire attack procedure, rather than just hack-disabling auto-attacks. Keep in mind that this action requires a passive react state to prevent a immediate AttackStart ai reaction
2020-06-15 04:46:10 +02:00
Ghaster
d71bc0c0a8 Tools/mmaps_generator: Fixed brackets (#125) 2020-06-14 17:22:45 +02:00
Ovahlord
0debb33df0 Scripts: fixed nopch build 2020-06-14 00:58:10 +02:00
Ovahlord
893b80d0c4 Scripts/ScarletEnclave: ported several fixes from 335 2020-06-14 00:40:59 +02:00
funjoker
adf9e6a004 Core/Misc: Make Clang 10 happier 2020-06-11 21:55:01 +02:00
funjoker
187d537fba Core/Misc: (try) Make Clang 10 happy 2020-06-11 21:12:34 +02:00
jackpoz
3f56ea8ba4 Core/Misc: Fix Clang 10 build warnings
(cherry picked from commit 48c5c0d7a2)
2020-06-11 20:49:30 +02:00
funjoker
a70b9d3be8 Misc: Fix nopch build 2020-06-11 20:34:03 +02:00
Giacomo Pozzoni
9fdf598792 Cherry-pick some cmake commits (#24720)
* Build system: Support  new in cmake 3.17 Ninja Multi-Config generator

(cherry picked from commit 369b618d4f)

* Build system: Fixed PCH with MSVC & Ninja generator

(cherry picked from commit d669f46b6d)

* Core: Fix clang 10 warnings

(cherry picked from commit 7272508cb4)

* Build system: Set -Wno-deprecated-copy only for clang 10

(cherry picked from commit 7fdeb259ba)

* Core/Misc: GCC build and warning fixes

(cherry picked from commit 4d69cc1c56)

* Build system: Print found git version when warning about it being too old

(cherry picked from commit 1ae72db201)

* Build system: Removed hard requirement on BOOST_ROOT being set as environment variable, it can now be also passed as command line argument to cmake and fix compile warning with boost 1.73

(cherry picked from commit 161944b764)

* Remove some code that was already removed from 335 and then cherry-picked into master

Co-authored-by: Shauren <shauren.trinity@gmail.com>
(cherry picked from commit 8c09b6e58b)
2020-06-11 20:24:00 +02:00
jackpoz
928abcbfdc CI/CircleCI: Switch to Ubuntu 20.04 and MySQL 8
(cherry picked from commit e3dfab52a6)
2020-06-11 16:52:57 +02:00
jackpoz
364d3fa0aa CI/Circle CI: Enforce codestyle checks
(cherry picked from commit 32c9f1c7a2)
2020-06-11 16:50:33 +02:00
funjoker
5a2dd995a2 CI/Circle CI: Prevent conflict with diff branches (#24388)
(cherry picked from commit 1794338532)
2020-06-11 16:49:45 +02:00
Shauren
40f80fc0ed Core/Maps: Improvements to terrain swap handling
* Fixed memory leak when unloading grids
* Handle child maps being entered
* Allow chaining more child maps (Draenor -> Tanaan Jungle -> Tanaan Jungle - No Hubs Phase)
2020-06-11 01:35:27 +02:00
Shauren
8adca7637b Build system: Removed hard requirement on BOOST_ROOT being set as environment variable, it can now be also passed as command line argument to cmake and fix compile warning with boost 1.73 2020-06-11 00:36:53 +02:00
Shauren
8e65367d0c Build system: Print found git version when warning about it being too old 2020-06-11 00:36:41 +02:00
Ovahlord
8a7d723e11 Scripts: fixed nopch build 2020-06-08 08:29:59 +02:00
Ovahlord
dae1dab09d Scripts/BH: rewrite Alizabal encounter 2020-06-08 08:24:11 +02:00
Ovahlord
9a3a7592b0 Scripts/BH: converted Argaloth's AI scripts to modern register ai model 2020-06-08 05:23:15 +02:00
Ovahlord
c663e8a138 Scripts/BoT: fixed an issue that was causing Arion to increasingly cast Thunderstorm the longer the encounter lasts 2020-06-05 21:45:26 +02:00
Warpten
0af44ccc01 Core/Spells: implement DoT clipping
* Core/Spells: Implementation of DoT clipping.
* Core/Utilities: Backport "EnumFlags v3.0" from master.
* Core/Spells: Switch AURA_REMOVE_MODE to a flag set.
2020-06-04 18:16:03 +02:00
Ovahlord
6498452dd1 DB/VP: replaced pathings with proper ones as the old ones consisted of spline points instead of actual waypoints 2020-06-04 03:18:57 +02:00
Ovahlord
b8d53951b5 Scripts/VP: rewrite Lurking Tempest mechanics and fixed all scenarios in which players could get stuck in combat with the tempests 2020-06-04 01:52:03 +02:00
Ovah
227427e8a1 Core/Players: update mount capabilities on player login to avoid orphaned mount speed auras 2020-06-03 22:19:56 +02:00
Warpten
5cb747620a Core/Movement: Fixed Animation Tier handling (#113) 2020-06-03 00:49:18 +02:00
Ovahlord
38f2238293 Core/Spells: removed deprecated 500ms cast time delay for spells with attribute SPELL_ATTR0_REQ_AMMO 2020-06-03 00:20:19 +02:00
Warpten
3994e2a183 Core/Errors: Fix a bad formatting call. (#115) 2020-06-02 20:01:30 +02:00
Ovahlord
062667df95 Database: fixed prepared statement fields for reloading creature_template 2020-06-02 20:00:03 +02:00
Ovahlord
8a4dd6ce04 Scripts/Misc: corrected movement template data for Battered Red Drakes in preparation for anim tier handlings 2020-06-02 19:35:10 +02:00
Warpten
21305d696c Scripts/BWD: converted Onyxia's chain data to a simple array instead of using a vector 2020-06-01 22:31:42 +02:00
Ovahlord
f0f92d555f Scripts/GB: corrected Valiona's landing speed and prevent Valiona and Drahga from dying before meeting expected requirements 2020-06-01 22:14:57 +02:00
Ovahlord
3271e07783 Scripts/BoT: corrected landing speed for Theralion and Valiona 2020-06-01 22:04:06 +02:00
Ovahlord
5d125e3c80 Scripts/BWD: corrected Atramedes' phase two landing velocity 2020-06-01 21:48:54 +02:00
Ovahlord
53060a39f5 Core/Movement: implement optional velocity argument to MoveLand motion master helper 2020-06-01 21:48:30 +02:00
Ovahlord
90d0167ace Scripts/BWD: linked a missing movement call that's suposed to trigger before Nefarian lands for phase three 2020-06-01 21:28:21 +02:00
Ovahlord
db8e0cf13a Database: updated DB updater database download link to spare Aokromes from madness 2020-06-01 16:06:47 +02:00
Ovahlord
655bcaeecd Scripts/Commands: gameobjects spawned via .gameobject add command will now spawn with the orientation of the spawning player instead of always using the default QuaternionData values
closes #101
2020-06-01 15:18:18 +02:00
Ovahlord
f1bd380b20 Core/Players: update mount capabilties when the liquid status of players change
* simplified checks for liquid restrictions in mount capability helper
* handle missing case for liquid exclusive mounts
* update position data on character login to avoid some edge case outdoors checks

closes #95
2020-06-01 15:10:13 +02:00
Ovahlord
91c0f13f77 Core/Packets: corrected another packet structure part in attacker state update packet to match structure of packet parser 2020-05-23 21:00:37 +02:00
Ovahlord
1e93b90397 Core/Packets: removed a part struct part from attacker state update packet that was added in 5.1 2020-05-23 20:58:58 +02:00