Skip to content

Commit

Permalink
[Gear] Rename option to iqd_stat_fail_chance
Browse files Browse the repository at this point in the history
  • Loading branch information
Jundarer committed Jan 22, 2021
1 parent 54471e9 commit b1061bc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion engine/player/unique_gear_shadowlands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1384,7 +1384,7 @@ void inscrutable_quantum_device ( special_effect_t& effect )
}
else
{
if ( rng().roll( sim->shadowlands_opts.iqd_fail_chance ) )
if ( rng().roll( sim->shadowlands_opts.iqd_stat_fail_chance ) )
return;
for ( auto s : ratings )
{
Expand Down
4 changes: 2 additions & 2 deletions engine/sim/sc_sim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3812,8 +3812,8 @@ void sim_t::create_options()
add_option( opt_bool( "shadowlands.disable_iqd_execute", shadowlands_opts.disable_iqd_execute ) );
add_option( opt_float( "shadowlands.gluttonous_spike_overheal_chance",
shadowlands_opts.gluttonous_spike_overheal_chance, 0.0, 1.0 ) );
add_option( opt_float( "shadowlands.iqd_fail_chance",
shadowlands_opts.iqd_fail_chance, 0.0, 1.0 ) );
add_option( opt_float( "shadowlands.iqd_stat_fail_chance",
shadowlands_opts.iqd_stat_fail_chance, 0.0, 1.0 ) );
}

// sim_t::parse_option ======================================================
Expand Down
4 changes: 2 additions & 2 deletions engine/sim/sc_sim.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,8 @@ struct sim_t : private sc_thread_t
timespan_t retarget_shadowgrasp_totem = 0_s;
/// Disables the execute effect of Inscrutable Quantum Device since it is avoidable in game
bool disable_iqd_execute = false;
/// Sets the chance for the Inscrutable Quantum Device to give no buff or execute outside Bloodlust
double iqd_fail_chance = 0.0;
/// Sets the chance for the Inscrutable Quantum Device to give no stat buff outside Bloodlust
double iqd_stat_fail_chance = 0.0;
} shadowlands_opts;

// Auras and De-Buffs
Expand Down

0 comments on commit b1061bc

Please sign in to comment.