Skip to content

Commit

Permalink
Icecrown: 2 more randomized SpawnGroups added
Browse files Browse the repository at this point in the history
  • Loading branch information
Grz3s committed Jul 28, 2024
1 parent 3a7100a commit 45db729
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/game/AI/ScriptDevAI/scripts/northrend/world_northrend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ void world_map_northrend::Initialize()
instance->GetVariableManager().SetVariable(WORLD_STATE_CUSTOM_ICC_GRP_06, urand(0, 1));
instance->GetVariableManager().SetVariable(WORLD_STATE_CUSTOM_ICC_GRP_07, urand(0, 1));
instance->GetVariableManager().SetVariable(WORLD_STATE_CUSTOM_ICC_GRP_08, urand(0, 1));
instance->GetVariableManager().SetVariable(WORLD_STATE_CUSTOM_ICC_GRP_09, urand(0, 2));
instance->GetVariableManager().SetVariable(WORLD_STATE_CUSTOM_ICC_GRP_10, urand(0, 2));
}

void world_map_northrend::OnCreatureGroupDespawn(CreatureGroup* creatureGroup, Creature* creature)
Expand Down Expand Up @@ -64,6 +66,12 @@ void world_map_northrend::OnCreatureGroupDespawn(CreatureGroup* creatureGroup, C
case 25014: case 25015:
instance->GetVariableManager().SetVariable(WORLD_STATE_CUSTOM_ICC_GRP_08, urand(0, 1));
break;
case 25016: case 25017: case 25018
instance->GetVariableManager().SetVariable(WORLD_STATE_CUSTOM_ICC_GRP_09, urand(0, 2));
break;
case 25019: case 25020: case 25021
instance->GetVariableManager().SetVariable(WORLD_STATE_CUSTOM_ICC_GRP_10, urand(0, 2));
break;
}
}

Expand Down
2 changes: 2 additions & 0 deletions src/game/World/WorldStateDefines.h
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,8 @@ enum WorldStateID : int32
WORLD_STATE_CUSTOM_ICC_GRP_06 = 350006,
WORLD_STATE_CUSTOM_ICC_GRP_07 = 350007,
WORLD_STATE_CUSTOM_ICC_GRP_08 = 350008,
WORLD_STATE_CUSTOM_ICC_GRP_09 = 350009,
WORLD_STATE_CUSTOM_ICC_GRP_10 = 350010,

// Obsidian Sanctum
WORLD_STATE_CUSTOM_SPAWN_FLAME_WALL_LEFT = 20004,
Expand Down

0 comments on commit 45db729

Please sign in to comment.