Commit Graph

371 Commits

Author SHA1 Message Date
Shauren
546d23264c Core/Misc: Make string and string_view literal suffixes globally available 2025-05-13 11:41:54 +02:00
Shauren
b5c99939a8 Core/Misc: Minor compile time improving changes 2025-05-07 15:41:41 +02:00
Shauren
dbd761d20a Core/Spells: Remove manual spell guid creation in scripts 2025-02-01 00:32:34 +01:00
Shauren
6f0e96a30a Core/Misc: Removed GetClassName preprocessor hack 2025-01-07 19:40:20 +01:00
Shauren
f647ff6865 Core/Commands: Extract bonus lists and item context from provided item link for .additem commands
Closes #30209
2025-01-07 16:46:44 +01:00
Shauren
27860c3316 Core/Database: Added std::span based functions to Field and PreparedStatement 2025-01-03 13:04:19 +01:00
Ovahlord
aefcd2fac7 Core/Units: moved melee attack rage generation into Unit::AttackerStateUpdate and send the generated rage in combat log packet instead of power update packets
(cherry picked from commit b179a7246d)
2024-12-27 12:04:05 +01:00
Shauren
1f60e76b7f Core/Commands: Refactor .additem to use typed args 2024-09-17 15:35:20 +02:00
Shauren
c4b710446d Core/Realms: Realmlist refactors
* Removed global realm variable from World and use RealmList everywhere
* Match auth build key with client version
* Restored allowedSecurityLevel checks for realmlist packet building
* Restored updating population field, mysteriously removed 15 years ago in f20b25d1c9
2024-08-18 18:59:58 +02:00
Shauren
e59eef5432 Core/PacketIO: Updated to 11.0.0 2024-08-02 13:25:41 +02:00
Shauren
39fc9f8000 Core/Misc: Minor fixes in preparation to support fmt v10 2024-05-02 19:46:18 +02:00
Shauren
45ee989c70 Core/vmaps: Removed vmap lookup functions duplicating functionality of each other 2024-03-07 00:23:52 +01:00
Shauren
a4a4d010a0 Core: Updated to 10.2.5 2024-01-21 22:25:10 +01:00
Shauren
4dce6ab228 Core/Quests: Implemented QUEST_OBJECTIVE_FLAG_2_QUEST_BOUND_ITEM that makes required items not be stored in inventory 2023-12-30 15:45:37 +01:00
Shauren
0ce96adb7a Core/Objects: Treat areas that have ParentAreaID filled but dont have IsSubzone flag as zones instead of areas 2023-10-06 20:22:14 +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
Shauren
0fb8765a66 Core/Items: Item bonus generation improvements
* Pass ItemContext to item creation wherever possible
* Support scaling item levels with m+ keystone levels (not used currently)
* Fixed item link validation when client sends it as default uninitialized bonus list with context only
* Support scaling items depending on current active season (seasons not implemented)
* Implemented content tuning redirection
2023-06-17 16:29:59 +02:00
Shauren
8cfc8e4141 Core/Spells: Always remove spell target from transport on teleport spells if spell destination does not target a position on the transport 2023-06-08 18:37:08 +02:00
Jeremy
c1df555e16 Core/Graveyards: Drop Faction column and replace it with conditions (#28965) 2023-06-01 02:33:46 +02:00
Shauren
3260b94dd6 Core/Misc: Replace string to int conversion functions from Common.h with c++17 std::from_chars based ones Trinity::StringTo 2023-05-13 15:46:27 +02:00
Shauren
9b924522d0 Core/Instances: Delete InstanceSaveMgr and replace most of its uses with new InstanceLockMgr 2022-10-04 00:19:38 +02:00
Shauren
17665c929c Core/Instances: Instance lock rewrite (WIP) 2022-10-04 00:19:38 +02:00
Shauren
16a06346ae Core/Maps: Move terrain data handling out of Map class
Partial port of cmangos/mangos-wotlk@ff5232c648
2022-07-23 19:13:33 +02:00
Shauren
8466894d81 Core/Maps: Replace some Instanceable() checks with IsDungeon() 2022-07-20 18:55:40 +02:00
Shauren
cb99b08b86 Core/Players: Fixed ExploredZones size and PLAYER_EXPLORED_ZONES_SIZE desync 2022-07-17 20:23:37 +02:00
Shauren
a89fe30b41 Core/Commands: Fixed bonusListID and context arguments for .additem set command 2022-06-09 23:04:32 +02:00
Shauren
630b60eb0d Core/GameObjects: Transport (type 11) improvements
* Fully synchronize serverside animation progress with client
* Implemented updating passenger positions on elevators
* Removed visibility hack for elevators that always forced CreateObject packet to be sent to client
2022-05-25 22:14:32 +02:00
Shauren
25c0aaa83f Core/Players: Allow teleporting to a specific instance id 2022-05-14 20:40:24 +02:00
kvolk2git
299db7af1a Update cs_misc.cpp (#27418)
(cherry picked from commit 8ac63c7952)
2022-03-24 14:01:15 +01:00
kvolk2git
e799c4e003 add item xxxxx show to who was added item (#27020)
Co-authored-by: Aokromes <Aokromes@users.noreply.github.com>
(cherry picked from commit 822b32b64b)
2022-03-20 19:44:19 +01:00
Giacomo Pozzoni
a4b1cda2c0 Script/Commands: Allow to specify the target player in .additem command (#26997)
* Script/Commands: Allow to specify the target player in .additem command

New syntax: .additem <required item id> <optional item count> <optional player name>
Close #25875

* Move target player to new command ".additem to <player> <item> <count>"

(cherry picked from commit bebf1876ab)
2022-03-19 23:00:41 +01:00
Aokromes
a7e90650fe Scripts/Misc: Remove 2 logs, they are handled by gm logs
(cherry picked from commit a462daa01c)
2022-03-19 22:54:49 +01:00
Carbenium
7b2ff1c1fc Scripts/Commands: Convert misc command table to new system
(cherry picked from commit 6b9afac82f)
2022-03-11 14:08:17 +01:00
Gildor
7d01ad8b8f Scripts/Commands: Minor improvements in .pinfo and .unban character commands (#26586)
* Scripts/Commands: Minor improvements in .pinfo and .unban character commands

(cherry picked from commit 5446209b89)
2022-03-11 11:33:37 +01:00
Treeston
b5f3a6fd80 Core/Maps: All RespawnInfo* handed to outside code are now RespawnInfo const*, to signify that outside code has zero business changing these.
(cherry picked from commit 803dc789e4)
2022-03-05 17:12:23 +01:00
jackpoz
13bf0e71b9 Scripts/Commands: Include map min height in ".gps" command
(cherry picked from commit 9994459bd1)
2022-03-05 17:01:36 +01:00
Treeston
106c9b7541 Scripts/Commands: Rename .additemset to .additem set to avoid ambiguity
(cherry picked from commit e11b466897)
2022-02-27 21:03:20 +01:00
Treeston
46d4e2fa83 1eca51b follow-up, nuke command.permission from orbit; it was only duplicating data already stored in the core.
(cherry picked from commit 991dc8e050)
2022-02-27 20:59:19 +01:00
Treeston
3fd2eb126c [3.3.5] ChatCommands, the other half: chat command resolution refactor (PR #25463)
(cherry picked from commit 1eca51b417)
2022-02-27 20:08:41 +01:00
Shauren
d057e057d3 Core/Misc: Optimize ChatCommand includes (include only where neccessary) 2022-02-11 21:57:45 +01:00
Treeston
7d0586812a Core/Misc: Fix some static analysis warnings exposed after 6b8f3d0.
(cherry picked from commit 59be657ca2)
2022-02-05 23:05:14 +01:00
Treeston
013c9b2cb7 Core/ChatCommands: make ExactSequence more readable
(cherry picked from commit feaaa595ca)
2022-02-05 21:29:53 +01:00
Peter Keresztes Schmidt
bdd4ccbd78 Core/ChatCommands: Drop PlayerIdentifier's cast operators which could return nullptr (PR #25431)
(cherry picked from commit 8985fc4046)
2022-02-05 21:25:23 +01:00
Treeston
42be7836df Chat/Commands: Eradicate ChatHandler::extractOptFirstArg
(cherry picked from commit 4f636b80e4)
2022-02-05 16:21:54 +01:00
Treeston
a65e7e0213 Scripts/Commands: Fix a crash in .help - closes #25360
(cherry picked from commit 944f49d613)
2022-02-04 21:21:40 +01:00
Treeston
9f97fdd31a Core/Common: Tokenizer -> Trinity::Tokenize (PR: #25327)
(cherry picked from commit 534a2388b7)
2022-02-04 00:27:14 +01:00
Peter Keresztes Schmidt
1a6564f42f Scripts/Commands: Convert argument parsing of some misc commands to new system (#25308)
* Core/Shared: Make WeatherType smart

* Scripts/Commands: Convert argument parsing of some misc commands to new system

(cherry picked from commit 5bab0e43c6)
2022-02-04 00:27:12 +01:00
Giacomo Pozzoni
864d775280 Core/Misc: Fix static analysis issues (#25194)
(cherry picked from commit 07fd84b679)
2022-01-26 14:06:40 +01:00
Peter Keresztes Schmidt
1e1679a1f7 Core/DataStores: Port refactors from Update DBC field names to generated ones (#24999)
(cherry picked from commit c92950b3e1)
2022-01-23 00:06:16 +01:00
ForesterDev
9d38eeec7e Core/Player: add helper methods for PLAYER_FLAGS_DEVELOPER (#24511)
* Core/Player: add helper methods for PLAYER_FLAGS_DEVELOPER. Update .dev command to new command model

* Rename _player -> player

(cherry picked from commit 8128bb97db)
2022-01-01 23:18:04 +01:00