azerothcore / mod-autobalance

Module for AzerothCore(MaNGOS -> TrinityCore -> SunwellCore)
http://www.azerothcore.org
103 stars 109 forks source link

Feature: Requires an instance-specific switch #182

Open lcamm2 opened 8 months ago

lcamm2 commented 8 months ago

Describe your feature request or suggestion in detail

I'm using both the https://github.com/azerothcore/mod-autobalance and https://github.com/azerothcore/mod-zone-difficulty plugins. I use mod-zone-difficulty to implement the Mythic Raid function. Can I quickly set the difficulty coefficient of a specific instance of dungeon to 1 (the dungeon has autobalance turned on)

Describe a possible solution to your feature or suggestion in detail

There is a header file ZoneDifficulty.h that I tried to reference and use in autobalance.

sZoneDifficulty->MythicmodeInstanceData.find(instanceId) == sZoneDifficulty->MythicmodeInstanceData.end()

Able to determine whether the instance has the zone-difficulty module enabled

Additional context

No response

Yehonal commented 8 months ago

You should do that via hooks, you can create hooks in scripts as well and there's no need to reference other modules. Especially if you want to release these changes

On Wed, 13 Mar 2024, 19:05 lcamm2, @.***> wrote:

Describe your feature request or suggestion in detail

I'm using both the https://github.com/azerothcore/mod-autobalance and https://github.com/azerothcore/mod-zone-difficulty plugins. I use mod-zone-difficulty to implement the Mythic Raid function. Can I quickly set the difficulty coefficient of a specific instance of dungeon to 1 (the dungeon has autobalance turned on) Describe a possible solution to your feature or suggestion in detail

There is a header file ZoneDifficulty.h that I tried to reference and use in autobalance.

sZoneDifficulty->MythicmodeInstanceData.find(instanceId) == sZoneDifficulty->MythicmodeInstanceData.end()

Able to determine whether the instance has the zone-difficulty module enabled Additional context

No response

— Reply to this email directly, view it on GitHub https://github.com/azerothcore/mod-autobalance/issues/182, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABD5FEJRV7WYV6W3322RGDYYCIOBAVCNFSM6AAAAABEUVBBFKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE4DINRQGIZTSNY . You are receiving this because you are subscribed to this thread.Message ID: @.***>