Commit Graph

56 Commits

Author SHA1 Message Date
M'Dic
7e58650cf5 revert(Core): ChrRace.dbc full implementation (#16114)
* revert (core): ChrRace.dbc full implementation

we revert this due to several issues arrising. Although the dbc reading is done in full and correctly. Azerothcore relied on the original handling (althought not propper) for so long that  there is

* revert

* Update remove_charrace_dbc.sql

* Update remove_charrace_dbc.sql

* Update remove_charrace_dbc.sql
2023-04-29 08:23:11 -03:00
M'Dic
3eae4c5713 fix(core/dbc): improve ChrRace DBC handling (#14843)
Cherry pick of https://github.com/TrinityCore/TrinityCore/pull/24508

Co-authored-by: HelloKitty <5829095+HelloKitty@users.noreply.github.com>
2023-04-28 01:29:33 +02:00
Stefano Borzì
034b521501 feat(CI): add cppcheck (#15211)
Co-authored-by: Skjalf <47818697+Nyeriah@users.noreply.github.com>
2023-03-05 18:47:18 +01:00
Skjalf
a4dcec5e42 feat(Core/Disables): Implement DISABLE_TYPE_LOOT (#15136) 2023-02-19 19:20:15 -03:00
Kitzunu
f039836a2f chore(Core/Misc): Change all TODO to doxygen comment (#14966) 2023-02-12 10:05:34 -03:00
Mickaël Mauger
21700f2760 fix(Core/Loot): Fix too many quest items visible by master looter (#14510)
* Fix too many quest items visible by master looter

* Fix typo
2023-01-07 13:27:28 -03:00
Mickaël Mauger
e35078a1f8 fix(Core/Loot) Fix master looter invisible quest items (#14103) 2023-01-02 21:47:08 -03:00
UltraNix
6345958769 fix(Core/Loot): Disenchanted, milled or prospected items should be se… (#14273)
fix(Core/Loot): Disenchanted, milled or prospected items should be sent as retrieval mail in case of full bags.

Fixes #10798
2022-12-27 21:43:12 -03:00
Mickaël Mauger
868053d4ce fix(Core/Loot): Fix quest items looting system (#13720)
* Fix quest items loot

* Fix coding conventions
2022-12-06 12:42:44 -03:00
UltraNix
6278072b16 fix(Core/Loot): Fixed processing duplicated loot item within different groups. (#13038)
Fixes #13038
2022-11-12 13:31:29 +01:00
M'Dic
967f8ce6d6 update (core): Startup console capitalizations (#13195) 2022-10-01 13:09:34 -04:00
Skjalf
3cfdc7e678 fix(Core/Loot): Unique items shouldn't be hidden indiscriminately (#12759) 2022-08-16 15:52:01 -03:00
Skjalf
32ba21d029 feat(Core/Scripting): Implement OnAllowedForPlayerLootCheck() hook (#12316)
* feat(Core/Scripting): Implement OnAllowedForPlayerLootCheck() hook

* reverse logic
2022-07-09 00:10:04 -03:00
Bogir[rus]
75439773d0 fix and bringing to a unified style warnings of server loading logs to be more visible at server startup (#10970) 2022-03-12 04:57:26 -03:00
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
f62664c987 refactor(Core/Misc): headers cleanup (#9259) 2021-11-22 17:24:39 +07:00
Skjalf
39425e0c1f feat(Core/Loot): Implement player_loot_template (#9198)
* Also fix AV player loot
2021-11-17 08:07:21 -03:00
acidmanifesto
006ee3b7e2 chore(Core): remove duplicate comment (#9140) 2021-11-15 12:51:15 +01:00
patou01
0076535905 fix(Core/Loot): players can roll on unique items they already own (#8003)
Players should not be able to roll on items they already have.
This commit removes that.

- Closes https://github.com/azerothcore/azerothcore-wotlk/issues/7896

Co-authored-by: Skjalf <47818697+Nyeriah@users.noreply.github.com>
2021-10-02 13:19:14 +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
UltraNix
a314d6091a fix(Core/Loot): properly handle referenced group loot templates (#7539) 2021-09-09 11:48:17 +02:00
UltraNix
02b0b29ffa fix(Core/Loot): Quest items should not be lootable/visible if quest objective already fulfilled (#7700)
- Closes #6442
2021-09-06 15:33:13 +02:00
Andrius Peleckas
dd14c63088 fix(Core/Vendors): incorrect check which allowed/disabled alliance players (#7507) 2021-08-26 15:41:17 +02:00
UltraNix
1b7d3708a6 fix(Core/Loot): (#7452)
- Players that did not participate in killing dungeon boss are not eligible to get loot.
- Players that are too far away from the looted object are not eligible to get loot.
- Players that released spirit and were outside the dungeon when the loot has been released are eligible to get loot.
- Players that have pending bind are not eligible to get loot.
- Properly get loot recipient for some chests in dungeons.
- All above fixes should work in any loot mode (group loot, master loot, etc.)
- Closes #2104.
2021-08-24 23:48:22 +02:00
robinsch
a3e3fd029f fix(Core/Item): prevent possible items dupe (#6943) 2021-07-21 12:05:12 +02:00
Kitzunu
a61f7a128f fix(Core/Loot): allow master looter to see and distribute all quest items (#6417)
Co-Authored-By: Giacomo Pozzoni <giacomopoz@gmail.com>
2021-07-09 19:40:34 +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
UltraNix
289f140ab1 fix(Core/Loot): Fixed loading conditioned item loot. (#6337)
- Fixes #6326
2021-06-18 17:07:24 +02:00
Yehonal
baf437bb98 feat(Core): improved some hooks (#6302) 2021-06-13 10:23:24 +02:00
UltraNix
6dacfc0717 fix(Core/Loot): properly save and load from DB loot from items (#6151)
- Closes #5472
- Closes https://github.com/chromiecraft/chromiecraft/issues/456
2021-06-08 19:26:34 +02:00
Kitzunu
897a02bb75 refactor(Core/Misc): acore to Acore (#6043) 2021-05-31 14:21:54 +02:00
Necropola
f239908840 fix(Core/Loot): make Loot::AddItem() honor LootItem::AllowedForPlayer() (#5774)
Original Author: @Wyrserth
2021-05-17 00:15:51 +02:00
Kitzunu
5954d9c739 refactor(Core/Misc): Define & Rename Attributes (#5311) 2021-04-28 14:55:24 +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
Kargatum
2b3d46bd4f feat(Core/Hooks): added collection of hooks to extends AC (#3047)
This collection of hooks comes from the Maelstrom project. It allows to release modules such as :
- 3v3-soloqueue
- 1v1 arena
- pvestats

and many others
2021-04-13 13:26:39 +02:00
UltraNix
c19ea1f7ad fix(Core/Loot): Items below group threshold should not be blocked by master looter. (#5041) 2021-04-07 13:30:34 +02:00
AbraKabastard
e4aa9be1f7 fix(Core/Loot): Gold should always be lootable, even if it's the only loot (#4842) 2021-03-20 17:26:57 +01:00
Francesco Borzì
f6a17164be fix(Core/License): issue with old files license (#4762) 2021-03-17 09:46:01 -06:00
Kitzunu
28f1dc5c0c refactor(Core): replace NULL with nullptr (#4593) 2021-03-02 01:34:20 +01:00
Kitzunu
dbc0ff6554 refactor(Core): sort #includes alphabetically (#4579) 2021-02-24 22:34:42 +01:00
Walter Pagani
5106e8234b fix(Core): loot party (#4409) 2021-02-12 13:03:49 +01:00
Kargatum
a2b26272d2 refactor(Core/Game): restyle game lib with astyle (#3466) 2020-10-12 10:08:15 +02:00
Kitzunu
1f89282b22 refactor(Core): NULL -> nullptr (#3275)
* NULL to nullptr

* NULL to nullptr

* NULL to nullptr

* NULL to nullptr

* NULL to nullptr

Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
2020-08-31 11:55:09 +02:00
Viste
e22d78ecd6 refactor(Core): rename namespaces and macros to acore (#2454) 2019-12-01 13:13:31 +01:00
Francesco Borzì
3a43e8c415 feat(Core): enable C++17 (#2234)
Co-authored-by: Winfidonarleyan <dowlandtop@yandex.com>
2019-09-02 13:54:10 +07:00
Francesco Borzì
0b88e24808 refactor(ItemTemplate): add missing enums + other minor improvements (#2236) 2019-08-26 20:43:53 +02:00
Francesco Borzì
37d9ef0126 fix(DB): mail_loot_template startup errors (#1404)
Fixed bug that made the core complaining about "unused mail_loot_template" while they were actually used 

Closes #1155
2019-02-05 19:55:00 +01:00
Viste(Кирилл)
7648858939 Core/LootMgr: Update lootMgr to normalize loot_template tables (#1137)
* Core/LootMgr: Update lootMgr to normalize loot_template tables 

original by trinitycore team
2018-12-27 23:55:15 +03:00