Skip to content

Commit

Permalink
Add constantly casting Patchwerk fightstlye "CastingPatchwerk". To al…
Browse files Browse the repository at this point in the history
…low easier testing of on-interrupt procs. (simulationcraft#3661)
  • Loading branch information
AlexanderKenny authored and vituscze committed Apr 1, 2017
1 parent df12b3e commit 5fa4dba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions engine/sim/sc_sim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,11 @@ bool parse_fight_style( sim_t* sim,
sim -> raid_events_str += "/movement,first=13,distance=5,cooldown=20,players_only=1,player_chance=0.1";
sim -> raid_events_str += "/adds,name=Beast,count=1,first=10,duration=" + util::to_string( int( sim -> max_time.total_seconds() * 0.15 ) ) + ",cooldown=" + util::to_string( int( sim -> max_time.total_seconds() * 0.25 ) ) + ",last=" + util::to_string( int( sim -> max_time.total_seconds() * 0.65 ) ) + ",duration_stddev=5,cooldown_stddev=10";
}
else if ( util::str_compare_ci( value, "CastingPatchwerk" ) )
{
sim->fight_style = "CastingPatchwerk";
sim->raid_events_str += "/casting,cooldown=500,duration=500";
}
else
{
std::cout << "Custom fight style specified: " << value << std::endl;
Expand Down
7 changes: 5 additions & 2 deletions qt/sc_OptionsTab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ void SC_OptionsTab::createGlobalsTab()
globalsLayout_left -> addRow( tr( "Iterations" ), choice.iterations = addValidatorToComboBox( 1, INT_MAX, createChoice( 9, "1", "100", "1000", "10000", "25000", "50000", "100000", "250000", "500000" ) ) );
globalsLayout_left -> addRow( tr( "Length (sec)" ), choice.fight_length = addValidatorToComboBox( 1, 10000, createChoice( 10, "100", "150", "200", "250", "300", "350", "400", "450", "500", "600" ) ) );
globalsLayout_left -> addRow( tr( "Vary Length %" ), choice.fight_variance = addValidatorToComboBox( 0, 100, createChoice( 6, "0", "10", "20", "30", "40", "50" ) ) );
globalsLayout_left -> addRow( tr( "Fight Style" ), choice.fight_style = createChoice( 7, "Patchwerk", "HecticAddCleave", "HelterSkelter", "Ultraxion", "LightMovement", "HeavyMovement", "Beastlord" ) );
globalsLayout_left -> addRow( tr( "Fight Style" ), choice.fight_style = createChoice( 8, "Patchwerk", "HecticAddCleave", "HelterSkelter", "Ultraxion", "LightMovement", "HeavyMovement", "Beastlord", "CastingPatchwerk" ) );
globalsLayout_left -> addRow( tr( "Challenge Mode" ), choice.challenge_mode = createChoice( 2, "Disabled", "Enabled" ) );
globalsLayout_left -> addRow( tr( "Player Skill" ), choice.player_skill = createChoice( 4, "Elite", "Good", "Average", "Ouch! Fire is hot!" ) );
globalsLayout_left -> addRow( tr( "Default Role" ), choice.default_role = createChoice( 4, "Auto", "DPS", "Heal", "Tank" ) );
Expand Down Expand Up @@ -840,7 +840,10 @@ void SC_OptionsTab::createToolTips()
" beginning %3s into the fight" ).arg( 4 ).arg( 10 ).arg( 10 ) + "\n" +
tr( "Beastlord:\n"
" Random Movement, Advanced Positioning,\n"
" Frequent Single and Wave Add Spawns" ) );
" Frequent Single and Wave Add Spawns" ) + "\n" +
tr( "CastingPatchwerk: Tank-n-Spank\n"
" Boss considered always casting\n"
" (to test interrupt procs on cooldown)" ) );

choice.target_race -> setToolTip( tr( "Race of the target and any adds." ) );

Expand Down

0 comments on commit 5fa4dba

Please sign in to comment.