Jeremy
be11f42a16
Core/Battlegrounds: Move to scripts ( #29799 )
...
* Introduce new BattlegroundScript class for map/bg specific scripts
* Remove all sub, zone specific, battleground classes except Arena
* Move all bg zone scripts to new BattlegroundScripts class in script folder
* Remove ZoneScript from Battleground class
* Remove some unused hooks from Battleground
2024-03-28 19:29:22 +01:00
Shauren
4779fa5048
Core/Misc: Use our new unique_trackable_ptr for various classes exposed to scripts (not actually used anywhere currently)
2024-03-13 18:51:29 +01:00
Jeremy
1ef0c04520
Core/Battlegrounds: Clean up some Team/TeamId parameters to use enums instead of raw integer types ( #29535 )
...
* Fix criteria data type bg loss team score
2023-12-29 14:12:15 +01:00
Jeremy
72b9aace54
Core/Battlegrounds: Implemented BfA Warsong Gulch ( #29247 )
2023-08-29 08:38:10 +02:00
Jeremy
0ede6c1556
Core/Battlegrounds: Rework queues ( #29200 )
...
* No more copies of Battleground classes
* FreesSlotQueues now have as key the MapId instead of queue id
* Random queues can now popup already busy specific battelgrounds (queues are NOT merged)
* Removed Holiday handling, this should already be handled in BattlegroundMgr::IsBGWeekend
2023-08-26 14:03:42 +02:00
Jeremy
205aba1ff3
Core/Battlegrounds: Moved AreaSpiritHealer resurrection handling to respective npc flags ( #28508 )
...
* UNIT_NPC_FLAG_AREA_SPIRIT_HEALER
* UNIT_NPC_FLAG_2_AREA_SPIRIT_HEALER_INDIVIDUAL
2023-05-09 05:20:35 +02:00
Shauren
7b31080258
Core/Misc: Modernize code a bit by replacing std::tie with either structured bindings or operator<=>
2023-04-06 17:46:58 +02:00
Shauren
d791afae1d
Core/Logging: Switch from fmt::sprintf to fmt::format (c++20 standard compatible api)
2023-01-08 21:16:53 +01:00
Shauren
fbe0b8efeb
Core/Maps: Removed MapInstanced - no longer neccessary for grid data reference counting (moved to TerrainInfo)
2022-07-24 18:56:40 +02:00
Jeremy
19f64e66e5
Core/GameObjects: Implemented GAMEOBJECT_TYPE_CAPTURE_POINT ( #27034 )
2022-02-26 19:01:00 +01:00
Shauren
ad4f4bfab7
Core/Misc: Minor game include cleanup
2022-02-13 00:49:10 +01:00
Ovahlord
7a5529eb58
Core/Events: refactored battleground holiday assignments.
...
Instead of going with shitty bitmasks we now accept plain battleground ids
instead
(cherry picked from commit 8a82403400ef49415e14530f4b55d55ef38bc74e)
2022-01-21 22:09:06 +01:00
ccrs
df2f6ad219
Core/Shared: add BattlefieldBattleId definitions
...
Also rename BG_TEAMS_COUNT and BattlegroundTeamId
(cherry picked from commit 7417cbc655bf9c519b11c4821d8f0619851ea9f7)
2021-11-15 18:52:02 +01:00
Jeremy
20d70abb2c
Core/Battlegrounds: Change Battleground* argument to BattlegroundQueueTypeId ( #26806 )
2021-08-14 19:56:30 +02:00
ariel-
3bc3b3eeeb
Core/Globals: revert back to unordered_map for templates
...
Partial revert of commit b64c5043140dc7b7908e259e441de16cc0261320
See discussion on https://github.com/TrinityCore/TrinityCore/commit/b64c5043140dc7b7908e259e441de16cc0261320
(cherry picked from commit b75ff7d4bf13fb4778843c99521223becc096ca0)
2021-06-16 01:29:25 +02:00
ariel-
21556667c1
Core/Globals: throw some RAII into ObjectMgr, and load templates into vectors
...
Ref #14274
(cherry picked from commit b64c5043140dc7b7908e259e441de16cc0261320)
2021-06-16 01:00:11 +02:00
Osleyder Gonzalez Acosta
d4ad987010
Core/Misc: Update a few enums from db2 to 9.0.2 ( #25956 )
2021-01-28 22:02:03 +01:00
Aokromes
93552510ab
Core/Logs: Fix more logs
...
the others have exit,so they continue to be error because they are critical
(cherry picked from commit b68484cfb0c371dc8de24acf533a20cb5277d2fd)
2021-01-21 22:30:40 +01:00
Shauren
1c52d5fff7
Core/Misc: Replace NULL with nullptr
2020-08-14 17:06:03 +02:00
Shauren
41c3675bb9
Fix warnings
2020-05-31 17:18:18 +02:00
Shauren
bf8714b870
Core/Battlegrounds: Queue updates
...
* Fixed battleground queues for battlegrounds with id higher than 255
* Fixed queue display ingame after entering bg
* Fixed ingame display after leaving bg queue
* Fixed bg scoreboard
2020-05-31 16:49:18 +02:00
Shauren
d435d5d5ba
Core/PacketIO: Fixed BattlefieldStatusHeader structure and QueueID values for other battleground types
2020-05-27 00:29:13 +02:00
Golrag
d7623adf0e
Core/Battlegrounds: Use the following fields from DB2/battleground_template data in the Battleground Class:
...
* isArena
* name
* queueId
* min & max players (per team)
* map id
* script id
* start max dist
* type id
* min & max level
* Save the WorldSafeLocsEntry* instead of the Position in the BattlegroundTemplate struct
2020-05-02 12:05:30 +02:00
Aokromes
b0bf1275ee
New Year
2020-01-02 06:44:10 +01:00
Shauren
3ac790287a
Core/DataStores: Updated db2 structures to 8.2.5
2019-10-27 00:12:45 +02:00
vincent-michael
5620eb9463
Update copyright note for 2019
...
auto happy = new year(2019);
2019-01-01 10:14:33 +01:00
joschiwald
ed318fdc46
Core/Battleground: Dropped battleground texts from trinity_string and replaced them with proper BroadcastText
2018-01-14 18:48:01 +01:00
vincent-michael
7d00ae4045
Update copyright note for 2018
...
auto happy = new year(2018);
2018-01-01 00:40:17 +01:00
Shauren
7bb62cd23d
Core/DataStores: Updated db2 structures to 7.3.2.25480
2017-12-30 00:26:37 +01:00
jackpoz
74e4f73fcb
Core/Misc: Fix static analysis issues
...
(cherry picked from commit 7d3291e8044841b085ca5b0987bdf25269881863)
# Conflicts:
# src/server/scripts/Outland/TempestKeep/Eye/boss_kaelthas.cpp
2017-07-16 20:50:43 +02:00
Shauren
0d06fcee17
Core/PacketIO: Updated and enabled LFG packets
2017-07-12 00:05:41 +02:00
Shauren
b453e12423
Core/Game: Include cleanup part 5
...
* ObjectMgr.h
* Player.h
* Unit.h
* G3D should no longer propagate everywhere from Spline/MotionMaster
2017-06-04 01:00:45 +02:00
Shauren
3d7c2ef88f
Core/Game: Include cleanup, part 4 - packets and largest headers (after preprocessing, except player/objectmgr)
2017-05-21 23:18:43 +02:00
Shauren
c5d3dd90be
Core/Game: Include cleanup
...
* Mostly aimed at removing Log/DatabaseEnv includes from other headers
* Fix most packet headers including other packet headers - moved common structures such as ItemInstance to their own files
* Moved SAI function definitions to source files (massive or requiring many different dependencies)
2017-05-18 23:53:25 +02:00
Shauren
3a418a0bbc
Core/Common: Include cleanup
2017-05-11 22:29:51 +02:00
ariel-
5681dc3a64
Core/BattlegroundMgr: Update Battlegrounds each second instead of every tick (just like Battlefield).
...
There are some battleground scripts (like SOTA) performing object access every update, this should help throttle the cpu usage.
(cherry picked from commit 9cdbf903e28fca303c580b096016e26c402a6a7f)
# Conflicts:
# src/server/game/Battlegrounds/BattlegroundMgr.cpp
# src/server/game/Battlegrounds/BattlegroundMgr.h
2017-02-12 15:34:34 +01:00
vincent-michael
86b98686a9
Update copyright note for 2017
...
Happy new year
2017-01-01 16:23:13 +01:00
ariel-
f7d351fb70
Core/Battleground: Fix issue reported by static analysis
...
(cherry picked from commit 58c5011499056cf2c415e24e854a3de93a870f9e)
2016-11-14 05:35:38 -03:00
Shauren
af25942aec
Core/PacketIO: Updated packets to 7.1.0.22900
2016-10-25 19:29:27 +02:00
Shauren
d34020da7f
Core/DataStores: Fixed loading signed db2 fields
2016-10-09 16:54:11 +02:00
Shauren
70102f32fe
Core/DataStores: Updated opcodes and db2 to 7.0.3.21414
2016-05-20 23:49:53 +02:00
Aokromes
d4146a23ac
Merge pull request #16038 from tkrokli/grammar_and_spelling_corrections_335
...
[3.3.5] Core/Logs: English text corrections
(cherry picked from commit 4cd937140ba2ed66493d65c0090cd371706c1e2e)
2016-04-08 19:48:58 +02:00
Naios
329225b40d
Core/Game: Move singleton instances into compilation units
...
* Fixes issues when building shared libraries
(prevents gcc and clang from providing several instance)
2016-03-11 18:35:49 +01:00
Shauren
0fc728efb9
Core/PacketIO: Updated and enabled SMSG_AREA_SPIRIT_HEALER_TIME
2016-02-04 21:00:00 +01:00
Vincent-Michael
478cc756eb
Update copyright note for 2016
...
Happy new year (Again new year with idiots ...)
2016-01-01 00:34:25 +01:00
Naios
b7b49fe35f
Core/Globals: Use std::string rather than char* to pass script names around.
2015-11-04 20:52:13 +01:00
jackpoz
d0ce95fca5
Core/Battleground: Fix issue reported by static analysis
...
Coverity defect IDs: 1193415
(cherry picked from commit c67118f909fee1ed489e3125cb85f3a8179c1a43)
2015-09-24 23:25:28 +02:00
Vincent-Michael
2e586bc520
Core: Header cleanup in game/*/*.cpp
2015-07-25 20:18:42 +02:00
Kinzcool
7033ea6482
Core/Battlegrounds: Load the orientation from WorldSafeLocs.dbc's data instead of custom values
...
* Fixed incorrect starting graveyards for IoC
2015-05-02 20:38:22 -04:00
Shauren
5a1ab5d871
Core/PacketIO: Updated and enabled more battleground packets
2015-04-18 11:27:25 +02:00