Advertisement
Lighta

unit.c raw doc

Mar 24th, 2012
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 3.25 KB | None | 0 0
  1. # This patch file was generated by NetBeans IDE
  2. # It uses platform neutral UTF-8 encoding and \n newlines.
  3. --- HEAD
  4. +++ Modified In Working Tree
  5. @@ -134,7 +134,7 @@
  6.         return 0;
  7.     }
  8.     ud->walktimer = INVALID_TIMER;
  9. -   if( bl->prev == NULL ) return 0; // block_list ���甲���Ă���̂ňړ���~����
  10. +   if( bl->prev == NULL ) return 0; // Stop moved because it is missing from the block_list
  11.  
  12.     if(ud->walkpath.path_pos>=ud->walkpath.path_len)
  13.         return 0;
  14. @@ -1001,8 +1001,8 @@
  15.     int temp = 0;
  16.  
  17.     nullpo_ret(src);
  18. -   if(status_isdead(src))
  19. -       return 0; // ����ł��Ȃ���
  20. +   if( status_isdead(src) )
  21. +       return 0; //Do not continue source is dead
  22.  
  23.     sd = BL_CAST(BL_PC, src);
  24.     ud = unit_bl2ud(src);
  25. @@ -1088,7 +1088,7 @@
  26.         return 0;
  27.  
  28.     tstatus = status_get_status_data(target);
  29. -   //���O�̃X�L���󋵂̋L�^
  30. +   //The previous record of skill status
  31.     if(sd) {
  32.         switch(skill_num){
  33.         case SA_CASTCANCEL:
  34. @@ -1332,7 +1332,7 @@
  35.  
  36.     nullpo_ret(src);
  37.  
  38. -   if(!src->prev) return 0; // map ��ɑ��݂��邩
  39. +   if(!src->prev) return 0; // Exists on the map
  40.     if(status_isdead(src)) return 0;
  41.  
  42.     sd = BL_CAST(BL_PC, src);
  43. @@ -1351,7 +1351,7 @@
  44.         if( skillnotok(skill_num, sd) || !skill_check_condition_castbegin(sd, skill_num, skill_lv) )
  45.             return 0;
  46.         /**
  47. -        * "WHY IS IT HEREE": pneuma cannot be cancelled past this point, the client displays the animation even,
  48. +        * "WHY IS IT HERE": pneuma cannot be cancelled past this point, the client displays the animation even,
  49.          * if we cancel it from nodamage_id, so it has to be here for it to not display the animation.
  50.          **/
  51.         if( skill_num == AL_PNEUMA && map_getcell(src->m, skill_x, skill_y, CELL_CHKLANDPROTECTOR) ) {
  52. @@ -1369,7 +1369,7 @@
  53.         return 0;
  54.     }
  55.  
  56. -   /* �˒��Ə�Q���`�F�b�N */
  57. +   /* Check range and obstacle */
  58.     bl.type = BL_NUL;
  59.     bl.m = src->m;
  60.     bl.x = skill_x;
  61. @@ -1472,8 +1472,8 @@
  62.  }
  63.  
  64.  /*==========================================
  65. - * �U���v��
  66. - * type��1�Ȃ�p���U��
  67. + * Attack request
  68. + * If type is an ongoing attack
  69.   *------------------------------------------*/
  70.  int unit_attack(struct block_list *src,int target_id,int continuous)
  71.  {
  72. @@ -1560,7 +1560,7 @@
  73.  {
  74.     nullpo_retr(false, bl);
  75.  
  76. -   if( bl->x==x && bl->y==y )  // �����}�X
  77. +   if( bl->x==x && bl->y==y )  //Same place
  78.         return true;
  79.  
  80.     return path_search(NULL,bl->m,bl->x,bl->y,x,y,easy,CELL_CHKNOREACH);
  81. @@ -1662,7 +1662,7 @@
  82.  }
  83.  
  84.  /*==========================================
  85. - * PC�̍U�� (timer�֐�)
  86. + * Attack of the PC (function timer)
  87.   *------------------------------------------*/
  88.  static int unit_attack_timer_sub(struct block_list* src, int tid, unsigned int tick)
  89.  {
  90. @@ -1867,7 +1867,7 @@
  91.     return 1;
  92.  }
  93.  
  94. -// unit_data �̏�����
  95. +// unit_data initialization process
  96.  void unit_dataset(struct block_list *bl)
  97.  {
  98.     struct unit_data *ud;
  99. @@ -1926,7 +1926,7 @@
  100.  }
  101.  
  102.  /*==========================================
  103. - * �����ڂ̃T�C�Y��ύX����
  104. + * To change the size of the object (player or mob only)
  105.   *------------------------------------------*/
  106.  int unit_changeviewsize(struct block_list *bl,short size)
  107.  {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement