TrinityCore
Loading...
Searching...
No Matches
instance_underrot.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 "AreaBoundary.h"
19#include "InstanceScript.h"
20#include "ScriptMgr.h"
21#include "underrot.h"
22
24{
25 { DATA_ELDER_LEAXA, new CircleBoundary(Position(869.502014f, 1230.199951f), 58.0f) },
26 { DATA_CRAGMAW_THE_INFESTED, new CircleBoundary(Position(852.797974f, 982.133545f), 90.0f) },
27 { BOSS_SPORECALLER_ZANCHA, new ZRangeBoundary(35.240f, 26.790f) }
28};
29
37
42
43static constexpr DungeonEncounterData encounters[] =
44{
45 { DATA_ELDER_LEAXA, {{ 2111 }} },
46 { DATA_CRAGMAW_THE_INFESTED, {{ 2118 }} },
47 { DATA_SPORECALLER_ZANCHA, {{ 2112 }} },
48 { DATA_UNBOUND_ABOMINATION, {{ 2123 }} },
49};
50
52{
53public:
55
57 {
69
70 uint32 GetData(uint32 dataId) const override
71 {
72 switch (dataId)
73 {
75 return _cragmawCrawgEating ? 1 : 0;
76 default:
77 break;
78 }
79 return 0;
80 }
81
82 void SetData(uint32 dataId, uint32 /*value*/) override
83 {
84 switch (dataId)
85 {
88 break;
89 default:
90 break;
91 }
92 }
93
94 private:
96 };
97
99 {
101 }
102};
103
105{
106 new instance_underrot();
107}
uint32_t uint32
Definition Define.h:154
#define DataHeader
uint32 const EncounterCount
void SetBossNumber(uint32 number)
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)
void LoadDoorData(std::span< DoorData const > data)
void LoadBossBoundaries(BossBoundaryData const &data)
InstanceScript * GetInstanceScript(InstanceMap *map) const override
static constexpr ObjectData creatureData[]
void AddSC_instance_underrot()
static constexpr DoorData doorData[]
BossBoundaryData const boundaries
static constexpr DungeonEncounterData encounters[]
#define UnderrotScriptName
Definition underrot.h:24
@ DATA_CRAGMAW_CRAWG_EATING
Definition underrot.h:36
@ DATA_CRAGMAW_THE_INFESTED
Definition underrot.h:33
@ DATA_SPORECALLER_ZANCHA
Definition underrot.h:32
@ DATA_ELDER_LEAXA
Definition underrot.h:31
@ DATA_UNBOUND_ABOMINATION
Definition underrot.h:34
@ GO_WALL_DOOR_SHORTCUT_ENTRANCE
Definition underrot.h:51
@ BOSS_UNBOUND_ABOMINATION
Definition underrot.h:45
@ BOSS_CRAGMAW_THE_INFESTED
Definition underrot.h:44
@ BOSS_SPORECALLER_ZANCHA
Definition underrot.h:43
@ BOSS_ELDER_LEAXA
Definition underrot.h:42