Skip to content

Instantly share code, notes, and snippets.

@cgdangelo
Created July 1, 2019 18:05
Show Gist options
  • Save cgdangelo/e927dc794559fc8dd7ee87b47da52fb2 to your computer and use it in GitHub Desktop.
Save cgdangelo/e927dc794559fc8dd7ee87b47da52fb2 to your computer and use it in GitHub Desktop.
diff --git a/engine/report/sc_report_html_player.cpp b/engine/report/sc_report_html_player.cpp
index dcfa59e36a..091483dd18 100644
--- a/engine/report/sc_report_html_player.cpp
+++ b/engine/report/sc_report_html_player.cpp
@@ -1028,6 +1028,37 @@ void print_html_gear( report::sc_html_stream& os, const player_t& p )
}
}
+ if ( item.slot == SLOT_NECK )
+ {
+ auto essences = p.azerite_essence->enabled_essences();
+
+ if ( ! essences.empty() )
+ {
+ item_sim_desc += "<br/>";
+ item_sim_desc += "azerite essences: { ";
+
+ for ( auto essence_index = 0u; essence_index < essences.size(); essence_index++ )
+ {
+ const auto essence_spell_id = essences[ essence_index ];
+ const auto essence_spell = p.find_spell( essence_spell_id );
+ const auto essence = p.find_azerite_essence( essence_spell->_essence_id );
+
+ // item_sim_desc += report::spell_data_decorator_t( item.player, essence_spell ).decorate();
+ item_sim_desc += essence.name();
+ item_sim_desc += " (";
+ item_sim_desc += essence.is_major() ? "Major, " : "";
+ item_sim_desc += "Minor)";
+
+ if ( essence_index != essences.size() - 1)
+ {
+ item_sim_desc += ", ";
+ }
+ }
+
+ item_sim_desc += " }";
+ }
+ }
+
os.printf(
"<tr>\n"
"<th class=\"left\" colspan=\"2\"></th>\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment