feat(Core/Pool): improve pool manager (#2027)

Use "std::unordered_map" instead of "std::vector" in order to reduce memory usage (not much, perhaps 5-10%)
identify missing pool entries in pool_template via error messages in the server log
Concerning the pool entries I applied the following fixes as they would now cause errors:

Remove pool entry 5217 from pool_gameobject (only 1 game object "Saronite", not needed here)
Remove pool entry 1047 from pool_creature (only 1 creature "Hematos", not needed here)
Add a few missing Saronite nodes to pool_template
This commit is contained in:
Stoabrogga
2019-07-10 02:28:56 +02:00
committed by Poszer
parent 940f4f907a
commit c29c7bd968
3 changed files with 107 additions and 66 deletions

View File

@@ -0,0 +1,16 @@
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1561816769087112416');
-- Only one game object "Saronite", pool entry is not needed
DELETE FROM `pool_gameobject` WHERE `pool_entry` = 5217;
-- Only one creature "Hematos" (8976), pool entry is not needed
DELETE FROM `pool_creature` WHERE `pool_entry` = 1047;
-- Add missing Saronite nodes to pool template
DELETE FROM `pool_template` WHERE `entry` IN (5450,5506,5608,5517);
INSERT INTO `pool_template` (`entry`,`max_limit`,`description`)
VALUES
(5450,1,'Icecrown 189980, node 3'),
(5506,1,'Icecrown 189980, node 59'),
(5608,1,'Icecrown 189980, node 161'),
(5517,1,'Icecrown 189981, node 70');