Advertisement
Asthard

Untitled

Jul 10th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1.     if (pkAttacker->IsPC() == true)
  2.     {
  3.         float calcTest = (float)pkVictim->GetPoint(POINT_RESIST_CHARACTER)/100;
  4.         iAtk -= (int)ceil(iAtk * calcTest);
  5.     }
  6.    
  7.     if (pkAttacker->IsNPC() == true)
  8.     {
  9.         float calcTest = (float)pkVictim->GetPoint(POINT_RESIST_MONSTER)/100;
  10.         iAtk -= (int)ceil(iAtk * calcTest);
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement