Commit Graph

88 Commits

Author SHA1 Message Date
Kargatum
de13bf426e feat(Core/DBLayer): replace char const* to std::string_view (#10211)
* feat(Core/DBLayer): replace `char const*` to `std::string_view`

* CString

* 1

* chore(Core/Misc): code cleanup

* cl

* db fix

* fmt style sql

* to fmt

* py

* del old

* 1

* 2

* 3

* 1

* 1
2022-02-05 00:37:11 +01:00
Kargatum
5969df4e30 refactor(Core/Logging): switch to fmt style for LOG_ (#10366)
* feat(Core/Common): add support fmt style for ASSERT and ABORT

* correct CheckCompactArrayMaskOverflow

* 1

* Update src/server/game/Spells/Spell.cpp

* rework logging

* add fmt replace logs

* logging

* FMT_LOG_

* settings

* fix startup

* 1

* 2

* 3

* 4

* 5

* fmt::print

* to fmt
2022-01-27 16:44:41 +01:00
Kargatum
8b7df23f06 feat(Core/Time): Implement saparated manager for game time (#8630) 2022-01-24 17:55:00 +07:00
Kargatum
259b9133f6 feat(Core/Common): add new helpers for time utility (#10207) 2022-01-19 12:01:59 +07:00
UltraNix
0f2c092df7 fix(Core/Events): Prevent seasonal quests from resetting at server re… (#9708)
* fix(Core/Events): Prevent seasonal quests from resetting at server restart. Source: TrinityCore.

Fixes #6973

* Update.

* Update.

* Update.
2022-01-16 22:25:17 -05:00
Kargatum
7f05e20994 fix(Core/Pets): fix crash at pet resurrect (#10120) 2022-01-15 19:08:54 -03:00
Kitzunu
cb7e355291 refactor(Core/Misc): sin() to std::sin() (#9795) 2022-01-06 19:29:40 +01:00
Kitzunu
69683a3472 chore(Scripts/Misc): Cleanup some more JustDied hooks (#9768) 2021-12-31 12:00:40 -03:00
Kargatum
c81891fc11 feat(Core/AI): convert SelectAggroTarget to enum class (#9893) 2021-12-28 19:13:12 -03:00
Malcrom
5abfe27365 fix(Script) Quest "Deactivating the Spire" (#9874)
* fix(Script) Quest "Deactivating the Spire"

* Update go_scripts.cpp

* Update go_scripts.cpp

Co-authored-by: acidmanifesto <joshua.lee.betts@gmail.com>
2021-12-25 12:50:52 +01:00
Francesco Borzì
cbc7e5466a refactor(Core): remove unused imports (#9767) 2021-12-19 19:41:14 +01:00
Malcrom
8545257cc8 fix(Script/Quest): Plagued Lands [2118] (#9541) 2021-12-16 10:35:06 +01:00
Malcrom
10ce7a7460 fix(DB/SAI): Quest 9678 "The First Trial" (#9528) 2021-12-11 10:27:29 -03:00
acidmanifesto
1500453f59 feat(Core\Player): Added createplayerinfo_cast_spell support cast spell for some class spells (#9448) 2021-12-03 18:33:21 -03:00
IntelligentQuantum
ab761c9865 fix(Core/Player): prevent crash exploit spam duel starting (#9226) 2021-11-28 16:42:53 -03:00
Kargatum
f62664c987 refactor(Core/Misc): headers cleanup (#9259) 2021-11-22 17:24:39 +07:00
schell244
3b89a7e077 fix(Core/Script): add hourly bell event (#9151) 2021-11-14 15:23:01 -03:00
sschepens
b7f8083915 feat(Core/Misc): change how Position struct is retrieved (#9017)
Update Position::GetPosition() and similar methods signatures to reflect 2a4c9bc changes by return a Position object instead of accepting a Position parameter by reference.

Cherry pick of 2585e799f9
2021-11-10 23:43:00 +01:00
Kitzunu
24f9f993cc refactor(GameObjectAI): Change self-accessor to "me" (#9041) 2021-11-08 22:06:04 +01:00
Ragelezz
20eff9eb03 fix(Core\Scripts):Venomhide Hatchling multiple fixes (#8792) 2021-11-02 13:18:56 -03:00
Malcrom
f106de8788 refactor(Core): update getFaction to GetFaction and setFaction to SetFaction (#8708) 2021-11-01 17:04:32 +01:00
v.tihomirov
12b195e116 fix(Core/QuestNpc): Rework/fix the Stave of Ancients script (#7929)
* WIP Artorius the amiable

* Add Artorius sql update

* Splited npc script to stave of ancients script

  * Move reveal form to npcstaveqai
  * Change enum constant names
  * Refactor DoAction
  * Refactor feign death reset
2021-10-28 13:08:19 -03:00
acidmanifesto
0df821cbb0 chore(Core): Code Reduction dealing with Logging, (Cosmetic only). (#8686) 2021-10-24 22:33:16 -03:00
UltraNix
36aced608c fix(Core/Professions): Fixes some profession specs available without … (#8385)
Fixes #5399
2021-10-23 14:39:19 -03:00
Kitzunu
bc82f36f1f refactor(Core/Unit): clean MonsterText methods (#6957) 2021-10-15 10:25:29 +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
2f449326e0 refactor(Core): Rename ...Manager to ...Mgr (#6910)
* Rename MapManager.h to MapMgr.h

* Rename BanManager.h to BanMgr.h

* Rename MapManager.cpp to MapMgr.cpp

* Rename BanManager.cpp to BanMgr.cpp

* Rename MapRefManager.h to MapRefMgr.h

* Rename ThreatManager.h to ThreatMgr.h

* Rename GridRefManager.h to GridRefMgr.h

* Rename ThreatManager.cpp to ThreatMgr.cpp

* Rename GroupRefManager.h to GroupRefMgr.h

* Rename HostileRefManager.h to HostileRefMgr.h

* Rename HostileRefManager.cpp to HostileRefMgr.cpp

* Rename MMapManager.h to MMapMgr.h

* Rename FollowerRefManager.h to FollowerRefMgr.h

* Rename VMapManager2.h to VMapMgr2.h

* Rename IVMapManager.h to IVMapMgr.h

* Rename MMapManager.cpp to MMapMgr.cpp

* Rename VMapManager2.cpp to VMapMgr2.cpp

* Rename RefManager.h to RefMgr.h

* Rename WaypointManager.h to WaypointMgr.h

* Rename WaypointManager.cpp to WaypointMgr.cpp

* Rename MPQManager.h to MPQMgr.h

* Rename MPQManager.cpp to MPQMgr.cpp

* Rename IMMAPManager.h to IMMAPMgr.h

* fix build

* Update Main.cpp

* chore(Core/Misc): Remove toxic language

* Revert "chore(Core/Misc): Remove toxic language"

* fix build

* build
2021-09-15 17:50:28 +02:00
Viste
a9796af174 fix(Core/Misc): bunch of crashfixes (#7307) 2021-09-14 14:38:56 +02:00
Francesco Borzì
f73ef1cd5a fix(Core/Unit): -Wdeprecated-enum-enum-conversion warning (#6868) 2021-07-13 11:51:58 +02:00
Francesco Borzì
4103fca5a4 fix(Core/ObjectGuid): prevent creating copies when looping objects (#6852) 2021-07-10 15:54:16 +02:00
UltraNix
0c22cae717 fix(Scripts/Quest): reward money amount of Apprentice Angler (#6431)
Fixed #5184.
2021-06-27 01:43:55 +02:00
Kargatum
5991b2769a feat(Core/Scripts): split the huge scriptloader into smaller pieces (#5346)
* feat(Core/Scripts): split the huge scriptloader into smaller pieces

* AddSC_swamp_of_sorrows del

* 1

* add mod info

* 1

* 039f0e0faa

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2021-06-22 23:19:02 +02:00
Kargatum
9ac6fddcae feat(Core/Database): port TrinityCore database API (#5611) 2021-06-22 06:21:07 +02:00
Kargatum
5787d00d54 chore(Core/Logging): replace most server loggers (#5726)
* chore(Core/Logging): replace most server loggers

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2021-06-21 03:07:12 +02:00
Yehonal
baf437bb98 feat(Core): improved some hooks (#6302) 2021-06-13 10:23:24 +02:00
Kitzunu
7152ddc82c refactor(Core/Grids): Ported cmangos/mangos-wotlk@ea99457 (#6113)
* refactor(Core/Grids): Ported cmangos/mangos-wotlk@ea99457

(cherry picked from commit d6201e5dbb)
Co-Authored-By: Shauren <shauren.trinity@gmail.com>
Co-Authored-By: SilverIce <slifeleaf@gmail.com>

* Update CellImpl.h

* w

* more more brackets

* ew

* fix build
2021-06-03 05:27:51 +02:00
Walter Pagani
191b94e285 refactor(SmartAI): move C++ script to DB (SAI) (#6067) 2021-06-02 14:23:38 +02:00
Kitzunu
897a02bb75 refactor(Core/Misc): acore to Acore (#6043) 2021-05-31 14:21:54 +02:00
Walter Pagani
376a7983b3 fix(Scripts/Innkeeper): remove hard-coded texts (#5811) 2021-05-14 20:41:54 +02:00
UltraNix
f4c226423d feat(Core/Misc): implement ObjectGuid class (port from TC) (#4885) 2021-04-25 22:18:03 +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
Kitzunu
33aeadf8b6 refactor(Core/Misc): Define & Rename Attributes and flags (#5193) 2021-04-15 14:16:39 +02:00
Peter
8119bff979 fix(DB/SAI): Lunaclaw (#4859)
Co-authored-by: joschiwald <joschiwald@online.de>
Co-authored-by: illfated <illfated@users.noreply.github.com>
2021-03-18 14:26:17 -04:00
Cláudio Costa
456fe55952 fix(Core/DB): Susurrus hardcoded to SmartAI (#4819) 2021-03-17 12:36:37 -06:00
Francesco Borzì
f6a17164be fix(Core/License): issue with old files license (#4762) 2021-03-17 09:46:01 -06:00
Stefano Borzì
53d7341645 fix(DB/Text): chicken text for CLUCK special quest (#4714) 2021-03-07 13:13:06 +01:00
Kitzunu
28f1dc5c0c refactor(Core): replace NULL with nullptr (#4593) 2021-03-02 01:34:20 +01:00
Kargatum
b9e132a941 chore(Misc): correct double includes (#4647) 2021-02-26 17:44:08 +07:00
Kitzunu
dbc0ff6554 refactor(Core): sort #includes alphabetically (#4579) 2021-02-24 22:34:42 +01:00
Francesco Borzì
f85cb30c99 feat(Core/Conf): toggle XP price (#4388) 2021-02-02 04:11:54 +01:00