Advertisement
rahuldev345

Mega Resist with BG Eqpts.

Feb 5th, 2013
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.46 KB | None | 0 0
  1. // Status.c
  2. ========================================================================
  3. //Item resistance (only applies to rate%)
  4. if(sd && SC_COMMON_MIN <= type && type <= SC_COMMON_MAX)
  5. {
  6.     if( sd->reseff[type-SC_COMMON_MIN] > 0 )
  7.         rate -= rate*sd->reseff[type-SC_COMMON_MIN]/10000;
  8.     if( sd->sc.data[SC_COMMONSC_RESIST] ) {
  9.         rate -= rate*sd->sc.data[SC_COMMONSC_RESIST]->val1/100;
  10. +       if ( type == 2 && sd->reseff[type-SC_COMMON_MIN] >= 9000 )
  11. +           rate = 100;
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement