Commit Graph

155 Commits

Author SHA1 Message Date
Maelthyr
2c7b274bc5 refactor(Core): Improve struct alignment and codestyle (#12335)
refactor(Core): improve struct alignment and codestyle
2022-07-10 14:19:11 -04:00
Luis Vaz
37ee4c6a88 fix (core): value of the MAX_ARENA_SLOT const
Update ArenaTeam.h
2022-06-18 13:48:24 -04:00
UltraNix
f5948b5fe4 fix(Core/Battlegrounds): Fixed battleground queue announcer. (#11348) 2022-04-24 16:55:00 -03:00
UltraNix
385176f434 fix(Core): Crashfix. (#11490)
* fix(Core): Crashfix.

* Update.
2022-04-23 11:32:09 -03:00
Axel Cocat
17e143763a fix(Core/Unit): Remove some hardcoded texts (#5816) 2022-04-15 13:17:06 +02:00
Kitzunu
b709a22ddc feat(Core/Players): PlayerFlag helpers (#11294)
* feat(Core/Players): PlayerFlag helpers

* Update Player.h

* fix build
2022-04-05 18:53:50 +02:00
Kitzunu
b41967a067 feat(Core/GameObject): Gob flag helpers (#11287) 2022-04-05 13:52:58 +02:00
UltraNix
4521dcb5c5 fix(Scripts/AlteracValley): Crashfix. (#10976)
* fix(Scripts/AlteracValley): Crashfix.

* Update.
2022-04-01 06:58:28 -03:00
Kitzunu
856aed6fc6 feat(Core/Unit): New helpers for UnitFlag and UnitFlag2 (#11227) 2022-03-30 07:59:42 -03:00
Kargatum
78bdc89881 feat(Core/Battleground): rework bg queue system (#10817) 2022-03-15 14:36:49 -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
Nefertumm
a775ddcb5b Revert "fix(Scripts/AlteracValley): Mini bosses should evade with boss (#10544)" (#10975)
This reverts commit 348b374487.
2022-03-11 06:23:48 -03:00
UltraNix
348b374487 fix(Scripts/AlteracValley): Mini bosses should evade with boss (#10544)
Fixed #10460
2022-03-10 13:56:02 +01:00
Nefertumm
680e60c68b BREAKING CHANGE(Core/Config): Individual XP rate per bg (#10793) 2022-03-04 12:36:16 +07:00
acidmanifesto
69e2f2e3aa fix/feat: (Core/PacketIO): updated sound and creature addon (#10813)
* fix\feat: (Core/PacketIO): updated sound and creature addon

updated SMSG_PLAY_SOUND, SMSG_PLAY_MUSIC and SMSG_PLAY_OBJECT_SOUND via tc cherry pick
https://github.com/TrinityCore/TrinityCore/pull/2363 and 0f1f7ef401 by @joschiwald  and @ForesterDev
This so far a attempt to align atleast with sound with tc, and correct a potentional issue of hearing creature sounds that is not in visible range. I notice PlaySound was being defined in some weird dependency as it isnt with tc so I renamed it to Playsound. Notice a isLarge still being used in the creature addon when it was depreciated, so i removed that a that seem to of interfered with visibilitydistanceType.

Co-Authored-By: joschiwald <736792+joschiwald@users.noreply.github.com>
Co-Authored-By: ForesterDev <11771800+ForesterDev@users.noreply.github.com>
2022-02-26 10:05:58 -05:00
UltraNix
ccc9bb6679 fix(Core/Battlegrounds): Fixed Alterac Valley quests. (#10754) 2022-02-22 03:36:20 -03:00
UltraNix
400caec709 feat(Core/Battlegrounds): Min level of selected random bg must be lower than pvp bracket level. (#10752) 2022-02-21 02:36:48 -03:00
UltraNix
2dc40d1a7d fix(Core/Battlegrounds: Fixed doubled score in Alterac Valley battleground. (#10743) 2022-02-20 15:44:18 -03:00
acidmanifesto
881760821e fix (core): Final Override to Final (#10731)
PT2, codefactor was green and then decided to complain about the other final overrides in BG
2022-02-18 14:08:11 -05:00
acidmanifesto
c64c0a2945 fix (core): BG Final Override to Final (#10729)
* fix (core): BG Final Override to Final
2022-02-18 09:37:23 -05:00
Kargatum
5143872aed feat(Core/Battleground): split Arena and Battleground score (#10616) 2022-02-18 05:20:04 +07:00
Francesco Borzì
fa02edb0ae fix(Core/Battleground/PvPstats): correct bracket_id for AV (#10677) 2022-02-16 23:11:58 +01:00
Kitzunu
cf65cd6baf refactor(Core/Misc): sqrt/log/exp() to std::sqrt/log/exp() (#9792) 2022-02-09 11:59:30 +01:00
Francesco Borzì
65a1fbfd35 fix(Core/BG): store correct faction id (#10576) 2022-02-09 01:20:55 -08:00
UltraNix
0b02ba87fc fix(Core/Reputations): Faction rep gained by killing mobs is now prop… (#9737)
* fix(Core/Reputations): Faction rep gained by killing mobs is now properly rounded up.

Do not increase reputation rank if exceeds max rank cap.
Fixes #8718
2022-02-05 07:37:00 -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
3a0a9ba088 feat(Core/Common): move EventMap to separated files, add support chrono (#10209) 2022-02-04 15:12:45 +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
Francesco Borzì
9dc88def35 refactor(Core): apply clang-tidy modernize-* (#9975)
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2022-01-17 14:35:07 +01:00
Kitzunu
cb7e355291 refactor(Core/Misc): sin() to std::sin() (#9795) 2022-01-06 19:29:40 +01:00
IntelligentQuantum
e57582accb Core/Packet: WorldState (#9435)
* Core/Packet: WorldState

* Test

* WRONG

Co-authored-by: acidmanifesto <joshua.lee.betts@gmail.com>
2022-01-03 11:50:56 -05:00
Kitzunu
913e65f97f refactor(Core/Misc): fabs() to std::fabs() (#9790)
- prefer std functions over C functions
2021-12-31 20:41:00 -03:00
Kitzunu
ac99eb48e1 refactor(Core/Misc): abs() to std::abs() (#9789) 2021-12-31 19:29:39 -03:00
Skjalf
58302e4196 feat(Core/Player): Implement player specific settings (#9483) 2021-12-26 08:39:15 -03:00
Francesco Borzì
cbc7e5466a refactor(Core): remove unused imports (#9767) 2021-12-19 19:41:14 +01:00
UltraNix
85abfafb2b fix(Core/Battlegrounds): Delay a little bit relocation of dead players. (#9302)
Fixes #8958
2021-12-08 18:10:26 -03:00
Kargatum
51adbffae4 feat(Core/Modules): add separated lib for modules (#9281) 2021-12-02 20:28:58 +07:00
Kitzunu
bf05bd3c88 refactor(Core/BattlegroundSA): Convert to std::chrono (#8499) 2021-11-25 14:24:43 -03:00
acidmanifesto
29f49108a5 chore(Core): Remove unnecessary slang Cosmetic (#9325)
* Remove unnecessary slang

Removes ZOMG! that is used in the src in logging and notes. Completely Unnecessary. Contributes to nothing useful. Inflates source. Not needed at all in any shape or form. Not Developer Lingo either.

* Further Clean Up

Removed Profanity

* sensible grammar correction

* More ZOMG! removal
2021-11-25 04:31:54 -03:00
Kargatum
f62664c987 refactor(Core/Misc): headers cleanup (#9259) 2021-11-22 17:24:39 +07:00
Kitzunu
d8f4a5cd0c refactor(Core/BattlegroundRV): Convert to std::chrono (#8498) 2021-11-20 11:56:16 -03:00
Skjalf
731d256420 refactor(Core/Cache): move the GlobalPlayerCache to its own class (#9166) 2021-11-18 16:53:36 +01: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
Kargatum
aa7932e971 feat(Core/EnumUtils): add more enum for support chat command (#8828) 2021-11-03 10:50:11 +01:00
Malcrom
f106de8788 refactor(Core): update getFaction to GetFaction and setFaction to SetFaction (#8708) 2021-11-01 17:04:32 +01:00
Kargatum
bc9473482e feat(Core/Chat): new argument parsing and unify chat hyperlink parsing (#6243) 2021-10-23 10:15:42 +02:00
Skjalf
c2381a5a1c fix(Core/BattlegroundAV) Irondeep/Coldtooth Supplies never despawning (#8612) 2021-10-22 00:03:47 +02:00
UltraNix
fc1420bfe4 feat(Core/Battlegrounds): Added extra parameter to SetQueueAnnouncementTimer. (#8607) 2021-10-20 05:30:30 -03:00
UltraNix
8d54facbfa fix(Core/Battlegrounds): Fixed timed announcement system for CrossfactionBG module. (#8521)
- Closes #6637
2021-10-17 11:44:23 +02:00