TrinityCore
Loading...
Searching...
No Matches
instance_blackrock_caverns.cpp
Go to the documentation of this file.
1/*
2 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#include "ScriptMgr.h"
19#include "blackrock_caverns.h"
20#include "InstanceScript.h"
21
22static constexpr ObjectData creatureData[] =
23{
25};
26
27static constexpr DungeonEncounterData encounters[] =
28{
29 { DATA_ROMOGG_BONECRUSHER, {{ 1040 }} },
30 { DATA_CORLA, {{ 1038 }} },
31 { DATA_KARSH_STEELBENDER, {{ 1039 }} },
32 { DATA_BEAUTY, {{ 1037 }} },
33 { DATA_ASCENDANT_LORD_OBSIDIUS, {{ 1036 }} }
34};
35
37{
38 public:
40
42 {
50
51 bool SetBossState(uint32 type, EncounterState state) override
52 {
53 if (!InstanceScript::SetBossState(type, state))
54 return false;
55
56 switch (type)
57 {
59 case DATA_CORLA:
61 case DATA_BEAUTY:
63 break;
64 default:
65 break;
66 }
67
68 return true;
69 }
70 };
71
76};
77
uint32_t uint32
Definition Define.h:154
EncounterState
#define DataHeader
uint32 const EncounterCount
@ NPC_RAZ_THE_CRAZED
@ DATA_ASCENDANT_LORD_OBSIDIUS
@ DATA_RAZ_THE_CRAZED
@ DATA_CORLA
@ DATA_KARSH_STEELBENDER
@ DATA_ROMOGG_BONECRUSHER
@ DATA_BEAUTY
#define BCScriptName
void SetBossNumber(uint32 number)
virtual bool SetBossState(uint32 id, EncounterState state)
void LoadObjectData(std::span< ObjectData const > creatureData, std::span< ObjectData const > gameObjectData)
void SetHeaders(std::string_view dataHeaders)
void LoadDungeonEncounterData(std::span< DungeonEncounterData const > encounters)
InstanceScript * GetInstanceScript(InstanceMap *map) const override
static constexpr ObjectData creatureData[]
static constexpr DungeonEncounterData encounters[]
void AddSC_instance_blackrock_caverns()