Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CPP/LUA] Add synthesis high quality chance configurable setting #5712

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions settings/default/map.lua
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ xi.settings.map =
-- Amount of points allowed in crafts over the level defined above. Points are shared across all crafting skills. (Retail = 400; All skills can go to max = 3200)
CRAFT_SPECIALIZATION_POINTS = 400,

-- Multiplier applied to high quality chance
CRAFT_HQ_CHANCE_MULTIPLIER = 1.0,

-- Enables fishing. 0 = Disabled. 1 = Enable. ENABLE AT YOUR OWN RISK.
FISHING_ENABLE = false,

Expand Down
1 change: 1 addition & 0 deletions src/map/utils/synthutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ namespace synthutils
// HQ success rate modifier.
// See: https://www.bluegartr.com/threads/130586-CraftyMath-v2-Post-September-2017-Update page 3.
chanceHQ = chanceHQ + 100.0f * PChar->getMod(Mod::SYNTH_HQ_RATE) / 512.0f;
chanceHQ = chanceHQ * settings::get<float>("map.CRAFT_HQ_CHANCE_MULTIPLIER"); // server configured additional HQ multiplier (default 1.0)

// limit max hq chance
if (chanceHQ > maxChanceHQ)
Expand Down
Loading