Core/Instances: merged some master branch commits in preparation for merging the upcomming instance save rewrite

This commit is contained in:
Ovahlord committed 2018-07-28 02:00:24 +02:00
1 parent 92ef398f56
commit 78ed8acdcc
73 files changed
+74 -98

No files matched your search

@@ -54,7 +54,7 @@ public:
struct instance_blackfathom_deeps_InstanceMapScript : public InstanceScript
{
instance_blackfathom_deeps_InstanceMapScript(Map* map) : InstanceScript(map)
instance_blackfathom_deeps_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
{
SetHeaders(DataHeader);
SetBossNumber(EncounterCount);
@@ -61,7 +61,7 @@ public:
struct instance_mount_hyjal_InstanceMapScript : public InstanceScript
{
instance_mount_hyjal_InstanceMapScript(Map* map) : InstanceScript(map)
instance_mount_hyjal_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
{
SetHeaders(DataHeader);
LoadObjectData(creatureData, nullptr);
@@ -60,7 +60,7 @@ class instance_culling_of_stratholme : public InstanceMapScript
struct instance_culling_of_stratholme_InstanceMapScript : public InstanceScript
{
instance_culling_of_stratholme_InstanceMapScript(Map* map) : InstanceScript(map)
instance_culling_of_stratholme_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
{
SetHeaders(DataHeader);
SetBossNumber(EncounterCount);
@@ -49,7 +49,7 @@ public:
struct instance_old_hillsbrad_InstanceMapScript : public InstanceScript
{
instance_old_hillsbrad_InstanceMapScript(Map* map) : InstanceScript(map)
instance_old_hillsbrad_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
{
SetHeaders(DataHeader);
memset(&m_auiEncounter, 0, sizeof(m_auiEncounter));
@@ -77,7 +77,7 @@ public:
struct instance_the_black_morass_InstanceMapScript : public InstanceScript
{
instance_the_black_morass_InstanceMapScript(Map* map) : InstanceScript(map)
instance_the_black_morass_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
{
SetHeaders(DataHeader);
Clear();
@@ -24,7 +24,6 @@ gets instead the deserter debuff.
#include "ScriptMgr.h"
#include "InstanceScript.h"
#include "Map.h"
// Bosses (East)
// 0 - Pusillin
@@ -58,7 +57,7 @@ public:
struct instance_dire_maul_InstanceMapScript : public InstanceScript
{
instance_dire_maul_InstanceMapScript(Map* map) : InstanceScript(map)
instance_dire_maul_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
{
SetBossNumber(EncounterCount);
}
@@ -90,7 +90,7 @@ class instance_lost_city_of_the_tolvir : public InstanceMapScript
struct instance_lost_city_of_the_tolvir_InstanceMapScript : public InstanceScript
{
instance_lost_city_of_the_tolvir_InstanceMapScript(Map* map) : InstanceScript(map)
instance_lost_city_of_the_tolvir_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
{
SetHeaders(DataHeader);
SetBossNumber(EncounterCount);
@@ -24,7 +24,6 @@ gets instead the deserter debuff.
#include "ScriptMgr.h"
#include "InstanceScript.h"
#include "Map.h"
class instance_maraudon : public InstanceMapScript
{
@@ -38,7 +37,7 @@ public:
struct instance_maraudon_InstanceMapScript : public InstanceScript
{
instance_maraudon_InstanceMapScript(Map* map) : InstanceScript(map) { }
instance_maraudon_InstanceMapScript(InstanceMap* map) : InstanceScript(map) { }
};
};
@@ -47,7 +47,7 @@ public:
struct instance_onyxias_lair_InstanceMapScript : public InstanceScript
{
instance_onyxias_lair_InstanceMapScript(Map* map) : InstanceScript(map)
instance_onyxias_lair_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
{
SetHeaders(DataHeader);
SetBossNumber(EncounterCount);
@@ -24,7 +24,6 @@ gets instead the deserter debuff.
#include "ScriptMgr.h"
#include "InstanceScript.h"
#include "Map.h"
class instance_ragefire_chasm : public InstanceMapScript
{
@@ -38,7 +37,7 @@ public:
struct instance_ragefire_chasm_InstanceMapScript : public InstanceScript
{
instance_ragefire_chasm_InstanceMapScript(Map* map) : InstanceScript(map) { }
instance_ragefire_chasm_InstanceMapScript(InstanceMap* map) : InstanceScript(map) { }
};
};
@@ -52,7 +52,7 @@ public:
struct instance_razorfen_downs_InstanceMapScript : public InstanceScript
{
instance_razorfen_downs_InstanceMapScript(Map* map) : InstanceScript(map)
instance_razorfen_downs_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
{
SetHeaders(DataHeader);
SetBossNumber(EncounterCount);
@@ -40,7 +40,7 @@ public:
struct instance_razorfen_kraul_InstanceMapScript : public InstanceScript
{
instance_razorfen_kraul_InstanceMapScript(Map* map) : InstanceScript(map)
instance_razorfen_kraul_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
{
SetHeaders(DataHeader);
WardKeeperDeath = 0;
@@ -18,7 +18,6 @@
#include "ScriptMgr.h"
#include "Creature.h"
#include "InstanceScript.h"
#include "Map.h"
#include "ruins_of_ahnqiraj.h"
class instance_ruins_of_ahnqiraj : public InstanceMapScript
@@ -28,7 +27,7 @@ class instance_ruins_of_ahnqiraj : public InstanceMapScript
struct instance_ruins_of_ahnqiraj_InstanceMapScript : public InstanceScript
{
instance_ruins_of_ahnqiraj_InstanceMapScript(Map* map) : InstanceScript(map)
instance_ruins_of_ahnqiraj_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
{
SetHeaders(DataHeader);
SetBossNumber(NUM_ENCOUNTER);
@@ -26,7 +26,6 @@ EndScriptData */
#include "ScriptMgr.h"
#include "Creature.h"
#include "InstanceScript.h"
#include "Map.h"
#include "temple_of_ahnqiraj.h"
class instance_temple_of_ahnqiraj : public InstanceMapScript
@@ -36,7 +35,7 @@ class instance_temple_of_ahnqiraj : public InstanceMapScript
struct instance_temple_of_ahnqiraj_InstanceMapScript : public InstanceScript
{
instance_temple_of_ahnqiraj_InstanceMapScript(Map* map) : InstanceScript(map)
instance_temple_of_ahnqiraj_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
{
SetHeaders(DataHeader);
IsBossDied[0] = false;
@@ -59,7 +59,7 @@ class instance_throne_of_the_four_winds : public InstanceMapScript
struct instance_throne_of_the_four_winds_InstanceMapScript : public InstanceScript
{
instance_throne_of_the_four_winds_InstanceMapScript(Map* map) : InstanceScript(map)
instance_throne_of_the_four_winds_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
{
SetHeaders(DataHeader);
SetBossNumber(EncounterCount);
@@ -45,7 +45,7 @@ public:
struct instance_wailing_caverns_InstanceMapScript : public InstanceScript
{
instance_wailing_caverns_InstanceMapScript(Map* map) : InstanceScript(map)
instance_wailing_caverns_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
{
SetHeaders(DataHeader);
SetBossNumber(EncounterCount);
@@ -105,7 +105,7 @@ public:
struct instance_zulfarrak_InstanceMapScript : public InstanceScript
{
instance_zulfarrak_InstanceMapScript(Map* map) : InstanceScript(map)
instance_zulfarrak_InstanceMapScript(InstanceMap* map) : InstanceScript(map)
{
SetHeaders(DataHeader);
GahzRillaEncounter = NOT_STARTED;