aggixx

Untitled

May 25th, 2016
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     if ( resource_current == RESOURCE_SOUL_SHARD && p() -> talent.soul_conduit -> ok() )
  2.     {
  3.         double soul_conduit_rng = p() -> talents.soul_conduit -> effectN( 1 ).percent();
  4.  
  5.         for ( int i = 0; i < resource_consumed; i++ )
  6.         {
  7.             if ( rng().roll( soul_conduit_rng ) && resource_current == RESOURCE_SOUL_SHARD )
  8.             {
  9.                 p() -> resource_gain( RESOURCE_SOUL_SHARD, 1.0, p() -> gains.soul_conduit );
  10.             }
  11.         }
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment