Commit graph

69 commits

Author SHA1 Message Date
Kargatum
0b507d531d
refactor(Scripts/Commands): convert cs_modify to new system (#9474) 2021-12-04 11:56:47 -03:00
Kargatum
f62664c987
refactor(Core/Misc): headers cleanup (#9259) 2021-11-22 17:24:39 +07:00
UltraNix
67d5452c59
feat(Core/Misc): Added lambda support to EventProcessor. (#9263) 2021-11-20 18:33:57 -03:00
Kargatum
bc9473482e
feat(Core/Chat): new argument parsing and unify chat hyperlink parsing (#6243) 2021-10-23 10:15:42 +02:00
Kargatum
52aa0e9966
feat(License): add new headers information about license (#7941)
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
2021-09-30 13:40:52 +07:00
Kitzunu
ca9605215b
feat(Core/Misc): improve enum flags with type safe operators (#7865) 2021-09-17 14:51:01 +02:00
Viste
a9796af174
fix(Core/Misc): bunch of crashfixes (#7307) 2021-09-14 14:38:56 +02:00
Francesco Borzì
d8b8e123f6
refactor(Core/Common): code cleanup (part 12) (#7520) 2021-08-26 18:02:08 +02:00
Kargatum
dc1945196a
feat(Core/Logging): add support fmt::format logging (#6893) 2021-07-31 23:54:55 +02:00
Kargatum
8568c4fb33
feat(Core): replace ACE network with Boost.Asio (#6574) 2021-07-16 10:43:56 +02:00
Francesco Borzì
ebb80145b3
refactor(Core): replace boost::filesystem with std::filesystem (#6800) 2021-07-09 16:43:51 +02:00
Kargatum
2d2857ce81
feat(Core/DBUpdater): implement db auto update (#6576)
* feat(Core/DBUpdater): implement db auto update

* 1

* 2

* 3

* Some minor improvements

* add find bin for mysql 8.0

* lic

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2021-06-27 18:59:44 +02:00
Kargatum
3c24b511f2
refactor(Core/Misc): add braces and impove codestyle (#6402) 2021-06-24 19:50:18 +02:00
Kargatum
8202da358b
refactor(Core/Common): alphabetical sorting inlcudes (#6282)
- Part https://github.com/WarheadCore/WarheadBand/pull/37
2021-06-23 01:01:53 +02:00
Kargatum
9ac6fddcae
feat(Core/Database): port TrinityCore database API (#5611) 2021-06-22 06:21:07 +02:00
Kitzunu
897a02bb75
refactor(Core/Misc): acore to Acore (#6043) 2021-05-31 14:21:54 +02:00
Kitzunu
07d0f654d5
feat(Core/Containers): MapGetValuePtr (#6111)
* feat(Core/Containers): MapGetValuePtr

* Added MapGetValuePtr to allow writing `if (Val* v = MapGetValuePtr(map, key))`

(cherry picked from commit a1e3b54e07)
Co-Authored-By: Shauren <shauren.trinity@gmail.com>
2021-05-30 06:19:37 +02:00
Kitzunu
a9ed64e600
feat(Core/Util): AsUnderlyingType (#6117)
* Add AsUnderlyingType function to cast enum value to its underlying type (avoids repeating std::underlying_type everywhere)

(cherry picked from commit fdd9227b23)
Co-Authored-By: Shauren <shauren.trinity@gmail.com>
2021-05-30 03:46:04 +02:00
Kargatum
78e1719c80
feat(Core/Misc): includes cleanup (#5953) 2021-05-26 19:00:08 +07:00
Kargatum
63a273507c
feat(Core/Packets): Port packet handling from TrinityCore (#5617)
* feat(Core/Packets): Port packet handling from TrinityCore

* 1

* 2

* 3

* 1

* 2

* #3670

* 3

* 1

* codestyle

* fix msvc warnings
2021-05-22 00:10:46 +02:00
Kargatum
13f71c9c4d
feat(Core/Random): port random system from TrinityCore (#5454)
* feat(Core/Random): port random system from TrinityCore

* lic

* logic correct

* MultimapErasePair move

* whitespace

17:13:34 1. 'Containers.h'. Replace (1)
17:13:40 2. 'LootMgr.h'. Replace (1)
17:13:44 3. 'World.cpp'. Replace (1)
17:13:47 4. 'instance_scholomance.cpp'. Replace (1)

* correct debug build
2021-05-16 21:53:21 +02:00
Kargatum
26f2abaaa9
feat(Core/Authserver): TOTP rewrite (#5620) 2021-05-12 18:57:10 -06:00
Kargatum
db7d754f3f
feat(Core/Common): delete lib game-interface inherited (#5333)
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2021-05-07 02:16:44 +07:00
Chaouki Dhib
2d21bfc915
feat(Core/Movement): time synchronisation to better interpret client timestamps (#5300) 2021-04-23 15:53:09 +02:00
Kargatum
4af4cbd3d9
feat(Core/Logging): rework logging (#4692)
* feat(Core/Logging): rework logging

* correct level for sql.sql

* del unused config options

* Correct build

* correct after merge

* whitespace

20:29:37 1. 'Player.cpp'. Replace (1)
20:29:37 2. 'ObjectMgr.cpp'. Replace (3)

* 1

* correct logging

* correct affter merge

* 1

* 2

* LOG_LEVEL_WARN

* #include "AppenderDB.h"

* 3

* 4

* 5

* 1. 'WorldSocket.cpp'. Replace (1)

* 6

* 1
2021-04-17 11:20:07 +02:00
Kargatum
72748ee9f1
refactor(Core/Common): generalise platform specific includes in common/Platform (#5058) 2021-04-06 14:24:16 +02:00
Kargatum
c4c06a7734
feat(Core/SignalHandler): Replace ACE signal handling with std (#4877) 2021-03-24 15:50:56 +01:00
UltraNix
485f7e7639
feat(Core/DB/Authserver): remove sha_pass_hash (#4827) 2021-03-21 15:17:57 +01:00
Kargatum
34a129e478
feat(Core/Utilities): Introduce a task scheduler which schedules task (#4932) 2021-03-21 14:04:56 +01:00
Francesco Borzì
f6a17164be
fix(Core/License): issue with old files license (#4762) 2021-03-17 09:46:01 -06:00
Kargatum
60d684282b
fix(Core/Utilites): improve acore::String::Trim (#4704)
- Improve `acore::String::Trim`
- Delete `acore::String::Reduce`
- Skip line comment #4748
2021-03-09 21:02:45 +07:00
Kargatum
dbefa17a53
feat(Core/Config): rework config and delete ACE inherited (#4608) 2021-02-28 14:37:03 +01:00
Yehonal
c8f43d8584
feat(Core/Movement): Improved pathfinding, collisions and movements (#4220)
Npc positioning
Implemented slope check to avoid unwanted climbing for some kind of movements (backwards, repositioning etc.)
Implemented backwards movement
Re-implemented circle repositioning algorithm (smartest than retail, but with the same feeling)
Fixed random position of summoned minions
Improved pet following movement. Also, they attack NPC from behind now. Thanks to @Footman

Swimming creatures
Fixed max_z coordinate for swimming creatures. Now only part of their body is allowed to be out of the water level
Fixed pathfinder for swimming creatures creating shortcuts for specific segments, now they swim underwater to reach the seashore instead of flying above the water level.
Creatures with water InhabitType but no swimming flag now, when not in combat, will walk on water depth instead of swimming. Thanks @jackpoz for the original code
UNIT_FLAG_SWIMMING in UpdateEnvironmentIfNeeded to show the swimming animation correctly when underwater
Implemented HasEnoughWater check to avoid swimming creatures to go where the water level is too low but also to properly enable swimming animation only when a creature has enough water to swim.

Walking creatures
Extended the DetourNavMeshQuery adding area cost based on walkability (slope angle + source height) to find better paths at runtime instead of completely remove them from mmaps
improve Z height in certain conditions (see #4205, #4203, #4247 )

Flying creatures
Rewriting of the hover system
Removed hacks and improved the UpdateEnvironmentIfNeeded. Now creatures can properly switch from flying to walk etc.
Spells
LOS on spell effect must be calculated on CollisionHeight and HitSpherePoint instead of position coords.
Improved position for object/creature spawned via spells
Improved checks for Fleeing movements (fear spells)

Other improvements
Implemented method to calculate the CollisionWidth from dbc (used by repositioning algorithm etc.)
Improved raycast and collision checks

Co-authored-by: Footman <p.alexej@freenet.de>
Co-authored-by: Helias <stefanoborzi32@gmail.com>
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2021-02-01 01:34:27 +01:00
Stefano Borzì
df600f9946
fix(Core/CreatureAI): revert NPC repositioning and path system (temporarily) (#4274) 2021-01-14 19:17:34 +01:00
Kitzunu
da4edd547d
chore(core): remove malformed whitespaces (#4244)
* from https://www.codefactor.io/repository/github/azerothcore/azerothcore-wotlk/issues?category=Style&groupId=838&lang=5&page=75
2021-01-10 14:27:55 +01:00
Kargatum
ea93a5c1a1
feat(CI/Codestyle): added codestyle check (#3668) 2021-01-09 11:59:50 +01:00
Stefano Borzì
b2761626fe
feat(Core/CreatureAI): improve npc position during the combat (#3369)
+ tangent equation to find correct angle and distance when moving

+ implemented proper backward

* Improved performance + random angle margin

* chore: add tollerance calculation in instance

* improved LOS checks with movements

* implemented collisions using raycast (imported by TC)

+ improved collision detection for CanReachPositionAndGetCoords

+ improved collision check

+ set correct flags for the backward movement

+ first implementation of slope angle (to improve)

Co-authored-by: Yehonal <yehonal.azeroth@gmail.com>
2021-01-04 20:23:08 +01:00
FALL1N1
1f5babf0a6
Core/Utils: Create std::optional helper class (#3994) 2020-12-22 02:13:18 -06:00
Francesco Borzì
c5a35efd7b
refactor(Core): apply clang-tidy modernize-use-default-member-init (#3827) 2020-12-07 13:34:06 -06:00
Francesco Borzì
1cf39b3d22
refactor(Core): apply clang-tidy modernize-use-equals-default (#3834) 2020-12-07 19:21:55 +01:00
Francesco Borzì
0b8ec1f6ee
refactor(Core): apply clang-tidy modernize-loop-convert (#3822) 2020-12-07 19:04:19 +01:00
Francesco Borzì
cba126fa84
refactor(Core): apply clang-tidy modernize-use-nullptr (#3819) 2020-12-06 20:55:11 +01:00
Francesco Borzì
161302252e
refactor(Core): apply clang-tidy modernize-use-nodiscard (#3835) 2020-12-06 19:39:48 +01:00
Francesco Borzì
d4a58700d4
refactor(Core): apply clang-tidy modernize-use-override (#3817) 2020-12-06 18:04:55 +01:00
Kargatum
7f26c9ddad
refactor(Core/Common): restyle tools with astyle (#3706) 2020-11-17 16:59:58 +07:00
Andrius Peleckas
ab5933effa
fix(Core/Util): EventMap::RepeatEvent when eventId is retrieved by ExecuteEvent() call (#3426) 2020-10-17 14:59:22 +02:00
Kargatum
3a0b0356ac
refactor(Core/Common): restyle common lib with astyle (#3461) 2020-09-12 03:50:48 +07:00
Kargatum
e15a493927
feat(Core/Time): remove inherited ACE Time (#3455)
Co-authored-by: Viste <viste02@gmail.com>
2020-09-11 14:03:26 +02:00
Francesco Borzì
fa6f814eba
fix(Core/Misc): GCC warnings (#3428) 2020-09-04 17:39:02 +02:00
mishaparem
a12e58b105
fix(Core): C++ 11 rule of 3 compiant constructors (#3023) 2020-06-15 12:45:04 +02:00