Skip to content

Commit f58c74a

Browse files
committed
Add mythic support to SWP
1 parent af9f8ac commit f58c74a

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

data/sql/db-world/zone_difficulty_mythicmode_instance_data.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ INSERT INTO `zone_difficulty_mythicmode_instance_data` (`MapID`, `SourceEntry`,
6161
(568, 23577, 0, 12), -- Halazzi
6262
(568, 23576, 0, 12), -- Narolakk
6363
(568, 23863, 0, 12), -- Zuljin
64+
-- SWP
65+
(580, 24882, 0, 19), -- Brutallus
66+
(580, 25038, 0, 19), -- Felmyst
6467
-- TBC 5man Heroics
6568
(269, 17881, 0, 8), -- Aeonus, The Black Morass
6669
(540, 16808, 0, 8), -- Warchief Kargath Bladefist, Shattered Halls

src/ZoneDifficulty.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ enum ZoneDifficultySettings
134134
TYPE_RAID_T9 = 16,
135135
TYPE_RAID_T10 = 17,
136136
TYPE_RAID_HYJAL = 18,
137+
TYPE_RAID_SWP = 19,
137138

138139
TYPE_MAX_TIERS,
139140

src/mod_zone_difficulty_handler.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ void ZoneDifficulty::LoadMapDifficultySettings()
103103
// Category 18
104104
EncounterCounter[534] = 5; // Hyjal Summit
105105

106+
// Category 19
107+
EncounterCounter[580] = 6; // Sunwell Plateau
108+
106109
// Icons
107110
sZoneDifficulty->ItemIcons[ITEMTYPE_MISC] = "|TInterface\\icons\\inv_misc_cape_17:15|t |TInterface\\icons\\inv_misc_gem_topaz_02:15|t |TInterface\\icons\\inv_jewelry_ring_51naxxramas:15|t ";
108111
sZoneDifficulty->ItemIcons[ITEMTYPE_CLOTH] = "|TInterface\\icons\\inv_chest_cloth_42:15|t ";
@@ -1085,6 +1088,14 @@ bool ZoneDifficulty::CheckCompletionStatus(Creature* creature, Player* player, u
10851088
return false;
10861089
}
10871090
break;
1091+
case TYPE_RAID_SWP:
1092+
if (!player->GetPlayerSetting(ModZoneDifficultyString + "ct", TYPE_RAID_SWP).value)
1093+
{
1094+
creature->Whisper("Ah, hero! The threads of fate bring you to me. To claim the rewards you desire, you must first confront Kil'jaeden on Mythic difficulty.",
1095+
LANG_UNIVERSAL, player);
1096+
return false;
1097+
}
1098+
break;
10881099
}
10891100

10901101
return true;

src/mod_zone_difficulty_scripts.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,9 @@ class mod_zone_difficulty_globalscript : public GlobalScript
503503
if ((id == 7 /* Illidari Council*/ || id == 5 /* Reliquary of Souls*/) && instance->GetId() == 564)
504504
sZoneDifficulty->AddMythicmodeScore(instance, TYPE_RAID_T6, 1);
505505

506+
if ((id == 0 /* Kalecgos */) && instance->GetId() == 580)
507+
sZoneDifficulty->AddMythicmodeScore(instance, TYPE_RAID_SWP, 1);
508+
506509
//LOG_INFO("module", "MOD-ZONE-DIFFICULTY: Mythicmode is on.");
507510
if (sZoneDifficulty->EncountersInProgress.find(instanceId) != sZoneDifficulty->EncountersInProgress.end() && sZoneDifficulty->EncountersInProgress[instanceId] != 0)
508511
{

0 commit comments

Comments
 (0)