-
Notifications
You must be signed in to change notification settings - Fork 680
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
86 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
// ========================================================================== | ||
// Dedmonwakeen's Raid DPS/TPS Simulator. | ||
// Send questions to natehieter@gmail.com | ||
// ========================================================================== | ||
|
||
#include "simulationcraft.hpp" | ||
|
||
using namespace unique_gear; | ||
|
||
namespace { | ||
namespace bfa { // YaN - Yet another namespace - to resolve conflicts with global namespaces. | ||
/** | ||
* Forward declarations so we can reorganize the file a bit more sanely. | ||
*/ | ||
|
||
namespace consumables | ||
{ | ||
void galley_banquet( special_effect_t& ); | ||
void bountiful_captains_feast( special_effect_t& ); | ||
} | ||
|
||
namespace util | ||
{ | ||
// feasts initialization helper | ||
void init_feast( special_effect_t& effect, arv::array_view<std::pair<stat_e, int>> stat_map ) | ||
{ | ||
effect.stat = effect.player -> convert_hybrid_stat( STAT_STR_AGI_INT ); | ||
// TODO: Is this actually spec specific? | ||
if ( effect.player -> role == ROLE_TANK ) | ||
effect.stat = STAT_STAMINA; | ||
|
||
for ( auto&& stat : stat_map ) | ||
{ | ||
if ( stat.first == effect.stat ) | ||
{ | ||
effect.trigger_spell_id = stat.second; | ||
break; | ||
} | ||
} | ||
effect.stat_amount = effect.player -> find_spell( effect.trigger_spell_id ) -> effectN( 1 ).average( effect.player ); | ||
} | ||
} // namespace util | ||
|
||
// Galley Banquet =========================================================== | ||
|
||
void consumables::galley_banquet( special_effect_t& effect ) | ||
{ | ||
util::init_feast( effect, | ||
{ { STAT_STRENGTH, 259452 }, | ||
{ STAT_AGILITY, 259448 }, | ||
{ STAT_INTELLECT, 259449 }, | ||
{ STAT_STAMINA, 259453 } } ); | ||
} | ||
|
||
// Bountiful Captain's Feast ================================================ | ||
|
||
void consumables::bountiful_captains_feast( special_effect_t& effect ) | ||
{ | ||
util::init_feast( effect, | ||
{ { STAT_STRENGTH, 259456 }, | ||
{ STAT_AGILITY, 259454 }, | ||
{ STAT_INTELLECT, 259455 }, | ||
{ STAT_STAMINA, 259457 } } ); | ||
} | ||
|
||
} // namespace bfa | ||
} // anon namespace | ||
|
||
void unique_gear::register_special_effects_bfa() | ||
{ | ||
using namespace bfa; | ||
|
||
// Consumables | ||
register_special_effect( 259409, consumables::galley_banquet ); | ||
register_special_effect( 259410, consumables::bountiful_captains_feast ); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters