Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Status.c
- ========================================================================
- //Item resistance (only applies to rate%)
- if(sd && SC_COMMON_MIN <= type && type <= SC_COMMON_MAX)
- {
- if( sd->reseff[type-SC_COMMON_MIN] > 0 )
- rate -= rate*sd->reseff[type-SC_COMMON_MIN]/10000;
- if( sd->sc.data[SC_COMMONSC_RESIST] ) {
- rate -= rate*sd->sc.data[SC_COMMONSC_RESIST]->val1/100;
- + if ( type == 2 && sd->reseff[type-SC_COMMON_MIN] >= 9000 )
- + rate = 100;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement