sollaires

Untitled

Apr 11th, 2019
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.27 KB | None | 0 0
  1.   // Abyssal Speaker's Gauntlets ==============================================
  2.  
  3.   void items::abyssal_speakers_gauntlets( special_effect_t& effect )
  4.   {
  5.     struct ephemeral_vigor_proc_callback_t : public dbc_proc_callback_t
  6.     {
  7.       buff_t* ephemeral_vigor_buff;
  8.  
  9.       ephemeral_vigor_proc_callback_t( const special_effect_t& effect ) :
  10.         dbc_proc_callback_t( effect.item, effect )
  11.       { }
  12.  
  13.       void execute( action_t* action, action_state_t* ) override
  14.       {
  15.         auto out = action->player->sim->out_log;
  16.         out.printf("ephemeral vigor proc");
  17.         out.printf("buff duration: %f", proc_buff->buff_duration);
  18.         out.printf("shield duration override: %f", action->player->sim->bfa_opts.abyssal_speakers_gauntlets_shield_duration);
  19.         out.printf("adjusted duration: %f", proc_buff->buff_duration * action->player->sim->bfa_opts.abyssal_speakers_gauntlets_shiel
  20.  
  21.         // override duration based on the bfa option
  22.         proc_buff->set_duration( proc_buff->buff_duration * action->player->sim->bfa_opts.abyssal_speakers_gauntlets_shield_duration)
  23.         proc_buff->trigger();
  24.       }
  25.     };
  26.  
  27.     auto out = effect.player->sim->out_log;
  28.     out.printf("gauntlets override");
  29.  
  30.     new ephemeral_vigor_proc_callback_t( effect );
  31.   }
Advertisement
Add Comment
Please, Sign In to add comment