falyptus

Faith - AddHonor & RemHonor

Jun 9th, 2012
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.65 KB | None | 0 0
  1. /*
  2. *
  3. *@author Keal - Fonctions pour ajout/perte de point d'honneur.
  4. */
  5. public void addHonor(int winH)
  6. {      
  7.     if(_align == 0) return;
  8.     int curGrade = getGrade();     
  9.     _honor += winH;
  10.     SocketManager.GAME_SEND_I_PACKET(this, "080;"+winH);
  11.     //Changement de grade
  12.     if(getGrade() != curGrade)
  13.     {
  14.         SocketManager.GAME_SEND_Im_PACKET(this, "082;"+getGrade());
  15.     }
  16. }
  17.    
  18. public void remHonor(int losePH)
  19. {
  20.     if(_align == 0) return;
  21.     int curGrade = getGrade();
  22.     _honor -= losePH;
  23.     SocketManager.GAME_SEND_Im_PACKET(this, "081;"+losePH);
  24.     //Changement de grade
  25.     if(getGrade() != curGrade)
  26.     {
  27.         SocketManager.GAME_SEND_Im_PACKET(this, "083;"+getGrade());
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment